From 4454c5cf13ac8e73924c1957e25cd742b7143f51 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 2 Apr 2006 20:04:17 +0000 Subject: Oops, this is a string pref! 2006-04-02 Christian Persch * embed/mozilla/mozilla-notifiers.cpp: Oops, this is a string pref! --- embed/mozilla/mozilla-notifiers.cpp | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'embed/mozilla/mozilla-notifiers.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; } -- cgit v1.2.3