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-view-model.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shell/e-shortcuts-view-model.c') diff --git a/shell/e-shortcuts-view-model.c b/shell/e-shortcuts-view-model.c index 57d2762fb9..8936d24242 100644 --- a/shell/e-shortcuts-view-model.c +++ b/shell/e-shortcuts-view-model.c @@ -135,6 +135,10 @@ shortcuts_rename_group_cb (EShortcuts *shortcuts, shortcuts_view_model = E_SHORTCUTS_VIEW_MODEL (data); + /* FIXME: Ideally there should be an + e_shortcut_model_rename_group(), removing then re-add + actually causes a flip to the next group, which we work + around in e-shortcuts-view.c */ e_shortcut_model_remove_group (E_SHORTCUT_MODEL (shortcuts_view_model), group_num); e_shortcut_model_add_group (E_SHORTCUT_MODEL (shortcuts_view_model), group_num, new_title); load_group_into_model (shortcuts_view_model, group_num); -- cgit