+2004-08-30 Tor Lillqvist <tml@iki.fi>
+
+ Make the ms-windows theme engine build with mingw.
+
+ * configure.in: Expand also modules/engines/ms-windows/Theme/
+ Makefile and .../Theme/gtk-2.0/Makefile.
+
+ * modules/engines/ms-windows/Makefile.am: Adapt for building
+ inside the GTK sources.
+
+ * modules/engines/ms-windows/*.c: Use "foo.h" style includes for
+ GTK and GDK headers. Use correct path for gdkwin32.h header.
+
+ * modules/engines/ms-windows/msw_style.c: Don't use deprecated GDK
+ API.
+
+ * modules/engines/ms-windows/xp_theme_defs.h
+ * modules/engines/ms-windows/xp_theme.c: Move definitions of TMT_*
+ to xp_theme.c, as they are neither in mingw's nor Platform
+ SDK's tmschema.h.
+
+ * modules/engines/ms-windows/xp_theme.c: Define _WIN32_WINNT as
+ 0x0501 to get the necesssary stuff from mingw's uxtheme.h.
+
2004-08-30 Matthias Clasen <mclasen@redhat.com>
Integrate the ms-windows theme engine (better known as Wimp)
2004-08-30 Matthias Clasen <mclasen@redhat.com>
- * gtk/gtktextview.c (gtk_text_view_delete_surrounding_handler): Make it compile.
+ * gtk/gtktextview.c (gtk_text_view_delete_surrounding_handler):
+ Make it compile.
2004-08-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrange.h (struct _GtkRangeClass): Declare change_value
function.
->>>>>>> 1.5765
2004-08-26 Matthias Clasen <mclasen@redhat.com>
* modules/input/Makefile.am: Build imime.la on Windows.
+2004-08-30 Tor Lillqvist <tml@iki.fi>
+
+ Make the ms-windows theme engine build with mingw.
+
+ * configure.in: Expand also modules/engines/ms-windows/Theme/
+ Makefile and .../Theme/gtk-2.0/Makefile.
+
+ * modules/engines/ms-windows/Makefile.am: Adapt for building
+ inside the GTK sources.
+
+ * modules/engines/ms-windows/*.c: Use "foo.h" style includes for
+ GTK and GDK headers. Use correct path for gdkwin32.h header.
+
+ * modules/engines/ms-windows/msw_style.c: Don't use deprecated GDK
+ API.
+
+ * modules/engines/ms-windows/xp_theme_defs.h
+ * modules/engines/ms-windows/xp_theme.c: Move definitions of TMT_*
+ to xp_theme.c, as they are neither in mingw's nor Platform
+ SDK's tmschema.h.
+
+ * modules/engines/ms-windows/xp_theme.c: Define _WIN32_WINNT as
+ 0x0501 to get the necesssary stuff from mingw's uxtheme.h.
+
2004-08-30 Matthias Clasen <mclasen@redhat.com>
Integrate the ms-windows theme engine (better known as Wimp)
2004-08-30 Matthias Clasen <mclasen@redhat.com>
- * gtk/gtktextview.c (gtk_text_view_delete_surrounding_handler): Make it compile.
+ * gtk/gtktextview.c (gtk_text_view_delete_surrounding_handler):
+ Make it compile.
2004-08-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrange.h (struct _GtkRangeClass): Declare change_value
function.
->>>>>>> 1.5765
2004-08-26 Matthias Clasen <mclasen@redhat.com>
* modules/input/Makefile.am: Build imime.la on Windows.
+2004-08-30 Tor Lillqvist <tml@iki.fi>
+
+ Make the ms-windows theme engine build with mingw.
+
+ * configure.in: Expand also modules/engines/ms-windows/Theme/
+ Makefile and .../Theme/gtk-2.0/Makefile.
+
+ * modules/engines/ms-windows/Makefile.am: Adapt for building
+ inside the GTK sources.
+
+ * modules/engines/ms-windows/*.c: Use "foo.h" style includes for
+ GTK and GDK headers. Use correct path for gdkwin32.h header.
+
+ * modules/engines/ms-windows/msw_style.c: Don't use deprecated GDK
+ API.
+
+ * modules/engines/ms-windows/xp_theme_defs.h
+ * modules/engines/ms-windows/xp_theme.c: Move definitions of TMT_*
+ to xp_theme.c, as they are neither in mingw's nor Platform
+ SDK's tmschema.h.
+
+ * modules/engines/ms-windows/xp_theme.c: Define _WIN32_WINNT as
+ 0x0501 to get the necesssary stuff from mingw's uxtheme.h.
+
2004-08-30 Matthias Clasen <mclasen@redhat.com>
Integrate the ms-windows theme engine (better known as Wimp)
2004-08-30 Matthias Clasen <mclasen@redhat.com>
- * gtk/gtktextview.c (gtk_text_view_delete_surrounding_handler): Make it compile.
+ * gtk/gtktextview.c (gtk_text_view_delete_surrounding_handler):
+ Make it compile.
2004-08-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrange.h (struct _GtkRangeClass): Declare change_value
function.
->>>>>>> 1.5765
2004-08-26 Matthias Clasen <mclasen@redhat.com>
* modules/input/Makefile.am: Build imime.la on Windows.
+2004-08-30 Tor Lillqvist <tml@iki.fi>
+
+ Make the ms-windows theme engine build with mingw.
+
+ * configure.in: Expand also modules/engines/ms-windows/Theme/
+ Makefile and .../Theme/gtk-2.0/Makefile.
+
+ * modules/engines/ms-windows/Makefile.am: Adapt for building
+ inside the GTK sources.
+
+ * modules/engines/ms-windows/*.c: Use "foo.h" style includes for
+ GTK and GDK headers. Use correct path for gdkwin32.h header.
+
+ * modules/engines/ms-windows/msw_style.c: Don't use deprecated GDK
+ API.
+
+ * modules/engines/ms-windows/xp_theme_defs.h
+ * modules/engines/ms-windows/xp_theme.c: Move definitions of TMT_*
+ to xp_theme.c, as they are neither in mingw's nor Platform
+ SDK's tmschema.h.
+
+ * modules/engines/ms-windows/xp_theme.c: Define _WIN32_WINNT as
+ 0x0501 to get the necesssary stuff from mingw's uxtheme.h.
+
2004-08-30 Matthias Clasen <mclasen@redhat.com>
Integrate the ms-windows theme engine (better known as Wimp)
2004-08-30 Matthias Clasen <mclasen@redhat.com>
- * gtk/gtktextview.c (gtk_text_view_delete_surrounding_handler): Make it compile.
+ * gtk/gtktextview.c (gtk_text_view_delete_surrounding_handler):
+ Make it compile.
2004-08-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrange.h (struct _GtkRangeClass): Declare change_value
function.
->>>>>>> 1.5765
2004-08-26 Matthias Clasen <mclasen@redhat.com>
* modules/input/Makefile.am: Build imime.la on Windows.
modules/input/Makefile
modules/engines/Makefile
modules/engines/ms-windows/Makefile
+modules/engines/ms-windows/Theme/Makefile
+modules/engines/ms-windows/Theme/gtk-2.0/Makefile
contrib/Makefile
contrib/gdk-pixbuf-xlib/Makefile
contrib/gdk-pixbuf-xlib/gdk-pixbuf-xlib-2.0.pc
EXTRA_DIST=Makefile.msc
-INCLUDES=$(MSW_CFLAGS)
+INCLUDES = \
+ -I$(top_srcdir) \
+ -I$(top_srcdir)/gdk \
+ -I$(top_builddir)/gdk \
+ -DG_DISABLE_DEPRECATED \
+ -DGDK_PIXBUF_DISABLE_DEPRECATED \
+ -DGDK_DISABLE_DEPRECATED \
+ $(GTK_DEP_CFLAGS)
-enginedir=$(libdir)/gtk-2.0/$(GTK_VERSION)/engines
+
+LDADDS = \
+ $(top_builddir)/gdk/$(gdktargetlib) \
+ $(top_builddir)/gtk/$(gtktargetlib) \
+ $(GTK_DEP_LIBS)
+
+enginedir = $(libdir)/gtk-2.0/$(GTK_BINARY_VERSION)/engines
engine_LTLIBRARIES = libwimp.la
libwimp_la_LDFLAGS = \
-avoid-version -module -no-undefined -export-dynamic
-libwimp_la_LIBADD= $(MSW_LIBS)
-
+libwimp_la_LIBADD = $(LDADDS)
#ifndef MSW_RC_STYLE_H\r
#define MSW_RC_STYLE_H\r
\r
-#include <gtk/gtkrc.h>\r
+#include "gtk/gtkrc.h"\r
\r
typedef struct _MswRcStyle MswRcStyle;\r
typedef struct _MswRcStyleClass MswRcStyleClass;\r
#include <windows.h>
#include <math.h>
#include <string.h>
-#include <gtk/gtk.h>
-#include <gtk/gtk.h>
-#include <gdk/gdkwin32.h>
-
#include <stdio.h>
+#include "gtk/gtk.h"
+#include "gtk/gtk.h"
+#include "gdk/win32/gdkwin32.h"
+
+
/* Default values, not normally used
*/
static const GtkRequisition default_option_indicator_size = { 9, 8 };
if ((*width == -1) && (*height == -1))
{
set_bg = GDK_IS_WINDOW (window);
- gdk_window_get_size (window, width, height);
+ gdk_drawable_get_size (window, width, height);
}
else if (*width == -1)
- gdk_window_get_size (window, width, NULL);
+ gdk_drawable_get_size (window, width, NULL);
else if (*height == -1)
- gdk_window_get_size (window, NULL, height);
+ gdk_drawable_get_size (window, NULL, height);
return set_bg;
}
gdk_draw_rectangle (window, gc, TRUE, x, y, width, height);
gdk_gc_unref (gc);
- gdk_pixmap_unref (pixmap);
+ gdk_drawable_unref (pixmap);
return;
}
#ifndef MSW_STYLE_H\r
#define MSW_STYLE_H\r
\r
-#include <gtk/gtkstyle.h>\r
+#include "gtk/gtkstyle.h"\r
\r
typedef struct _MswStyle MswStyle;\r
typedef struct _MswStyleClass MswStyleClass;\r
*/\r
\r
#include <windows.h>\r
+\r
#include <gmodule.h>\r
-#include <gtk/gtk.h>\r
+\r
+#include "gtk/gtk.h"\r
\r
#include "msw_style.h"\r
#include "msw_rc_style.h"\r
* Boston, MA 02111-1307, USA.
*/
+#define _WIN32_WINNT 0x0501
+
#include "xp_theme.h"
#include <windows.h>
#include <math.h>
#include <string.h>
-#include <gdk/gdkwin32.h>
-
#include <stdio.h>
+#include "gdk/win32/gdkwin32.h"
+
+
#ifdef DONT_HAVE_UXTHEME_H
#include "xp_theme_defs.h"
#else
#include <tmschema.h>
#endif
+#ifndef TMT_CAPTIONFONT
+/* These aren't in mingw's "w32api" headers, nor in the Platform SDK
+ * headers.
+ */
+#define TMT_CAPTIONFONT 801
+#define TMT_MENUFONT 803
+#define TMT_STATUSFONT 804
+#define TMT_MSGBOXFONT 805
+#endif
+
static const LPCWSTR class_descriptors[] =
{
L"Scrollbar", /* XP_THEME_CLASS_SCROLLBAR */
#define XP_THEME_H\r
\r
#include <windows.h>\r
-#include <gtk/gtk.h>\r
+\r
+#include "gtk/gtk.h"\r
\r
typedef enum\r
{\r
#define SP_PANE 1
#define SP_GRIPPER 2
-#define TMT_CAPTIONFONT 801
-#define TMT_MENUFONT 803
-#define TMT_STATUSFONT 804
-#define TMT_MSGBOXFONT 805
-
#endif /* XP_THEME_DFNS_H */