aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shortcuts-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-06-30 10:28:44 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-06-30 10:28:44 +0800
commitd6372c9ae9c6cdc415318630cbfa155e34d90668 (patch)
treebe48abf24e4c3f767a234ad2146c47a0cf7c8abd /shell/e-shortcuts-view.c
parent5122606b0116c9aae28ca8e4d7fa4b9c9c9f79ed (diff)
downloadgsoc2013-evolution-d6372c9ae9c6cdc415318630cbfa155e34d90668.tar.gz
gsoc2013-evolution-d6372c9ae9c6cdc415318630cbfa155e34d90668.tar.zst
gsoc2013-evolution-d6372c9ae9c6cdc415318630cbfa155e34d90668.zip
This is a first shoot at making shortcuts renameable [#3719];
unfinished. Also, it causes the shortcut bar to stop displaying message unread count, but this is unfixable until we get rid of the ::LocalStorage interface, which should hopefully happen soon. svn path=/trunk/; revision=10621
Diffstat (limited to 'shell/e-shortcuts-view.c')
-rw-r--r--shell/e-shortcuts-view.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/shell/e-shortcuts-view.c b/shell/e-shortcuts-view.c
index 3db7115ecb..bfde8d02c4 100644
--- a/shell/e-shortcuts-view.c
+++ b/shell/e-shortcuts-view.c
@@ -352,18 +352,18 @@ activate_shortcut_cb (GtkWidget *widget,
ShortcutRightClickMenuData *menu_data;
EShortcutsView *shortcuts_view;
EShortcuts *shortcuts;
- const char *uri;
+ const EShortcutItem *shortcut_item;
menu_data = (ShortcutRightClickMenuData *) data;
shortcuts_view = menu_data->shortcuts_view;
shortcuts = shortcuts_view->priv->shortcuts;
- uri = e_shortcuts_get_uri (shortcuts, menu_data->group_num, menu_data->item_num);
- if (uri == NULL)
+ shortcut_item = e_shortcuts_get_shortcut (shortcuts, menu_data->group_num, menu_data->item_num);
+ if (shortcut_item == NULL)
return;
gtk_signal_emit (GTK_OBJECT (shortcuts_view), signals[ACTIVATE_SHORTCUT],
- shortcuts, uri);
+ shortcuts, shortcut_item->uri);
}
static void
@@ -443,7 +443,7 @@ item_selected (EShortcutBar *shortcut_bar,
{
EShortcuts *shortcuts;
EShortcutsView *shortcuts_view;
- const char *uri;
+ const EShortcutItem *shortcut_item;
shortcuts_view = E_SHORTCUTS_VIEW (shortcut_bar);
shortcuts = shortcuts_view->priv->shortcuts;
@@ -463,12 +463,12 @@ item_selected (EShortcutBar *shortcut_bar,
if (item_num < 0)
return;
- uri = e_shortcuts_get_uri (shortcuts, group_num, item_num);
- if (uri == NULL)
+ shortcut_item = e_shortcuts_get_shortcut (shortcuts, group_num, item_num);
+ if (shortcut_item == NULL)
return;
gtk_signal_emit (GTK_OBJECT (shortcuts_view), signals[ACTIVATE_SHORTCUT],
- shortcuts, uri);
+ shortcuts, shortcut_item->uri);
}
static void
@@ -484,7 +484,7 @@ impl_shortcut_dropped (EShortcutBar *shortcut_bar,
shortcuts_view = E_SHORTCUTS_VIEW (shortcut_bar);
priv = shortcuts_view->priv;
- e_shortcuts_add_shortcut (priv->shortcuts, group_num, position, item_url);
+ e_shortcuts_add_shortcut (priv->shortcuts, group_num, position, item_url, NULL, NULL);
}
static void