aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-dialog.c
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@gnome.org>2009-09-06 04:12:48 +0800
committerDiego Escalante Urrelo <diegoe@gnome.org>2009-09-06 05:20:23 +0800
commit469f9be0c2e48f5c22c8c153dedbba2ffc70c534 (patch)
treeec139e17432dd721451523fb7e367fb6ecabc154 /lib/ephy-dialog.c
parent4a282e5399a6571f11f646bb766e5fdd57d40850 (diff)
downloadgsoc2013-epiphany-469f9be0c2e48f5c22c8c153dedbba2ffc70c534.tar.gz
gsoc2013-epiphany-469f9be0c2e48f5c22c8c153dedbba2ffc70c534.tar.zst
gsoc2013-epiphany-469f9be0c2e48f5c22c8c153dedbba2ffc70c534.zip
ephy-dialog: set_sensitivity ignores .ui defaults
Bug 587470 - Smooth scrolling preference doesn't work
Diffstat (limited to 'lib/ephy-dialog.c')
-rw-r--r--lib/ephy-dialog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c
index b080ee11a..3d2226d70 100644
--- a/lib/ephy-dialog.c
+++ b/lib/ephy-dialog.c
@@ -146,15 +146,18 @@ set_sensitivity (PropertyInfo *info, gboolean sensitive)
for (l = list; l != NULL; l = l->next)
{
+ sensitive = gtk_widget_is_sensitive (GTK_WIDGET (l->data)) && sensitive;
gtk_widget_set_sensitive (GTK_WIDGET (l->data), sensitive);
}
}
else if (info->widget_type == PT_EDITABLE)
{
+ sensitive = gtk_widget_is_sensitive (info->widget) && sensitive;
gtk_editable_set_editable (GTK_EDITABLE (info->widget), sensitive);
}
else
{
+ sensitive = gtk_widget_is_sensitive (info->widget) && sensitive;
gtk_widget_set_sensitive (info->widget, sensitive);
}
}