Changeset 3005
- Timestamp:
- 03/18/08 21:53:30
- Files:
-
- trunk/libnotify/ChangeLog (modified) (1 diff)
- trunk/libnotify/NEWS (modified) (1 diff)
- trunk/libnotify/libnotify/notification.c (modified) (4 diffs)
- trunk/libnotify/libnotify/notification.h (modified) (1 diff)
- trunk/libnotify/libnotify/notify-marshal.list (modified) (1 diff)
- trunk/libnotify/libnotify/notify.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libnotify/ChangeLog
r2988 r3005 1 Tue Mar 18 21:51:32 PDT 2008 Christian Hammond <chipx86@chipx86.com> 2 3 * libnotify/notification.c: 4 * libnotify/notification.h: 5 * libnotify/notify.c: 6 * libnotify/notify-marshal.list: 7 * NEWS: 8 - Add support for sending the closed reason in the signal handler. 9 Closes ticket #139. 10 1 11 Sat Aug 25 18:08:01 PDT 2007 Christian Hammond <chipx86@chipx86.com> 2 12 trunk/libnotify/NEWS
r2978 r3005 2 2 * Added GObject property accessors for notification IDs. Patch by Lucas 3 3 Rocha. 4 * Added support for sending the closed reason in the "closed" signal 5 handler. (Ticket #139) 4 6 5 7 version 0.4.4 (27-February-2007): trunk/libnotify/libnotify/notification.c
r2978 r3005 47 47 static void notify_notification_init(NotifyNotification *sp); 48 48 static void notify_notification_finalize(GObject *object); 49 static void _close_signal_handler(DBusGProxy *proxy, guint32 id, 49 static void _close_signal_handler(DBusGProxy *proxy, guint32 id, guint32 reason, 50 50 NotifyNotification *notification); 51 51 … … 156 156 G_STRUCT_OFFSET(NotifyNotificationClass, closed), 157 157 NULL, NULL, 158 g_cclosure_marshal_VOID__ VOID, G_TYPE_NONE, 0);158 g_cclosure_marshal_VOID__UINT, G_TYPE_NONE, 1, G_TYPE_INT); 159 159 160 160 g_object_class_install_property(object_class, PROP_ID, … … 692 692 693 693 static void 694 _close_signal_handler(DBusGProxy *proxy, guint32 id, 694 _close_signal_handler(DBusGProxy *proxy, guint32 id, guint32 reason, 695 695 NotifyNotification *notification) 696 696 { … … 698 698 { 699 699 g_object_ref(G_OBJECT(notification)); 700 g_signal_emit(notification, signals[SIGNAL_CLOSED], 0 );700 g_signal_emit(notification, signals[SIGNAL_CLOSED], 0, reason); 701 701 notification->priv->id = 0; 702 702 g_object_unref(G_OBJECT(notification)); trunk/libnotify/libnotify/notification.h
r2827 r3005 64 64 65 65 /* Signals */ 66 void (*closed)(NotifyNotification *notification );66 void (*closed)(NotifyNotification *notification, gint reason); 67 67 }; 68 68 trunk/libnotify/libnotify/notify-marshal.list
r2392 r3005 1 VOID:UINT,UINT 1 2 VOID:UINT,STRING trunk/libnotify/libnotify/notify.c
r2967 r3005 73 73 dbus_g_connection_unref(bus); 74 74 75 dbus_g_object_register_marshaller(notify_marshal_VOID__UINT_UINT, 76 G_TYPE_NONE, 77 G_TYPE_UINT, 78 G_TYPE_UINT, G_TYPE_INVALID); 79 75 80 dbus_g_object_register_marshaller(notify_marshal_VOID__UINT_STRING, 76 81 G_TYPE_NONE, … … 79 84 80 85 dbus_g_proxy_add_signal(_proxy, "NotificationClosed", 81 G_TYPE_UINT, G_TYPE_INVALID); 86 G_TYPE_UINT, G_TYPE_UINT, 87 G_TYPE_INVALID); 82 88 dbus_g_proxy_add_signal(_proxy, "ActionInvoked", 83 89 G_TYPE_UINT, G_TYPE_STRING,
