From 61c3e66e2ced402bd2e5da13594fb179e3df78ed Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 8 Oct 2008 02:02:50 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20555387=20=E2=80=93=20Changing=20the=20sen?= =?UTF-8?q?sitivity=20of=20a=20statusbar=20mistakenly=20requires=20a=20dis?= =?UTF-8?q?play?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 | 8 ++++++++ gtk/gtkstatusbar.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d003bcf0e0..b74b40075a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-10-08 Christian Dywan + + 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 * gtk/gtktooltip.c (gtk_tooltip_show_tooltip): Avoid unitialized diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c index a2fa89e114..2bddfa88b6 100644 --- a/gtk/gtkstatusbar.c +++ b/gtk/gtkstatusbar.c @@ -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);