diff options
author | Jason Leach <jleach@ximian.com> | 2001-07-31 03:24:22 +0800 |
---|---|---|
committer | Jacob Leach <jleach@src.gnome.org> | 2001-07-31 03:24:22 +0800 |
commit | c7fa1e7eb5c25c1e4235fd717130cbf41e06240c (patch) | |
tree | 654d31db933eea3417831d7b8db41c3bcee9a008 /shell/e-shortcuts-view-model.c | |
parent | 116e504828b7383a447579142e06ca0f161864df (diff) | |
download | gsoc2013-evolution-c7fa1e7eb5c25c1e4235fd717130cbf41e06240c.tar gsoc2013-evolution-c7fa1e7eb5c25c1e4235fd717130cbf41e06240c.tar.gz gsoc2013-evolution-c7fa1e7eb5c25c1e4235fd717130cbf41e06240c.tar.bz2 gsoc2013-evolution-c7fa1e7eb5c25c1e4235fd717130cbf41e06240c.tar.lz gsoc2013-evolution-c7fa1e7eb5c25c1e4235fd717130cbf41e06240c.tar.xz 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-view-model.c')
-rw-r--r-- | shell/e-shortcuts-view-model.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |