]> Pileus Git - ~andy/gtk/commitdiff
Bug 555387 – Changing the sensitivity of a statusbar
authorChristian Dywan <cdywan@src.gnome.org>
Wed, 8 Oct 2008 02:02:50 +0000 (02:02 +0000)
committerChristian Dywan <cdywan@src.gnome.org>
Wed, 8 Oct 2008 02:02:50 +0000 (02:02 +0000)
mistakenly requires a display

* gtk/gtkstatusbar.c (set_grip_cursor): Only change the cursor
of the resize grip if there is a grip window.

svn path=/trunk/; revision=21605

ChangeLog
gtk/gtkstatusbar.c

index d003bcf0e0efe28a53f5a7a380dfca8474f31184..b74b40075a0b6c9bf2722c2ab4c4c451afc6a840 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-10-08  Christian Dywan  <christian@imendio.com>
+
+       Bug 555387 – Changing the sensitivity of a statusbar
+       mistakenly requires a display
+
+       * gtk/gtkstatusbar.c (set_grip_cursor): Only change the cursor
+        of the resize grip if there is a grip window.
+
 2008-10-06  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtktooltip.c (gtk_tooltip_show_tooltip): Avoid unitialized
index a2fa89e11431c37e7592fd8dc048e25286c04bf8..2bddfa88b6785267a38a1c832689eea12939aade 100644 (file)
@@ -586,7 +586,7 @@ get_grip_rect (GtkStatusbar *statusbar,
 static void
 set_grip_cursor (GtkStatusbar *statusbar)
 {
-  if (statusbar->has_resize_grip)
+  if (statusbar->has_resize_grip && statusbar->grip_window != NULL)
     {
       GtkWidget *widget = GTK_WIDGET (statusbar);
       GdkDisplay *display = gtk_widget_get_display (widget);