]> spindle.queued.net Git - midori/commitdiff
No need to handle thumb size when saving speed dial
authorPaweł Forysiuk <tuxator@o2.pl>
Thu, 27 Oct 2011 15:40:15 +0000 (17:40 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 27 Oct 2011 18:12:45 +0000 (20:12 +0200)
midori/midori-view.c

index 1eeeaf7e07442912b7942b42f6e77f252cab84e3..457f364326e15d1ba1a0469d737cf272ec75f2ff 100644 (file)
@@ -5516,35 +5516,8 @@ midori_view_speed_dial_save (MidoriView*  view,
     g_object_get (browser, "speed-dial", &key_file, NULL);
     action = parts[0];
 
-    if (g_str_equal (action, "thumbsize"))
-    {
-        gchar* saved_size;
-        gchar* thumb_size_type;
-        guint size = atoi (parts[1]);
-
-        if (size == 80)
-            thumb_size_type = g_strdup ("SMALL");
-        else if (size == 240)
-            thumb_size_type = g_strdup ("BIG");
-        else /* if (size == 160) */
-            thumb_size_type = g_strdup ("MEDIUM");
-
-        saved_size = g_key_file_get_string (key_file, "settings", "size", NULL);
-        if (saved_size != NULL && g_str_equal (saved_size, thumb_size_type))
-        {
-            g_free (action);
-            g_free (msg);
-            g_free (thumb_size_type);
-            g_free (saved_size);
-            return;
-        }
-
-        g_key_file_set_string (key_file, "settings", "size", thumb_size_type);
-        g_free (thumb_size_type);
-        g_free (saved_size);
-    }
-    else if (g_str_equal (action, "add") || g_str_equal (action, "rename")
-          || g_str_equal (action, "delete"))
+    if (g_str_equal (action, "add") || g_str_equal (action, "rename")
+    ||  g_str_equal (action, "delete"))
     {
         gchar* tmp = g_strdup (parts[1] + 1);
         guint slot_id = atoi (tmp);