[Xfce4-commits] <midori:master> Properly rename speed dial item containing multiple spaces
Christian Dywan
noreply at xfce.org
Mon Jul 4 23:32:01 CEST 2011
Updating branch refs/heads/master
to e1c79b3a60d664d66bc4d837f1bed57a16fb0ae6 (commit)
from df47a2b8d4134a2e131e2196c8cb9a6b21c120dd (commit)
commit e1c79b3a60d664d66bc4d837f1bed57a16fb0ae6
Author: Paweł Forysiuk <tuxator at o2.pl>
Date: Mon Jul 4 01:48:43 2011 +0200
Properly rename speed dial item containing multiple spaces
midori/midori-view.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index c3ed4e0..7b76dbe 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -5391,7 +5391,10 @@ midori_view_speed_dial_save (MidoriView* view,
}
else if (g_str_equal (action, "rename"))
{
- g_key_file_set_string (key_file, dial_id, "title", parts[2]);
+ guint offset = strlen (parts[0]) + strlen (parts[1]) + 2;
+ gchar* title = g_strdup (msg + offset);
+ g_key_file_set_string (key_file, dial_id, "title", title);
+ g_free (title);
}
g_free (dial_id);
More information about the Xfce4-commits
mailing list