summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorcinamod <cinamod>2004-01-20 21:46:59 +0000
committercinamod <cinamod>2004-01-20 21:46:59 +0000
commit30e463b6b46964ab4147a9a9dd56d2ea9165d617 (patch)
tree63a892f12fa2f11caf6fc42cf9d7973b576d1f65 /modules
parentd7bfabebdb575cc186f3dee6649a397a8b139c84 (diff)
downloadgtk+-30e463b6b46964ab4147a9a9dd56d2ea9165d617.tar.gz
remove UXTHEME_HAS_LINES, fix menu coloration
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/engines/ms-windows/ChangeLog.old12
-rwxr-xr-xmodules/engines/ms-windows/wimp_style.c31
-rwxr-xr-xmodules/engines/ms-windows/xp_theme.c41
-rwxr-xr-xmodules/engines/ms-windows/xp_theme.h2
4 files changed, 20 insertions, 66 deletions
diff --git a/modules/engines/ms-windows/ChangeLog.old b/modules/engines/ms-windows/ChangeLog.old
index 225a7dcc4c..09d9428f9f 100755
--- a/modules/engines/ms-windows/ChangeLog.old
+++ b/modules/engines/ms-windows/ChangeLog.old
@@ -1,3 +1,15 @@
+2004-01-20 Dom Lachowicz <cinamod@hotmail.com>
+
+ * src/wimp_style.c: Fix disappearing text in Gimp option menus.
+ Fix background color on XP menus.
+
+2004-01-20 Dom Lachowicz <cinamod@hotmail.com>
+
+ * src/xp_theme.h
+ * src/xp_theme.c
+ * src/wimp_style.c: Remove UXTHEME_HAS_LINES stuff. I played around
+ with line drawing, and the results were absolutely dreadful.
+
2003-12-30 Dom Lachowicz <cinamod@hotmail.com>
* src/wimp_style.c
diff --git a/modules/engines/ms-windows/wimp_style.c b/modules/engines/ms-windows/wimp_style.c
index 3e6c1da3e9..0a134f76fa 100755
--- a/modules/engines/ms-windows/wimp_style.c
+++ b/modules/engines/ms-windows/wimp_style.c
@@ -534,7 +534,9 @@ setup_wimp_rc_style(void)
"fg[NORMAL] = { %d, %d, %d }\n"
"bg[NORMAL] = { %d, %d, %d }\n"
"%s = \"%s\"\n"
- "}widget_class \"*MenuItem*\" style \"wimp-menu\"\n",
+ "}widget_class \"*MenuItem*\" style \"wimp-menu\"\n"
+ "widget_class \"*GtkMenu\" style \"wimp-menu\"\n"
+ "widget_class \"*GtkMenuShell*\" style \"wimp-menu\"\n",
fg_prelight.red,
fg_prelight.green,
fg_prelight.blue,
@@ -1683,17 +1685,9 @@ draw_hline (GtkStyle *style,
return;
}
}
-#if UXTHEME_HAS_LINES
- if (xp_theme_draw(window, XP_THEME_ELEMENT_HLINE, style, x1, y, x2,
- style->ythickness, state_type, area))
- {
- }
- else
-#endif
- {
- parent_class->draw_hline (style, window, state_type, area, widget,
- detail, x1, x2, y);
- }
+
+ parent_class->draw_hline (style, window, state_type, area, widget,
+ detail, x1, x2, y);
}
static void
@@ -1707,17 +1701,8 @@ draw_vline (GtkStyle *style,
gint y2,
gint x)
{
-#if UXTHEME_HAS_LINES
- if (xp_theme_draw(window, XP_THEME_ELEMENT_VLINE, style, x, y1,
- style->xthickness, y2, state_type, area))
- {
- }
- else
-#endif
- {
- parent_class->draw_vline (style, window, state_type, area, widget,
- detail, y1, y2, x);
- }
+ parent_class->draw_vline (style, window, state_type, area, widget,
+ detail, y1, y2, x);
}
static void
diff --git a/modules/engines/ms-windows/xp_theme.c b/modules/engines/ms-windows/xp_theme.c
index a8bd4a3463..7dd77d10d7 100755
--- a/modules/engines/ms-windows/xp_theme.c
+++ b/modules/engines/ms-windows/xp_theme.c
@@ -97,12 +97,6 @@ static const short element_part_map[]=
MP_SEPARATOR,
SP_GRIPPER,
SP_PANE
-
-#if UXTHEME_HAS_LINES
- ,
- GP_LINEHORZ,
- GP_LINEVERT
-#endif
};
static HINSTANCE uxtheme_dll = NULL;
@@ -244,11 +238,6 @@ xp_theme_get_handle_by_element (XpThemeElement element)
klazz = XP_THEME_CLASS_TOOLBAR;
break;
- case XP_THEME_ELEMENT_HLINE:
- case XP_THEME_ELEMENT_VLINE:
- klazz = XP_THEME_CLASS_GLOBALS;
- break;
-
case XP_THEME_ELEMENT_MENU_ITEM:
case XP_THEME_ELEMENT_MENU_SEPARATOR:
klazz = XP_THEME_CLASS_MENU;
@@ -604,36 +593,6 @@ xp_theme_map_gtk_state (XpThemeElement element, GtkStateType state)
ret = 1;
break;
-#if UXTHEME_HAS_LINES
-
- case XP_THEME_ELEMENT_HLINE:
- switch(state) {
- case GTK_STATE_ACTIVE:
- ret = LHS_RAISED;
- break;
- case GTK_STATE_INSENSITIVE:
- ret = LHS_SUNKEN;
- break;
- default:
- ret = LHS_FLAT;
- }
- break;
-
- case XP_THEME_ELEMENT_VLINE:
- switch(state) {
- case GTK_STATE_ACTIVE:
- ret = LVS_RAISED;
- break;
- case GTK_STATE_INSENSITIVE:
- ret = LVS_SUNKEN;
- break;
- default:
- ret = LHS_FLAT;
- }
- break;
-
-#endif
-
case XP_THEME_ELEMENT_MENU_ITEM:
case XP_THEME_ELEMENT_MENU_SEPARATOR:
switch(state) {
diff --git a/modules/engines/ms-windows/xp_theme.h b/modules/engines/ms-windows/xp_theme.h
index f393b56d9b..608843995b 100755
--- a/modules/engines/ms-windows/xp_theme.h
+++ b/modules/engines/ms-windows/xp_theme.h
@@ -88,8 +88,6 @@ typedef enum
XP_THEME_ELEMENT_MENU_SEPARATOR,
XP_THEME_ELEMENT_STATUS_GRIPPER,
XP_THEME_ELEMENT_STATUS_PANE,
- XP_THEME_ELEMENT_HLINE,
- XP_THEME_ELEMENT_VLINE,
XP_THEME_ELEMENT__SIZEOF
} XpThemeElement;