+Fri Feb 20 00:21:38 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkstyle.c (gtk_default_draw_handle):
+ (gtk_default_draw_box): Make the paned handles gray when the the
+ widget is_focus() but not HAS_FOCUS(). (#122751, Soeren Sandmann)
+
Thu Feb 19 23:41:06 2004 Matthias Clasen <maclas@gmx.de>
Fixes for #82099:
and "Gtk/MenuImages" and map them to "gtk-button-images" and
"gtk-menu-images".
- * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and use
- it to set the visibility of the embedded image.
+ * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and
+ use it to set the visibility of the embedded image.
* gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
it to set the visibility of an embedded image.
+Fri Feb 20 00:21:38 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkstyle.c (gtk_default_draw_handle):
+ (gtk_default_draw_box): Make the paned handles gray when the the
+ widget is_focus() but not HAS_FOCUS(). (#122751, Soeren Sandmann)
+
Thu Feb 19 23:41:06 2004 Matthias Clasen <maclas@gmx.de>
Fixes for #82099:
and "Gtk/MenuImages" and map them to "gtk-button-images" and
"gtk-menu-images".
- * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and use
- it to set the visibility of the embedded image.
+ * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and
+ use it to set the visibility of the embedded image.
* gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
it to set the visibility of an embedded image.
+Fri Feb 20 00:21:38 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkstyle.c (gtk_default_draw_handle):
+ (gtk_default_draw_box): Make the paned handles gray when the the
+ widget is_focus() but not HAS_FOCUS(). (#122751, Soeren Sandmann)
+
Thu Feb 19 23:41:06 2004 Matthias Clasen <maclas@gmx.de>
Fixes for #82099:
and "Gtk/MenuImages" and map them to "gtk-button-images" and
"gtk-menu-images".
- * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and use
- it to set the visibility of the embedded image.
+ * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and
+ use it to set the visibility of the embedded image.
* gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
it to set the visibility of an embedded image.
+Fri Feb 20 00:21:38 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkstyle.c (gtk_default_draw_handle):
+ (gtk_default_draw_box): Make the paned handles gray when the the
+ widget is_focus() but not HAS_FOCUS(). (#122751, Soeren Sandmann)
+
Thu Feb 19 23:41:06 2004 Matthias Clasen <maclas@gmx.de>
Fixes for #82099:
and "Gtk/MenuImages" and map them to "gtk-button-images" and
"gtk-menu-images".
- * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and use
- it to set the visibility of the embedded image.
+ * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and
+ use it to set the visibility of the embedded image.
* gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
it to set the visibility of an embedded image.
+Fri Feb 20 00:21:38 2004 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkstyle.c (gtk_default_draw_handle):
+ (gtk_default_draw_box): Make the paned handles gray when the the
+ widget is_focus() but not HAS_FOCUS(). (#122751, Soeren Sandmann)
+
Thu Feb 19 23:41:06 2004 Matthias Clasen <maclas@gmx.de>
Fixes for #82099:
and "Gtk/MenuImages" and map them to "gtk-button-images" and
"gtk-menu-images".
- * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and use
- it to set the visibility of the embedded image.
+ * gtk/gtkimagemenuitem.c: Add a boolean setting "gtk-menu-images" and
+ use it to set the visibility of the embedded image.
* gtk/gtkbutton.c: Add a boolean setting "gtk-button-images" and use
it to set the visibility of an embedded image.
if (!style->bg_pixmap[state_type] ||
GDK_IS_PIXMAP (window))
{
+ GdkGC *gc = style->bg_gc[state_type];
+
+ if (state_type == GTK_STATE_SELECTED && strcmp (detail, "paned") == 0)
+ {
+ if (!GTK_WIDGET_HAS_FOCUS (widget))
+ gc = style->base_gc[GTK_STATE_ACTIVE];
+ }
+
if (area)
- gdk_gc_set_clip_rectangle (style->bg_gc[state_type], area);
+ gdk_gc_set_clip_rectangle (gc, area);
- gdk_draw_rectangle (window, style->bg_gc[state_type], TRUE,
+ gdk_draw_rectangle (window, gc, TRUE,
x, y, width, height);
if (area)
- gdk_gc_set_clip_rectangle (style->bg_gc[state_type], NULL);
+ gdk_gc_set_clip_rectangle (gc, NULL);
}
else
gtk_style_apply_default_background (style, window,
gint xx, yy;
gint xthick, ythick;
GdkGC *light_gc, *dark_gc;
+ GdkGC *free_me = NULL;
GdkRectangle rect;
GdkRectangle dest;
gint intersect;
xthick = 0;
ythick = 0;
- light_gc = style->light_gc[state_type];
+ if (state_type == GTK_STATE_SELECTED && !GTK_WIDGET_HAS_FOCUS (widget))
+ {
+ GdkColor unfocused_light;
+
+ gtk_style_shade (&style->base[GTK_STATE_ACTIVE], &unfocused_light,
+ LIGHTNESS_MULT);
+
+ light_gc = free_me = gdk_gc_new (window);
+ gdk_gc_set_rgb_fg_color (light_gc, &unfocused_light);
+ }
+ else
+ light_gc = style->light_gc[state_type];
+
dark_gc = style->black_gc;
}
else
rect.height = height - (ythick * 2);
if (area)
- intersect = gdk_rectangle_intersect (area, &rect, &dest);
+ intersect = gdk_rectangle_intersect (area, &rect, &dest);
else
{
intersect = TRUE;
}
if (!intersect)
- return;
+ goto out;
gdk_gc_set_clip_rectangle (light_gc, &dest);
gdk_gc_set_clip_rectangle (dark_gc, &dest);
gdk_gc_set_clip_rectangle (light_gc, NULL);
gdk_gc_set_clip_rectangle (dark_gc, NULL);
+
+ out:
+ if (free_me)
+ g_object_unref (G_OBJECT (free_me));
}
static void