From a75e971a552b0e4138ce901fd33d50d45319c919 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 25 Sep 2000 19:11:15 +0000 Subject: 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 --- shell/e-shortcuts.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'shell/e-shortcuts.c') 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 @@ -755,6 +755,26 @@ e_shortcuts_add_group (EShortcuts *shortcuts, make_dirty (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) -- cgit v1.2.3