aboutsummaryrefslogtreecommitdiff
path: root/src/notification-menuitem.h
diff options
context:
space:
mode:
authorJason Conti <jason.conti@gmail.com>2012-02-26 15:03:47 -0500
committerJason Conti <jason.conti@gmail.com>2012-02-26 15:03:47 -0500
commit5d8d44a32d19063be8237f52ebf5d56c4e90f7d6 (patch)
tree984110ed0a0d82ede7928ff69a7a4a842b1fa799 /src/notification-menuitem.h
parent1bcf41c76dce04648d842ab47bc9d17b2e735e79 (diff)
downloadayatana-indicator-notifications-5d8d44a32d19063be8237f52ebf5d56c4e90f7d6.tar.gz
ayatana-indicator-notifications-5d8d44a32d19063be8237f52ebf5d56c4e90f7d6.tar.bz2
ayatana-indicator-notifications-5d8d44a32d19063be8237f52ebf5d56c4e90f7d6.zip
* Move the button events to notification menuitem.
* Add a clicked event to the notification menuitem. * Drop the old new_notification_menuitem code.
Diffstat (limited to 'src/notification-menuitem.h')
-rw-r--r--src/notification-menuitem.h4
1 files changed, 4 insertions, 0 deletions
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);