Commit Graph

80 Commits

Author SHA1 Message Date
William Jon McCann 6471bfe9f4 Remove dbus version checks for > 0.60
We already require 0.78 in configure anyway
2010-06-24 02:21:44 -04:00
William Jon McCann 23d7fc296a Don't leak an error 2010-06-24 02:19:07 -04:00
William Jon McCann 87ced33981 Don't g_message when dbus calls fail
It may be annoying in some cases.

https://bugzilla.gnome.org/show_bug.cgi?id=608086
2010-06-24 02:16:58 -04:00
William Jon McCann dedef26ef9 Various cleanups 2010-06-24 02:12:40 -04:00
William Jon McCann d6476d362b Don't try to use the proxy after it is destroyed
https://bugzilla.gnome.org/show_bug.cgi?id=608089
2010-06-24 02:11:53 -04:00
Bastien Nocera 1f85092c96 Use g_object_get() to get pixbuf properties
Instead of 7 separate gdk_pixbuf function calls.

https://bugzilla.gnome.org/show_bug.cgi?id=622550
2010-06-24 01:50:34 +01:00
William Jon McCann 3b3dbab544 Don't claim that notify_init connects to the server
https://bugzilla.gnome.org/show_bug.cgi?id=608086
2010-06-23 20:28:59 -04:00
Bastien Nocera 9a822e1af9 Fix compile-time warning 2010-06-24 00:12:06 +01:00
Bastien Nocera 5cfe9aaba7 Fix compile warnings for the C marshal file
And quiet down the enum and marshal generations
2010-06-24 00:12:06 +01:00
William Jon McCann 5b3f2617d2 Fix building with GSEAL enabled
https://bugzilla.gnome.org/show_bug.cgi?id=612720
2010-04-02 20:10:29 -04:00
William Jon McCann 597ba8d292 Removed unused code 2010-04-02 19:54:40 -04:00
Martin Pitt 3dc04fac90 lazily start the daemon
notify_init() caused the daemon to be D-Bus activated already, even if the
program that calls it doesn't send an actual notification for a long time (or
potentially not at all).

In order to optimize desktop startup speed, and to avoid unnecessary
processes, launch the daemon on demand only.

https://bugzilla.gnome.org/show_bug.cgi?id=610880
2010-04-02 19:43:35 -04:00
William Jon McCann 80952af10e Add pango's .gitignore generation foo 2010-01-31 14:33:46 -05:00
Aurélien Gâteau e2fcc5e0dd Fix memory leaks 2010-01-29 06:01:50 -05:00
Aurélien Gâteau 117a582b9b Introduce notify_notification_set_image_from_pixbuf
Same as notify_notification_set_icon_from_pixbuf, but with a more explicit name.
notify_notification_set_icon_from_pixbuf is marked as deprecated.
2010-01-29 05:58:38 -05:00
Aurélien Gâteau 6c1231835d Support for image_data hint
Add support for the image_data hint from version 1.1 of the spec.
2010-01-29 05:50:49 -05:00
William Jon McCann 4db61ddb45 Use a consistent style 2010-01-29 04:35:35 -05:00
Matthias Clasen 4b11bb71cf Fix has_nondefault_actions never getting set
Due to an oversight in the condition, has_nondefault_actions is
never set to true.  Not sure this makes a _big_ difference in practice.

