aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shortcuts.c
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-07-31 03:24:22 +0800
committerJacob Leach <jleach@src.gnome.org>2001-07-31 03:24:22 +0800
commitc7fa1e7eb5c25c1e4235fd717130cbf41e06240c (patch)
tree654d31db933eea3417831d7b8db41c3bcee9a008 /shell/e-shortcuts.c
parent116e504828b7383a447579142e06ca0f161864df (diff)
downloadgsoc2013-evolution-c7fa1e7eb5c25c1e4235fd717130cbf41e06240c.tar.gz
gsoc2013-evolution-c7fa1e7eb5c25c1e4235fd717130cbf41e06240c.tar.zst
gsoc2013-evolution-c7fa1e7eb5c25c1e4235fd717130cbf41e06240c.zip
Remember the current group so after renaming a group it doesn't flip to
2001-07-30 Jason Leach <jleach@ximian.com> * 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
Diffstat (limited to 'shell/e-shortcuts.c')
-rw-r--r--shell/e-shortcuts.c5
1 files changed, 3 insertions, 2 deletions
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);