From 5d8d44a32d19063be8237f52ebf5d56c4e90f7d6 Mon Sep 17 00:00:00 2001 From: Jason Conti Date: Sun, 26 Feb 2012 15:03:47 -0500 Subject: * Move the button events to notification menuitem. * Add a clicked event to the notification menuitem. * Drop the old new_notification_menuitem code. --- src/notification-menuitem.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/notification-menuitem.h') diff --git a/src/notification-menuitem.h b/src/notification-menuitem.h index f76704a..11421c1 100644 --- a/src/notification-menuitem.h +++ b/src/notification-menuitem.h @@ -29,6 +29,8 @@ struct _NotificationMenuItem struct _NotificationMenuItemClass { GtkMenuItemClass parent_class; + + void (* clicked) (NotificationMenuItem *menuitem); }; struct _NotificationMenuItemPrivate { @@ -39,6 +41,8 @@ struct _NotificationMenuItemPrivate { #define NOTIFICATION_MENUITEM_GET_PRIVATE(o) \ (G_TYPE_INSTANCE_GET_PRIVATE ((o), NOTIFICATION_MENUITEM_TYPE, NotificationMenuItemPrivate)) +#define NOTIFICATION_MENUITEM_SIGNAL_CLICKED "clicked" + GType notification_menuitem_get_type(void); GtkWidget *notification_menuitem_new(void); void notification_menuitem_set_from_notification(NotificationMenuItem *self, Notification *note); -- cgit v1.2.3