http://trac.galago-project.org/ticket/194
2010-01-09 13:13:15 -05:00
William Jon McCann 732437ffc0 Depend on Gtk+ 2.10 for StatusIcon 2010-01-09 13:04:32 -05:00
William Jon McCann 8374438dcf Fix indentation 2010-01-09 13:00:58 -05:00
William Jon McCann 9607cf459f Use only single gtk include 2010-01-09 13:00:53 -05:00
Christian Hammond 40781ff602 Patch by Andre Klapper to remove deprecated glib symbols. 2009-07-24 09:13:56 +00:00
Christian Hammond dcd203d082 Patch by Colin Walters to add parameter names to NotifyActionCallback for the introspection stuff. 2008-10-23 21:39:04 +00:00
Christian Hammond d29c11ba8d And fix the registration of the signal. It's been way too long since I worked with gtk in C. Or not long enough. 2008-09-26 01:51:01 +00:00
Christian Hammond cf2f667318 Prevent a backwards-compatibility breakage introduced where the "reason" code was added to the "closed" signal. This meant that existing signal handlers that passed extra data would break. We now require that you call notify_notification_get_closed_reason() to get this data. 2008-09-26 01:46:40 +00:00
Christian Hammond d5addcc1f4 Added support for sending the status icon XID to the notification daemon. This will allow better position tracking for context notifications. Patch by Colin Walters. 2008-09-26 01:12:47 +00:00
Christian Hammond f4ff83ff20 Fixed a breakage where we were including gtkversion.h directly. Reported by Richard Hughes. 2008-09-26 01:07:01 +00:00
Christian Hammond 6b40617e90 Add support for sending the closed reason in the signal handler. Closes ticket #139. 2008-03-19 04:53:30 +00:00
Christian Hammond 8ee3f0d77b Patch by Lucas Rocha to add GObject property accessors for notification IDs. 2007-04-29 07:43:55 +00:00
Christian Hammond 024008efc7 Prevent a crash when the handler for a notification's closed signal removes the last reference to the notification. We attempted to set the ID of the notification after emitting this signal, but the notification was destroyed already. So, keep a reference while doing all this. This fixes bug #116. 2007-02-15 10:45:40 +00:00
Christian Hammond d43f911108 Get rid of format_func. 2007-02-15 10:29:16 +00:00
Christian Hammond 89d870259f Fix some memory leaks when appending data to a message. Scary, horrible, traumatizing memory leaks. Actually it's pretty bad, though, so new release coming up soon. This fixes bug #112. 2007-02-15 10:10:32 +00:00
Christian Hammond c0c861e473 Fix a bug in notify_notification_add_action where the function to free the user data was never called, causing memory leaks. This fixes bug #119. 2007-02-15 08:54:39 +00:00
Christian Hammond 9362dbd6bd Patch by Giacomo Lozito to fix a problem where the dbus proxy was not being freed on notify_uninit, which led to problems when libnotify was used in a loadable module. This fixes bug #92. 2006-11-05 20:07:37 +00:00
Christian Hammond 4eaae59a68 Patch by jylefort to only reset a notification's ID to 0 if it was the notification closed. This fixes bug #94. 2006-11-05 19:52:25 +00:00
Christian Hammond 4d601b61b1 Patch by lucasr to fix an invalid assertion in notify_notification_new_with_status_icon. This closes bug #85. 2006-09-04 06:49:15 +00:00
Christian Hammond fead26f260 Patch by berndth to stop using g_atexit, as this can fail in the case of a dynamically loaded module. Applications should now call notify_uninit() on exit or on plugin unload. This closes bug #86. 2006-09-04 06:45:34 +00:00
Christian Hammond ed9bc42c6f Emit the property change notification for "status-icon" and not "attach-icon". This closes bug #81. 2006-08-01 02:40:51 +00:00
Christian Hammond b0dad66b71 Patch by Ed Catmur to reset a notification's ID if notify_notification_show() is called on a notification that had already been closed. This causes the notification to receive a new ID. This closes ticket #78. 2006-07-29 10:06:22 +00:00
Christian Hammond 1d95f7d3c3 - Patch by mderezynski to send an array of UCHARs as expected by notification-daemon rather than an array of CHARs. This closes ticket #68.
- Bump to version 0.4.2.90.
2006-07-13 07:43:50 +00:00
Christian Hammond e447e0e186 Add G_BEGIN_DECLS and G_END_DECLS to notify.h, so that libnotify can be used in C++ applications properly. 2006-06-18 02:17:56 +00:00
Christian Hammond 02442e7e8c Fix a build error on gtk 2.9.2+. This fixes bug #65. 2006-06-15 09:15:02 +00:00
Christian Hammond 304e0ab4a8 Small random fixes. 2006-06-06 19:45:19 +00:00
Christian Hammond 629f6e08ca Provide more documentation. 2006-06-06 08:29:32 +00:00
Christian Hammond 2ef25f78f9 Update notify_notification_set_geometry_hints() to take a x, y instead of a GdkRectangle. We don't need the width and height information. 2006-06-06 07:28:21 +00:00
Christian Hammond cc13b1892f Add some gtk-doc documentation. 2006-06-06 07:14:42 +00:00
Christian Hammond d986aaf233 Patch by chpe to add support for using the new GtkStatusIcon in GTK+ 2.9.x. These functions are #ifdef'd to only be provided in supported versions of GTK. The patch also added support for GObject properties on the NotifyNotification objects. This closes ticket #60. 2006-06-05 00:48:56 +00:00
Christian Hammond 51ecbc7a2b Set _initted to FALSE in notify_uninit(), so that notify_is_initted() won't return TRUE. 2006-06-04 23:12:30 +00:00
Christian Hammond a42dbbb198 - Add GTypes for the enums.
- Bump to version 0.4.0.
2006-04-26 06:53:25 +00:00
Christian Hammond cb2ee86909 Don't complain about an unknown action when the action is "default" 2006-02-05 01:18:54 +00:00