aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shortcuts.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-09-26 03:11:15 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-09-26 03:11:15 +0800
commita75e971a552b0e4138ce901fd33d50d45319c919 (patch)
tree85d6d9350bc2eb1d1495343051b463f93290020b /shell/e-shortcuts.c
parent72fff3213ae1221b3c13841cb43df39f963efb1f (diff)
downloadgsoc2013-evolution-a75e971a552b0e4138ce901fd33d50d45319c919.tar
gsoc2013-evolution-a75e971a552b0e4138ce901fd33d50d45319c919.tar.gz
gsoc2013-evolution-a75e971a552b0e4138ce901fd33d50d45319c919.tar.bz2
gsoc2013-evolution-a75e971a552b0e4138ce901fd33d50d45319c919.tar.lz
gsoc2013-evolution-a75e971a552b0e4138ce901fd33d50d45319c919.tar.xz
gsoc2013-evolution-a75e971a552b0e4138ce901fd33d50d45319c919.tar.zst
gsoc2013-evolution-a75e971a552b0e4138ce901fd33d50d45319c919.zip
Update the shortcut bar in the shell view to match the changes in the
way drag and drop is handled. Separate the handling for the view into a separate object. This should make the shortcut bar work again, but it's untested. svn path=/trunk/; revision=5575
Diffstat (limited to 'shell/e-shortcuts.c')
-rw-r--r--shell/e-shortcuts.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/shell/e-shortcuts.c b/shell/e-shortcuts.c
index 4d4b8ed9ee..4befb87cb7 100644
--- a/shell/e-shortcuts.c
+++ b/shell/e-shortcuts.c
@@ -756,5 +756,25 @@ e_shortcuts_add_group (EShortcuts *shortcuts,
}
+const char *
+e_shortcuts_get_group_title (EShortcuts *shortcuts,
+ int group_num)
+{
+ EShortcutsPrivate *priv;
+ const ShortcutGroup *group;
+
+ g_return_val_if_fail (shortcuts != NULL, NULL);
+ g_return_val_if_fail (E_IS_SHORTCUTS (shortcuts), NULL);
+
+ priv = shortcuts->priv;
+
+ group = g_list_nth (priv->groups, group_num);
+ if (group == NULL)
+ return NULL;
+
+ return group->title;
+}
+
+
E_MAKE_TYPE (e_shortcuts, "EShortcuts", EShortcuts, class_init, init, PARENT_TYPE)