[evolution-patches] Patch for bug #54503
- From: Rodney Dawes <dobey novell com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] Patch for bug #54503
- Date: Thu, 10 Feb 2005 16:38:14 -0500
This patch fixes the theming issues in bug #54503.
-- dobey
? widgets/e-timezone-dialog/e-timezone-dialog.gladep
? widgets/misc/gtkmenutoolbutton.c
? widgets/misc/gtkmenutoolbutton.h
? widgets/misc/test-source-option-menu
? widgets/misc/test-source-selector
? widgets/misc/test-title-bar
Index: widgets/misc/e-combo-button.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/e-combo-button.c,v
retrieving revision 1.20
diff -u -p -r1.20 e-combo-button.c
--- widgets/misc/e-combo-button.c 4 Jan 2005 07:39:56 -0000 1.20
+++ widgets/misc/e-combo-button.c 10 Feb 2005 21:34:48 -0000
@@ -101,7 +101,14 @@ paint (EComboButton *combo_button,
int x, y, width, height;
int border_width;
- shadow_type = GTK_BUTTON (widget)->depressed ? GTK_SHADOW_IN : GTK_SHADOW_OUT;
+ if (GTK_BUTTON (widget)->depressed)
+ shadow_type = GTK_SHADOW_IN;
+ else if (GTK_BUTTON (widget)->relief == GTK_RELIEF_NONE &&
+ (GTK_WIDGET_STATE (widget) == GTK_STATE_NORMAL ||
+ GTK_WIDGET_STATE (widget) == GTK_STATE_INSENSITIVE))
+ shadow_type = GTK_SHADOW_NONE;
+ else
+ shadow_type = GTK_SHADOW_OUT;
border_width = GTK_CONTAINER (widget)->border_width;
@@ -134,19 +141,14 @@ paint (EComboButton *combo_button,
height -= 2 * (focus_width + focus_pad);
}
- if ((GTK_BUTTON (widget)->relief != GTK_RELIEF_NONE) ||
- ((GTK_WIDGET_STATE(widget) != GTK_STATE_NORMAL) &&
- (GTK_WIDGET_STATE(widget) != GTK_STATE_ACTIVE || GTK_BUTTON (widget)->depressed) &&
- (GTK_WIDGET_STATE(widget) != GTK_STATE_INSENSITIVE))) {
- gtk_paint_box (widget->style, widget->window,
- GTK_WIDGET_STATE (widget), shadow_type,
- area, widget, "button",
- x, y, separator_x, height);
- gtk_paint_box (widget->style, widget->window,
- GTK_WIDGET_STATE (widget), shadow_type,
- area, widget, "button",
- separator_x, y, width - separator_x, height);
- }
+ gtk_paint_box (widget->style, widget->window,
+ GTK_WIDGET_STATE (widget), shadow_type,
+ area, widget, "button",
+ x, y, separator_x, height);
+ gtk_paint_box (widget->style, widget->window,
+ GTK_WIDGET_STATE (widget), shadow_type,
+ area, widget, "button",
+ separator_x, y, width - separator_x, height);
if (GTK_WIDGET_HAS_FOCUS (widget)) {
if (interior_focus) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]