From 1bcf41c76dce04648d842ab47bc9d17b2e735e79 Mon Sep 17 00:00:00 2001 From: Jason Conti Date: Sun, 26 Feb 2012 14:39:01 -0500 Subject: * Move the notification menuitem to a separate class. --- src/indicator-notifications.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/indicator-notifications.c') diff --git a/src/indicator-notifications.c b/src/indicator-notifications.c index 8d9a070..db37c02 100644 --- a/src/indicator-notifications.c +++ b/src/indicator-notifications.c @@ -37,6 +37,7 @@ with this program. If not, see . #include #include "dbus-spy.h" +#include "notification-menuitem.h" #define INDICATOR_NOTIFICATIONS_TYPE (indicator_notifications_get_type ()) #define INDICATOR_NOTIFICATIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), INDICATOR_NOTIFICATIONS_TYPE, IndicatorNotifications)) @@ -577,9 +578,11 @@ message_received_cb(DBusSpy *spy, Notification *note, gpointer user_data) if(notification_is_private(note) || notification_is_empty(note)) return; - GtkWidget *item = new_notification_menuitem(note); + GtkWidget *item = notification_menuitem_new(); + notification_menuitem_set_from_notification(NOTIFICATION_MENUITEM(item), note); g_signal_connect(item, "button-press-event", G_CALLBACK(notification_button_press_cb), self); g_signal_connect(item, "button-release-event", G_CALLBACK(notification_button_release_cb), self); + gtk_widget_show(item); g_object_unref(note); insert_menuitem(self, item); -- cgit v1.2.3