diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/mozilla-notifiers.cpp | 17 |
2 files changed, 10 insertions, 13 deletions
@@ -1,3 +1,9 @@ +2006-04-02 Christian Persch <chpe@cvs.gnome.org> + + * embed/mozilla/mozilla-notifiers.cpp: + + Oops, this is a string pref! + 2006-04-01 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyPromptService.cpp: diff --git a/embed/mozilla/mozilla-notifiers.cpp b/embed/mozilla/mozilla-notifiers.cpp index 12484bc3e..153c8df73 100644 --- a/embed/mozilla/mozilla-notifiers.cpp +++ b/embed/mozilla/mozilla-notifiers.cpp @@ -215,7 +215,6 @@ transform_image_animation_mode (GConfEntry *gcentry, { GConfValue *gcvalue; const char *mode; - int mozilla_mode = 0; gcvalue = gconf_entry_get_value (gcentry); if (gcvalue == NULL || @@ -224,21 +223,13 @@ transform_image_animation_mode (GConfEntry *gcentry, mode = gconf_value_get_string (gcvalue); if (mode == NULL) return FALSE; - if (strcmp (mode, "normal") == 0) - { - mozilla_mode = 0; - } - else if (strcmp (mode, "once") == 0) + if (strcmp (mode, "disabled") == 0) { - mozilla_mode = 1; - } - else if (strcmp (mode, "disabled") == 0) - { - mozilla_mode = 2; + mode = "none"; } - g_value_init (value, G_TYPE_INT); - g_value_set_int (value, mozilla_mode); + g_value_init (value, G_TYPE_STRING); + g_value_set_string (value, mode); return TRUE; } |