gtk+ r21605 - in trunk: . gtk



Author: cdywan
Date: Wed Oct  8 02:02:50 2008
New Revision: 21605
URL: http://svn.gnome.org/viewvc/gtk+?rev=21605&view=rev

Log:
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.

Modified:
   trunk/ChangeLog
   trunk/gtk/gtkstatusbar.c

Modified: trunk/gtk/gtkstatusbar.c
==============================================================================
--- trunk/gtk/gtkstatusbar.c	(original)
+++ trunk/gtk/gtkstatusbar.c	Wed Oct  8 02:02:50 2008
@@ -586,7 +586,7 @@
 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]