aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/shortcut-bar/e-shortcut-bar.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-05-04 14:16:33 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-05-04 14:16:33 +0800
commit5801d079852bd2e877d9511e4c3ea8083066c58c (patch)
treeafafffc9c1c2fac6b5e18e737b9f762bb76c16c3 /widgets/shortcut-bar/e-shortcut-bar.c
parentf8bfbef0a705629ae2aefa71dc06b7d64fbd5274 (diff)
downloadgsoc2013-evolution-5801d079852bd2e877d9511e4c3ea8083066c58c.tar
gsoc2013-evolution-5801d079852bd2e877d9511e4c3ea8083066c58c.tar.gz
gsoc2013-evolution-5801d079852bd2e877d9511e4c3ea8083066c58c.tar.bz2
gsoc2013-evolution-5801d079852bd2e877d9511e4c3ea8083066c58c.tar.lz
gsoc2013-evolution-5801d079852bd2e877d9511e4c3ea8083066c58c.tar.xz
gsoc2013-evolution-5801d079852bd2e877d9511e4c3ea8083066c58c.tar.zst
gsoc2013-evolution-5801d079852bd2e877d9511e4c3ea8083066c58c.zip
Fixed EShortcutBar API: the icon callback function now gets a `const
char *' url (instead of just a `char *') and a closure. svn path=/trunk/; revision=2790
Diffstat (limited to 'widgets/shortcut-bar/e-shortcut-bar.c')
-rw-r--r--widgets/shortcut-bar/e-shortcut-bar.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/widgets/shortcut-bar/e-shortcut-bar.c b/widgets/shortcut-bar/e-shortcut-bar.c
index 5195f2d856..e07e840f53 100644
--- a/widgets/shortcut-bar/e-shortcut-bar.c
+++ b/widgets/shortcut-bar/e-shortcut-bar.c
@@ -535,10 +535,12 @@ e_shortcut_bar_stop_editing (GtkWidget *button,
/* Sets the callback which is called to return the icon to use for a particular
URL. */
void
-e_shortcut_bar_set_icon_callback (EShortcutBar *shortcut_bar,
- EShortcutBarIconCallback cb)
+e_shortcut_bar_set_icon_callback (EShortcutBar *shortcut_bar,
+ EShortcutBarIconCallback cb,
+ gpointer data)
{
shortcut_bar->icon_callback = cb;
+ shortcut_bar->icon_callback_data = data;
}
@@ -549,7 +551,9 @@ e_shortcut_bar_get_image_from_url (EShortcutBar *shortcut_bar,
GdkPixbuf *icon = NULL;
if (shortcut_bar->icon_callback)
- icon = (*shortcut_bar->icon_callback) (shortcut_bar, item_url);
+ icon = (*shortcut_bar->icon_callback) (shortcut_bar,
+ item_url,
+ shortcut_bar->icon_callback_data);
if (!icon) {
if (!e_shortcut_bar_default_icon_loaded) {