aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-dialog.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-06-29 20:38:29 +0800
committerChristian Persch <chpe@src.gnome.org>2004-06-29 20:38:29 +0800
commit0c58d7bc8c1d9203d8c4c9e1524fbc81ba5f044e (patch)
treea1ba4ae953201dc2189a5d118af39e5d48168ef1 /lib/ephy-dialog.c
parent35b2f4c884078c8bc29464ada4f34b044491527b (diff)
downloadgsoc2013-epiphany-0c58d7bc8c1d9203d8c4c9e1524fbc81ba5f044e.tar
gsoc2013-epiphany-0c58d7bc8c1d9203d8c4c9e1524fbc81ba5f044e.tar.gz
gsoc2013-epiphany-0c58d7bc8c1d9203d8c4c9e1524fbc81ba5f044e.tar.bz2
gsoc2013-epiphany-0c58d7bc8c1d9203d8c4c9e1524fbc81ba5f044e.tar.lz
gsoc2013-epiphany-0c58d7bc8c1d9203d8c4c9e1524fbc81ba5f044e.tar.xz
gsoc2013-epiphany-0c58d7bc8c1d9203d8c4c9e1524fbc81ba5f044e.tar.zst
gsoc2013-epiphany-0c58d7bc8c1d9203d8c4c9e1524fbc81ba5f044e.zip
Set sane_state to TRUE from user changes, otherwise broken prefs will
2004-06-29 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-dialog.c: (togglebutton_clicked_cb), (radiobutton_clicked_cb), (spinbutton_timeout_cb), (changed_cb): Set sane_state to TRUE from user changes, otherwise broken prefs will never get overwritten.
Diffstat (limited to 'lib/ephy-dialog.c')
-rw-r--r--lib/ephy-dialog.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c
index c402ca54b..f66139266 100644
--- a/lib/ephy-dialog.c
+++ b/lib/ephy-dialog.c
@@ -756,12 +756,16 @@ set_pref_from_info_and_emit (PropertyInfo *info)
static void
togglebutton_clicked_cb (GtkWidget *widget, PropertyInfo *info)
{
+ info->sane_state = TRUE;
+
set_pref_from_info_and_emit (info);
}
static void
radiobutton_clicked_cb (GtkWidget *widget, PropertyInfo *info)
{
+ info->sane_state = TRUE;
+
if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(widget)))
{
return;
@@ -796,6 +800,8 @@ spinbutton_timeout_cb (PropertyInfo *info)
* and set in the pref. Otherwise the old value is used */
gtk_spin_button_update (GTK_SPIN_BUTTON (info->widget));
+ info->sane_state = TRUE;
+
set_pref_from_info_and_emit (info);
/* done, don't run again */
@@ -832,6 +838,8 @@ spinbutton_changed_cb (GtkWidget *widget, PropertyInfo *info)
static void
changed_cb (GtkWidget *widget, PropertyInfo *info)
{
+ info->sane_state = TRUE;
+
set_pref_from_info_and_emit (info);
}