From c7fa1e7eb5c25c1e4235fd717130cbf41e06240c Mon Sep 17 00:00:00 2001 From: Jason Leach Date: Mon, 30 Jul 2001 19:24:22 +0000 Subject: Remember the current group so after renaming a group it doesn't flip to 2001-07-30 Jason Leach * e-shortcuts-view.c (rename_group_cb): Remember the current group so after renaming a group it doesn't flip to the next group. Bug #3857. * e-shortcuts.c (e_shortcuts_rename_group): Comparing two separately allocated strings, use strcmp() instead of !=. svn path=/trunk/; revision=11483 --- shell/e-shortcuts.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'shell/e-shortcuts.c') diff --git a/shell/e-shortcuts.c b/shell/e-shortcuts.c index 7c8505ab79..1aaf8edd52 100644 --- a/shell/e-shortcuts.c +++ b/shell/e-shortcuts.c @@ -1030,10 +1030,11 @@ e_shortcuts_rename_group (EShortcuts *shortcuts, g_return_if_fail (p != NULL); group = (ShortcutGroup *) p->data; - if (group->title != new_title) { + if (strcmp (group->title, new_title)) { g_free (group->title); group->title = g_strdup (new_title); - } + } else + return; gtk_signal_emit (GTK_OBJECT (shortcuts), signals[RENAME_GROUP], group_num, new_title); -- cgit v1.2.3