Show the grip_window if necessary.

2004-11-09  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkstatusbar.c (gtk_statusbar_set_has_resize_grip):
	Show the grip_window if necessary.
This commit is contained in:
Matthias Clasen 2004-11-09 15:35:27 +00:00 committed by Matthias Clasen
parent ac83360abb
commit cad2d56ce2
5 changed files with 20 additions and 5 deletions

View File

@ -1,5 +1,8 @@
2004-11-09 Matthias Clasen <mclasen@redhat.com> 2004-11-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkstatusbar.c (gtk_statusbar_set_has_resize_grip):
Show the grip_window if necessary.
* gtk/gtkstyle.c (gtk_default_draw_resize_grip): Only * gtk/gtkstyle.c (gtk_default_draw_resize_grip): Only
clear the triangle below the grip to the background, clear the triangle below the grip to the background,
not the full area. not the full area.

View File

@ -1,5 +1,8 @@
2004-11-09 Matthias Clasen <mclasen@redhat.com> 2004-11-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkstatusbar.c (gtk_statusbar_set_has_resize_grip):
Show the grip_window if necessary.
* gtk/gtkstyle.c (gtk_default_draw_resize_grip): Only * gtk/gtkstyle.c (gtk_default_draw_resize_grip): Only
clear the triangle below the grip to the background, clear the triangle below the grip to the background,
not the full area. not the full area.

View File

@ -1,5 +1,8 @@
2004-11-09 Matthias Clasen <mclasen@redhat.com> 2004-11-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkstatusbar.c (gtk_statusbar_set_has_resize_grip):
Show the grip_window if necessary.
* gtk/gtkstyle.c (gtk_default_draw_resize_grip): Only * gtk/gtkstyle.c (gtk_default_draw_resize_grip): Only
clear the triangle below the grip to the background, clear the triangle below the grip to the background,
not the full area. not the full area.

View File

@ -1,5 +1,8 @@
2004-11-09 Matthias Clasen <mclasen@redhat.com> 2004-11-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkstatusbar.c (gtk_statusbar_set_has_resize_grip):
Show the grip_window if necessary.
* gtk/gtkstyle.c (gtk_default_draw_resize_grip): Only * gtk/gtkstyle.c (gtk_default_draw_resize_grip): Only
clear the triangle below the grip to the background, clear the triangle below the grip to the background,
not the full area. not the full area.

View File

@ -416,7 +416,10 @@ gtk_statusbar_set_has_resize_grip (GtkStatusbar *statusbar,
if (GTK_WIDGET_REALIZED (statusbar)) if (GTK_WIDGET_REALIZED (statusbar))
{ {
if (statusbar->has_resize_grip && statusbar->grip_window == NULL) if (statusbar->has_resize_grip && statusbar->grip_window == NULL)
{
gtk_statusbar_create_window (statusbar); gtk_statusbar_create_window (statusbar);
gdk_window_show (statusbar->grip_window);
}
else if (!statusbar->has_resize_grip && statusbar->grip_window != NULL) else if (!statusbar->has_resize_grip && statusbar->grip_window != NULL)
gtk_statusbar_destroy_window (statusbar); gtk_statusbar_destroy_window (statusbar);
} }