From 79755c0056e7777fc5786f771e7ecf07be77bfef Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 20 Aug 2005 22:23:16 +0000 Subject: 2005-08-21 Christian Persch * src/bookmarks/ephy-topic-action.c: (ephy_topic_action_sync_label): --- ChangeLog | 7 +++++++ src/bookmarks/ephy-topic-action.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2af67f965..8183a35be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-08-21 Christian Persch + + * src/bookmarks/ephy-topic-action.c: + (ephy_topic_action_sync_label): + + Use strlen, not hardcoded length. + 2005-08-21 Christian Persch * src/ephy-tab.c: (ephy_tab_finalize): diff --git a/src/bookmarks/ephy-topic-action.c b/src/bookmarks/ephy-topic-action.c index fc9716086..4885d2af6 100644 --- a/src/bookmarks/ephy-topic-action.c +++ b/src/bookmarks/ephy-topic-action.c @@ -211,7 +211,7 @@ ephy_topic_action_sync_label (GtkAction *gaction, separator = g_strrstr (title, BOOKMARKS_HIERARCHY_SEP); gtk_label_set_label (GTK_LABEL (label), - separator != NULL ? separator + 2 : title); + separator != NULL ? separator + strlen(BOOKMARKS_HIERARCHY_SEP) : title); g_free (title); } -- cgit v1.2.3