aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--lib/ephy-dialog.c8
2 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 7b9c4353a..1e66c9fae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
2004-06-27 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/EphySingle.cpp:
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);
}