aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-notifications.c
diff options
context:
space:
mode:
authorJason Conti <jason.conti@gmail.com>2012-02-26 14:39:01 -0500
committerJason Conti <jason.conti@gmail.com>2012-02-26 14:39:01 -0500
commit1bcf41c76dce04648d842ab47bc9d17b2e735e79 (patch)
tree6e7d9496ec7b447584b80d2987dbf8139ab788a5 /src/indicator-notifications.c
parentdf8ae866eb73d9f58938e8eb710a3931d6d8b6b7 (diff)
downloadayatana-indicator-notifications-1bcf41c76dce04648d842ab47bc9d17b2e735e79.tar.gz
ayatana-indicator-notifications-1bcf41c76dce04648d842ab47bc9d17b2e735e79.tar.bz2
ayatana-indicator-notifications-1bcf41c76dce04648d842ab47bc9d17b2e735e79.zip
* Move the notification menuitem to a separate class.
Diffstat (limited to 'src/indicator-notifications.c')
-rw-r--r--src/indicator-notifications.c5
1 files changed, 4 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>.
#include <libindicator/indicator-service-manager.h>
#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);