diff options
Diffstat (limited to 'widgets/shortcut-bar/e-shortcut-bar.c')
-rw-r--r-- | widgets/shortcut-bar/e-shortcut-bar.c | 10 |
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) { |