aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@0d.be>2006-05-30 17:04:39 +0800
committerFrederic Peters <fpeters@src.gnome.org>2006-05-30 17:04:39 +0800
commit4cdd759468a36668bb7cf20e764cc93ef285f2cf (patch)
tree4dcd8d20f08b155b9f43bf2dcfb194ee3a26a104 /lib
parent93ad37350052d823fa8a565b4cca602f99e3b797 (diff)
downloadgsoc2013-epiphany-4cdd759468a36668bb7cf20e764cc93ef285f2cf.tar
gsoc2013-epiphany-4cdd759468a36668bb7cf20e764cc93ef285f2cf.tar.gz
gsoc2013-epiphany-4cdd759468a36668bb7cf20e764cc93ef285f2cf.tar.bz2
gsoc2013-epiphany-4cdd759468a36668bb7cf20e764cc93ef285f2cf.tar.lz
gsoc2013-epiphany-4cdd759468a36668bb7cf20e764cc93ef285f2cf.tar.xz
gsoc2013-epiphany-4cdd759468a36668bb7cf20e764cc93ef285f2cf.tar.zst
gsoc2013-epiphany-4cdd759468a36668bb7cf20e764cc93ef285f2cf.zip
Fix crash when moving zoom widget on toolbar (#338682)
2006-05-30 Frederic Peters <fpeters@0d.be> * lib/egg/egg-editable-toolbar.c: (action_sensitive_cb) Fix crash when moving zoom widget on toolbar (#338682)
Diffstat (limited to 'lib')
-rwxr-xr-xlib/egg/egg-editable-toolbar.c3
1 files changed, 3 insertions, 0 deletions
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);