aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shortcuts-view-model.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-07-01 14:25:43 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-07-01 14:25:43 +0800
commit6077a94d84eb66bd81e52a92d3703db72ab5614a (patch)
treecd7b8aeb1acfbc4c7b6bc302cbe18c0400cbb5f4 /shell/e-shortcuts-view-model.c
parent3950295c0f8adbf2003eb84322fa6e7c8ba6af47 (diff)
downloadgsoc2013-evolution-6077a94d84eb66bd81e52a92d3703db72ab5614a.tar
gsoc2013-evolution-6077a94d84eb66bd81e52a92d3703db72ab5614a.tar.gz
gsoc2013-evolution-6077a94d84eb66bd81e52a92d3703db72ab5614a.tar.bz2
gsoc2013-evolution-6077a94d84eb66bd81e52a92d3703db72ab5614a.tar.lz
gsoc2013-evolution-6077a94d84eb66bd81e52a92d3703db72ab5614a.tar.xz
gsoc2013-evolution-6077a94d84eb66bd81e52a92d3703db72ab5614a.tar.zst
gsoc2013-evolution-6077a94d84eb66bd81e52a92d3703db72ab5614a.zip
Change EShortcuts to not use group titles to access specific groups.
Also, allow more than one group with the same title. svn path=/trunk/; revision=10652
Diffstat (limited to 'shell/e-shortcuts-view-model.c')
-rw-r--r--shell/e-shortcuts-view-model.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/shell/e-shortcuts-view-model.c b/shell/e-shortcuts-view-model.c
index f13971ac9a..15e1d3cec1 100644
--- a/shell/e-shortcuts-view-model.c
+++ b/shell/e-shortcuts-view-model.c
@@ -49,7 +49,6 @@ struct _EShortcutsViewModelPrivate {
static void
load_group_into_model (EShortcutsViewModel *shortcuts_view_model,
- const char *group_title,
int group_num)
{
EShortcutsViewModelPrivate *priv;
@@ -62,7 +61,7 @@ load_group_into_model (EShortcutsViewModel *shortcuts_view_model,
storage_set = e_shortcuts_get_storage_set (priv->shortcuts);
g_assert (storage_set != NULL);
- shortcut_list = e_shortcuts_get_shortcuts_in_group (priv->shortcuts, group_title);
+ shortcut_list = e_shortcuts_get_shortcuts_in_group (priv->shortcuts, group_num);
if (shortcut_list == NULL)
return;
@@ -92,7 +91,7 @@ load_all_shortcuts_into_model (EShortcutsViewModel *shortcuts_view_model)
group_title = (const char *) p->data;
group_num = e_shortcut_model_add_group (E_SHORTCUT_MODEL (shortcuts_view_model), -1, group_title);
- load_group_into_model (shortcuts_view_model, group_title, group_num);
+ load_group_into_model (shortcuts_view_model, group_num);
}
}