diff options
author | cinamod <cinamod> | 2003-10-07 19:10:15 +0000 |
---|---|---|
committer | cinamod <cinamod> | 2003-10-07 19:10:15 +0000 |
commit | bb3f3dbc1550cf90a440b18bce573fab8c295c66 (patch) | |
tree | 6352c263e5d557bcc980126993ea384173d8d556 /modules | |
parent | 8a93f2ff7a4bbebea08ec0822e1441f5b3750341 (diff) | |
download | gtk+-bb3f3dbc1550cf90a440b18bce573fab8c295c66.tar.gz |
mingw build system
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/engines/ms-windows/ChangeLog.old | 4 | ||||
-rw-r--r-- | modules/engines/ms-windows/Makefile.am | 23 | ||||
-rw-r--r-- | modules/engines/ms-windows/Theme/Makefile.am | 1 | ||||
-rw-r--r-- | modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am | 4 | ||||
-rwxr-xr-x | modules/engines/ms-windows/xp_theme.c | 8 | ||||
-rw-r--r-- | modules/engines/ms-windows/xp_theme_defs.h | 7 |
6 files changed, 42 insertions, 5 deletions
diff --git a/modules/engines/ms-windows/ChangeLog.old b/modules/engines/ms-windows/ChangeLog.old index 44cfc1b88c..68c759c647 100755 --- a/modules/engines/ms-windows/ChangeLog.old +++ b/modules/engines/ms-windows/ChangeLog.old @@ -1,3 +1,7 @@ +2003-10-07 Dom Lachowicz <cinamod@hotmail.com>
+
+ * Added new mingw based build system, tidied up other missing bits
+
2003-10-07 Raymond Penners <raymond@dotsphinx.com>
* src/wimp_style.c: Tabs not located on top of the notebook are
diff --git a/modules/engines/ms-windows/Makefile.am b/modules/engines/ms-windows/Makefile.am new file mode 100644 index 0000000000..0644ba27ad --- /dev/null +++ b/modules/engines/ms-windows/Makefile.am @@ -0,0 +1,23 @@ +SUBDIRS=Theme + +EXTRA_DIST=Makefile.msc + +INCLUDES=$(WIMP_CFLAGS) + +enginedir=$(libdir)/gtk-2.0/$(GTK_VERSION)/engines + +engine_LTLIBRARIES = libwimp.la + +libwimp_la_SOURCES = \ + wimp_rc_style.c \ + wimp_rc_style.h \ + wimp_style.c \ + wimp_style.h \ + wimp_theme_main.c \ + xp_theme.c \ + xp_theme_defs.h \ + xp_theme.h + +libwimp_la_LDFLAGS = -avoid-version -module -no-undefined -export-dynamic +libwimp_la_LIBADD= $(WIMP_LIBS) + diff --git a/modules/engines/ms-windows/Theme/Makefile.am b/modules/engines/ms-windows/Theme/Makefile.am new file mode 100644 index 0000000000..7e652b8ff9 --- /dev/null +++ b/modules/engines/ms-windows/Theme/Makefile.am @@ -0,0 +1 @@ +SUBDIRS=gtk-2.0 diff --git a/modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am b/modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am new file mode 100644 index 0000000000..b50f7107cb --- /dev/null +++ b/modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am @@ -0,0 +1,4 @@ +themedir = $(datadir)/themes/gtk-2.0 +theme_DATA=gtkrc + +EXTRA_DIST=$(theme_DATA) diff --git a/modules/engines/ms-windows/xp_theme.c b/modules/engines/ms-windows/xp_theme.c index 886f197ddf..7b8cbeba90 100755 --- a/modules/engines/ms-windows/xp_theme.c +++ b/modules/engines/ms-windows/xp_theme.c @@ -21,17 +21,17 @@ #include "xp_theme.h" #include <windows.h> -#include <uxtheme.h> -#include <tmschema.h> #include <math.h> #include <string.h> #include <gdk/gdkwin32.h> #include <stdio.h> -/* MS defines this when it includes its schema definitions */ -#ifndef TMSCHEMA_H +#ifdef DONT_HAVE_UXTHEME_H #include "xp_theme_defs.h" +#else +#include <uxtheme.h> +#include <tmschema.h> #endif static const LPCWSTR class_descriptors[] = diff --git a/modules/engines/ms-windows/xp_theme_defs.h b/modules/engines/ms-windows/xp_theme_defs.h index 034cd0c491..da7857a004 100644 --- a/modules/engines/ms-windows/xp_theme_defs.h +++ b/modules/engines/ms-windows/xp_theme_defs.h @@ -19,7 +19,7 @@ */ /* - * These are the real values of these UXTHEME constants, provided so that we can + * These are the real values of these UXTHEME constants, provided so that we can * compile/link on Win32 platforms that aren't WinXP, and also build against * MinGW 1.0/1.1, which also doesn't have these things defined in its header files */ @@ -29,6 +29,10 @@ typedef HANDLE HTHEME; +#define ETDT_ENABLE 0x00000002 +#define ETDT_USETABTEXTURE 0x00000004 +#define ETDT_ENABLETAB (ETDT_ENABLE | ETDT_USETABTEXTURE) + #define BP_PUSHBUTTON 1 #define BP_CHECKBOX 3 @@ -98,6 +102,7 @@ typedef HANDLE HTHEME; #define ABS_UPDISABLED 4 #define ABS_DOWNNORMAL 5 #define ABS_DOWNHOT 6 +#define ABS_DOWNPRESSED 7 #define ABS_DOWNDISABLED 8 #define ABS_LEFTNORMAL 9 #define ABS_LEFTHOT 10 |