From 4cdd759468a36668bb7cf20e764cc93ef285f2cf Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Tue, 30 May 2006 09:04:39 +0000 Subject: Fix crash when moving zoom widget on toolbar (#338682) 2006-05-30 Frederic Peters * lib/egg/egg-editable-toolbar.c: (action_sensitive_cb) Fix crash when moving zoom widget on toolbar (#338682) --- lib/egg/egg-editable-toolbar.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c index b7fa0951d..104326fbf 100755 --- a/lib/egg/egg-editable-toolbar.c +++ b/lib/egg/egg-editable-toolbar.c @@ -532,6 +532,9 @@ action_sensitive_cb (GtkAction *action, EggEditableToolbar *etoolbar = EGG_EDITABLE_TOOLBAR (gtk_widget_get_ancestor (GTK_WIDGET (item), EGG_TYPE_EDITABLE_TOOLBAR)); + if (etoolbar == NULL) + return; + if (etoolbar->priv->edit_mode > 0) { gtk_widget_set_sensitive (GTK_WIDGET (item), TRUE); -- cgit v1.2.3