diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-04-03 04:04:17 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-04-03 04:04:17 +0800 |
commit | 4454c5cf13ac8e73924c1957e25cd742b7143f51 (patch) | |
tree | 2bce2be1531c6ccc47d93210aa669643ff0c7ef3 /embed | |
parent | 44d71da97fd6037b37927ac2ab6c59cdd82d00e2 (diff) | |
download | gsoc2013-epiphany-4454c5cf13ac8e73924c1957e25cd742b7143f51.tar gsoc2013-epiphany-4454c5cf13ac8e73924c1957e25cd742b7143f51.tar.gz gsoc2013-epiphany-4454c5cf13ac8e73924c1957e25cd742b7143f51.tar.bz2 gsoc2013-epiphany-4454c5cf13ac8e73924c1957e25cd742b7143f51.tar.lz gsoc2013-epiphany-4454c5cf13ac8e73924c1957e25cd742b7143f51.tar.xz gsoc2013-epiphany-4454c5cf13ac8e73924c1957e25cd742b7143f51.tar.zst gsoc2013-epiphany-4454c5cf13ac8e73924c1957e25cd742b7143f51.zip |
Oops, this is a string pref!
2006-04-02 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/mozilla-notifiers.cpp:
Oops, this is a string pref!
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/mozilla-notifiers.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
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; } |