[Xfce4-commits] <midori:master> No need to handle thumb size when saving speed dial
Christian Dywan
noreply at xfce.org
Thu Oct 27 20:16:01 CEST 2011
Updating branch refs/heads/master
to 6f413112421a81f1880bb508049540bc9a48969b (commit)
from dc103bf017262d98921176549b4c4d6c3533f708 (commit)
commit 6f413112421a81f1880bb508049540bc9a48969b
Author: Paweł Forysiuk <tuxator at o2.pl>
Date: Thu Oct 27 17:40:15 2011 +0200
No need to handle thumb size when saving speed dial
midori/midori-view.c | 31 ++-----------------------------
1 files changed, 2 insertions(+), 29 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index 1eeeaf7..457f364 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -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);
More information about the Xfce4-commits
mailing list