From 844e27e365aa00a3d49055d316e5848c03118895 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Thu, 18 May 2000 00:32:18 +0000 Subject: new signals "added_item", "removed_item", "added_group", "removed_group". 2000-05-18 Damon Chaplin * e-shortcut-bar.[hc]: new signals "added_item", "removed_item", "added_group", "removed_group". Note that the removed signals are emitted just before the item/group is actually removed. * test-shortcut-bar.c: updated to test the new signals, and ref'ed the pixbufs in the icon callback. svn path=/trunk/; revision=3111 --- widgets/shortcut-bar/e-shortcut-bar.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'widgets/shortcut-bar/e-shortcut-bar.h') diff --git a/widgets/shortcut-bar/e-shortcut-bar.h b/widgets/shortcut-bar/e-shortcut-bar.h index 2482399428..b02626fdef 100644 --- a/widgets/shortcut-bar/e-shortcut-bar.h +++ b/widgets/shortcut-bar/e-shortcut-bar.h @@ -90,6 +90,16 @@ struct _EShortcutBarClass GdkEvent *event, gint group_num, gint item_num); + void (*added_item) (EShortcutBar *shortcut_bar, + gint group_num, + gint item_num); + void (*removed_item) (EShortcutBar *shortcut_bar, + gint group_num, + gint item_num); + void (*added_group) (EShortcutBar *shortcut_bar, + gint group_num); + void (*removed_group) (EShortcutBar *shortcut_bar, + gint group_num); }; @@ -123,9 +133,9 @@ void e_shortcut_bar_remove_item (EShortcutBar *shortcut_bar, /* Sets the callback which is called to return the icon to use for a particular URL. This callback must be set before any items are added. If the callback returns NULL the default icon is used. */ -void e_shortcut_bar_set_icon_callback (EShortcutBar *shortcut_bar, - EShortcutBarIconCallback cb, - gpointer data); +void e_shortcut_bar_set_icon_callback (EShortcutBar *shortcut_bar, + EShortcutBarIconCallback cb, + gpointer data); #ifdef __cplusplus } -- cgit v1.2.3