diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-05-04 14:16:33 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-05-04 14:16:33 +0800 |
commit | 5801d079852bd2e877d9511e4c3ea8083066c58c (patch) | |
tree | afafffc9c1c2fac6b5e18e737b9f762bb76c16c3 /widgets/shortcut-bar/test-shortcut-bar.c | |
parent | f8bfbef0a705629ae2aefa71dc06b7d64fbd5274 (diff) | |
download | gsoc2013-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/test-shortcut-bar.c')
-rw-r--r-- | widgets/shortcut-bar/test-shortcut-bar.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/widgets/shortcut-bar/test-shortcut-bar.c b/widgets/shortcut-bar/test-shortcut-bar.c index 6a62311638..abdccddeb1 100644 --- a/widgets/shortcut-bar/test-shortcut-bar.c +++ b/widgets/shortcut-bar/test-shortcut-bar.c @@ -42,8 +42,10 @@ GdkPixbuf *icon_pixbufs[NUM_SHORTCUT_TYPES]; GtkWidget *main_label; -static GdkPixbuf* icon_callback (EShortcutBar *shortcut_bar, - gchar *url); +static GdkPixbuf *icon_callback (EShortcutBar *shortcut_bar, + const gchar *url, + gpointer data); + static void on_main_label_size_allocate (GtkWidget *widget, GtkAllocation *allocation, gpointer data); @@ -110,7 +112,8 @@ main (int argc, char *argv[]) gtk_paned_pack1 (GTK_PANED (hpaned), shortcut_bar, FALSE, TRUE); gtk_widget_show (shortcut_bar); e_shortcut_bar_set_icon_callback (E_SHORTCUT_BAR (shortcut_bar), - icon_callback); + icon_callback, + NULL); #if 0 gtk_container_set_border_width (GTK_CONTAINER (shortcut_bar), 4); @@ -179,7 +182,8 @@ main (int argc, char *argv[]) static GdkPixbuf* icon_callback (EShortcutBar *shortcut_bar, - gchar *url) + const gchar *url, + gpointer data) { gint i; |