debian/0000755000000000000000000000000012031512664007166 5ustar debian/notification-daemon.desktop0000644000000000000000000000037211632423064014513 0ustar [Desktop Entry] Name=Notification Daemon Comment=Display notifications Exec=/usr/lib/notification-daemon/notification-daemon Terminal=false Type=Application NoDisplay=true OnlyShowIn=LXDE;OPENBOX;GNOME; AutostartCondition=GNOME3 unless-session gnome debian/copyright0000644000000000000000000000242511727052131011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: notification-daemon Source: http://ftp.gnome.org/pub/GNOME/sources/notification-daemon/ Files: * Copyright: Copyright (C) 2007 Jonh Wendell Copyright (C) 2006 Christian Hammond Copyright (C) 2005 John (J5) Palmieri Copyright (C) 2010 Red Hat, Inc. Copyright (C) 2007 Jim Ramsay License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,Boston, MA 02110-1301, USA. . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/watch0000644000000000000000000000016511647153026010226 0ustar version=3 http://ftp.gnome.org/pub/GNOME/sources/notification-daemon/([\d\.]+)/ \ notification-daemon-(.*)\.tar\.xz debian/patches/0000755000000000000000000000000012031512664010615 5ustar debian/patches/series0000644000000000000000000000004711734354702012041 0ustar 01_avoid_crash_for_boolean_hints.patch debian/patches/01_avoid_crash_for_boolean_hints.patch0000644000000000000000000000655511670426272020214 0ustar Description: Avoid crashes for boolean hints Check the type of the incoming hint and use the appropriate g_variant_get_* function. It also applies the same fix for the "resident" and "action-icons" hints. Author: anomie@users.sourceforge.net Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636323 Bug: https://bugzilla.gnome.org/show_bug.cgi?id=665166 --- a/src/nd-notification.c +++ b/src/nd-notification.c @@ -224,54 +224,53 @@ } gboolean -nd_notification_get_is_transient (NdNotification *notification) +nd_notification_get_bool (NdNotification *notification, const char *name) { gboolean ret; GVariant *value; - ret = FALSE; g_return_val_if_fail (ND_IS_NOTIFICATION (notification), FALSE); - value = g_hash_table_lookup (notification->hints, "transient"); + value = g_hash_table_lookup (notification->hints, name); if (value != NULL) { - ret = g_variant_get_boolean (value); + if (g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)) { + ret = g_variant_get_boolean (value); + } else if (g_variant_is_of_type (value, G_VARIANT_TYPE_BYTE)) { + ret = (g_variant_get_byte (value) != 0); + } else if (g_variant_is_of_type (value, G_VARIANT_TYPE_INT16)) { + ret = (g_variant_get_int16 (value) != 0); + } else if (g_variant_is_of_type (value, G_VARIANT_TYPE_UINT16)) { + ret = (g_variant_get_uint16 (value) != 0); + } else if (g_variant_is_of_type (value, G_VARIANT_TYPE_INT32)) { + ret = (g_variant_get_int32 (value) != 0); + } else if (g_variant_is_of_type (value, G_VARIANT_TYPE_UINT32)) { + ret = (g_variant_get_uint32 (value) != 0); + } else if (g_variant_is_of_type (value, G_VARIANT_TYPE_INT64)) { + ret = (g_variant_get_int64 (value) != 0); + } else if (g_variant_is_of_type (value, G_VARIANT_TYPE_UINT64)) { + ret = (g_variant_get_uint64 (value) != 0); + } } return ret; } gboolean -nd_notification_get_is_resident (NdNotification *notification) +nd_notification_get_is_transient (NdNotification *notification) { - gboolean ret; - GVariant *value; - - ret = FALSE; - g_return_val_if_fail (ND_IS_NOTIFICATION (notification), FALSE); - - value = g_hash_table_lookup (notification->hints, "resident"); - if (value != NULL) { - ret = g_variant_get_boolean (value); - } + return nd_notification_get_bool (notification, "transient"); +} - return ret; +gboolean +nd_notification_get_is_resident (NdNotification *notification) +{ + return nd_notification_get_bool (notification, "resident"); } gboolean nd_notification_get_action_icons (NdNotification *notification) { - gboolean ret; - GVariant *value; - - ret = FALSE; - g_return_val_if_fail (ND_IS_NOTIFICATION (notification), FALSE); - - value = g_hash_table_lookup (notification->hints, "action-icons"); - if (value != NULL) { - ret = g_variant_get_boolean (value); - } - - return ret; + return nd_notification_get_bool (notification, "action-icons"); } guint32 debian/changelog0000644000000000000000000003567712030731604011056 0ustar notification-daemon (0.7.6-1) unstable; urgency=low * New upstream bugfix and translation release. -- Michael Biebl Thu, 27 Sep 2012 04:01:37 +0200 notification-daemon (0.7.5-1) unstable; urgency=low * New upstream translation release. -- Michael Biebl Wed, 06 Jun 2012 11:54:37 +0200 notification-daemon (0.7.4-1) unstable; urgency=low [ Michael Biebl ] * debian/patches/01_avoid_crash_for_boolean_hints.patch: - Avoid crashes for boolean hints. (Closes: 636323) Thanks anomie@users.sourceforge.net for the patch. [ Josselin Mouette ] * Update repository URL. [ Michael Biebl ] * New upstream release. * debian/patches/99_ltmain_as-needed.patch: Removed, no longer necessary. * debian/copyrigh: Update Format to the final copyright format 1.0 spec. * Bump Standards-Version to 3.9.3. -- Michael Biebl Tue, 27 Mar 2012 17:20:39 +0200 notification-daemon (0.7.3-1) unstable; urgency=low * New upstream release. * debian/watch: - Track .xz tarballs. -- Michael Biebl Tue, 18 Oct 2011 03:28:53 +0200 notification-daemon (0.7.2-1) unstable; urgency=low * New upstream release. * Drop Build-Depends on libdbus-glib-1-dev. -- Michael Biebl Fri, 09 Sep 2011 16:44:07 +0200 notification-daemon (0.7.1-6) unstable; urgency=low * Stop killing notification-daemon on upgrades or removal. (Closes: #639181) -- Michael Biebl Fri, 02 Sep 2011 18:28:32 +0200 notification-daemon (0.7.1-5) unstable; urgency=low * Update xdg autostart file to show up in GNOME 3 fallback mode. -- Michael Biebl Sat, 20 Aug 2011 15:13:27 +0200 notification-daemon (0.7.1-4) unstable; urgency=low [ Michael Biebl ] * Remove obsolete man page for notification-properties. (Closes: #637088) * Install autostart file for desktop environments which don't provide their own notification system as notification-daemon is no longer started on demand via dbus activation. [ Ben Tucker ] * debian/control.in: Moved the homepage into an appropriate Homepage tag instead of sitting in the description. Also removed a nonsensical sentence at the end of the description ("as per the Desktop Notifications spec"). (LP: #557887, Closes: #632139) -- Michael Biebl Fri, 19 Aug 2011 22:23:19 +0200 notification-daemon (0.7.1-3) unstable; urgency=low * debian/control.in: Bump Standards-Version to 3.9.2 (no further changes) -- Laurent Bigonville Sun, 31 Jul 2011 00:42:07 +0200 notification-daemon (0.7.1-2) experimental; urgency=low * debian/control.in: Add back libdbus-glib-1-dev build dependency. configure doesn't check for it, but the build still uses dbus-binding-tool. -- Martin Pitt Wed, 08 Jun 2011 09:14:07 +0200 notification-daemon (0.7.1-1) experimental; urgency=low * New upstream release, compatible with libnotify 0.7 API, and ported to GTK 3 and gdbus. * debian/control.in: Update build dependencies according to configure.ac. * Drop 04_dont_crash_on_critical_warnings.patch. This is an old workaround for bugs which presumably have been fixed ages ago. If there are still bugs, let's fix them instead. * debian/rules: Remove *.a/*.la cleanup, fixed upstream. * debian/control.in: Update Vcs-* for experimental branch. -- Martin Pitt Wed, 08 Jun 2011 08:56:13 +0200 notification-daemon (0.5.0-3) unstable; urgency=low [ Emilio Pozuelo Monfort ] * Now maintained by the GNOME team. * debian/control.in, debian/rules: + Add GNOME magic. [ Martin Pitt ] * Add debian/watch. * debian/control.in: Add Vcs-* headers. * debian/control.in: Add missing gnome-pkg-tools build dependency. * debian/copyright: Update to current copyrights and licenses, and convert to DEP-5. * debian/control.in: Bump Standards-Version to 3.9.1. -- Martin Pitt Wed, 08 Jun 2011 08:28:44 +0200 notification-daemon (0.5.0-2) unstable; urgency=low * debian/notification-daemon.prerm: + Kill the daemon in prerm if the package is going to be removed (Closes: #518722). * debian/notification-daemon.manpages, debian/notification-properties.1: + Add manpage for notification-properties. Thanks to François Wendling for the manpage (Closes: #539811). * debian/control: + Improve package description (Closes: #340480). -- Sebastian Dröge Tue, 29 Jun 2010 09:13:05 +0200 notification-daemon (0.5.0-1) unstable; urgency=low * New upstream release: + debian/rules, debian/compat, debian/control.in, debian/source/format, debian/patches/*: - Update to debhelper compat level 7. - Update to source format 3.0 (quilt). - Update to Standards-Version 3.8.4. + debian/control: - Update and cleanup build dependencies. + debian/patches/01_hide-capplet.patch, debian/patches/03_fix_xinerama_stack_c.patch, debian/patches/05_notification_spacing.patch, debian/patches/07_memleak_daemon.patch: - Dropped, fixed upstream. -- Sebastian Dröge Tue, 29 Jun 2010 07:17:39 +0200 notification-daemon (0.4.0-2) unstable; urgency=low * debian/patches/01_hide-capplet.patch: + Hide the notification-daemon capplet (Closes: #522877). * debian/control: + Update Standards-Version to 3.8.3. -- Sebastian Dröge Thu, 08 Oct 2009 12:38:58 +0200 notification-daemon (0.4.0-1) unstable; urgency=low * New upstream release (Closes: #510930, #344883): + Fixes size requests so that all text is shown (Closes: #474236, #509346). + Fixes xinerama issues (Closes: #474235). + Properly escapes text (Closes: #496261). + debian/patches/03_fix_xinerama_theme_c.patch: - Dropped, fixed upstream. + debian/control: - Update build dependencies from configure.ac. * debian/control: + Remove GNOME team and add myself to Uploaders. + Update Standards-Version to 3.8.0. + Line-wrap dependencies, etc. * debian/control, debian/compat: + Update to debhelper compat level 5. * debian/patches/99_ltmain_as-needed.patch: + Remove some unneeded dependencies. * debian/patches/05_notification_spacing.patch: + Add a small space between two notifications, patch taken from the Ubuntu package (Closes: #450823). * debian/patches/07_memleak_daemon.patch: + Fix a small memory leak in the daemon, patch taken from the Ubuntu package. * debian/patches/04_dont_crash_on_critical_warnings.patch: + Don't crash on critical warnings (Closes: #474234). -- Sebastian Dröge Thu, 05 Mar 2009 13:28:12 +0100 notification-daemon (0.3.7-1) unstable; urgency=low * New upstream release. * 03_fix_xinerama_theme_c.patch -- Riccardo Setti Sat, 24 Mar 2007 16:11:28 +0100 notification-daemon (0.3.6-1) unstable; urgency=low * New upstream release. * Removed: - 05_dont_crash_on_0_sized_icons.patch - 06_fix_assertion_with_newer_gtk.patch - 70_relibtoolize.patch no more necessary or applied upstream. * Updated 04_dont_crash_on_critical_warnings.patch. * Splitted 03_xinerama.patch in: - 03_fix_xinerama_stack_c.patch - 03_fix_xinerama_theme_c.patch -- Riccardo Setti Sat, 18 Nov 2006 14:37:12 +0100 notification-daemon (0.3.5-2) unstable; urgency=low * added patches: 01_removed-daemon-meamleak.patch 03_xinerama.patch 04_dont_crash_on_critical_warnings.patch 05_dont_crash_on_0_sized_icons.patch 06_fix_assertion_with_newer_gtk.patch -- Riccardo Setti Thu, 21 Sep 2006 19:44:10 +0200 notification-daemon (0.3.5-1) unstable; urgency=low * New Upstream release. -- Riccardo Setti Sun, 23 Jul 2006 12:35:37 +0200 notification-daemon (0.3.4-4) unstable; urgency=low * removed a bashism in debian/rules. (closes: #353498) - Brace expansion is no more used in debian/rules. -- Riccardo Setti Sun, 19 Feb 2006 18:23:19 +0100 notification-daemon (0.3.4-3) unstable; urgency=low * Fixed notification-daemon.postinst (closes: #353251) - now the postinst script will not die if notification-daemons is not running. Thank to Nicolas François for providing the patch. -- Riccardo Setti Sat, 18 Feb 2006 19:23:35 +0100 notification-daemon (0.3.4-2) unstable; urgency=low * Added myself to the uploaders * removed .la .a files from notification-daemon * added debian/notification-daemon.postinst - notification-daemon is restarted when a new package is installed -- Riccardo Setti Tue, 14 Feb 2006 20:24:59 +0100 notification-daemon (0.3.4-1) unstable; urgency=low * New upstream release. - Bump up libgtk2.0-dev build-dep to >= 2.4.0. - Add libglib2.0-dev (>= 2.4) build-dep. - Add libdbus-1-dev (>= 0.36) build-dep. - Relibtoolize. * Update download URL. * Add --as-needed to linker flags to optimize deps. -- Loic Minier Sun, 12 Feb 2006 19:32:35 +0100 notification-daemon (0.3.3-1) unstable; urgency=low * New upstream release - upstream unmade the renaming; gah - added intltool, libsexy-dev, and libgconf2-dev for they are needed Riccardo Setti: * changed long description (closes: #349449) * added libpopt-dev to Build-Depends -- Gustavo Noronha Silva Sun, 29 Jan 2006 09:35:12 -0200 notify-daemon (0.3.1-1) unstable; urgency=low * New upstream release - renamed from notification-daemon * debian/control.in: - updated build-deps to require libdbus-glib-1-dev >= 0.60 and libpopt-dev - renamed source and binary packages to reflect upstream's name change - added Conflicts on notification-daemon to notify-daemon * debian/patches: - 04_smarter_arrow_placement.patch, 05_incorrect_draw_arrow.patch 06_right_padding.patch, 07_no_notification_on_screensaver.patch no longer apply: this upstream release is a complete revamp in the code, removed; -- Gustavo Noronha Silva Fri, 13 Jan 2006 15:51:18 -0200 notification-daemon (0.2.2-1) experimental; urgency=low * First upload to Debian Andre Filipe de Assuncao e Brito: * New upstream release Closes: #335591 * debian/copyright: - Updated URL Project to: http://www.galago-project.org/files/releases/source/ * Remove debian/patches: -01_dbus_datatypes.patch -02_fix_64bit_typecast.patch -03_fix_workspace_query.patch - Applied Upstream * debian/control: - Updated Specs URL to: http://www.galago-project.org/specs/notification/index.php Gustavo Noronha Silva: * debian/patches/07_no_notification_on_screensaver.patch: - removed all the patching about autom4te.cache * debian/copyright: - mention that src/dbus-compat.h, sexy-url-label.h, and sexy-url-label.c are not GPL, but LGPL -- Gustavo Noronha Silva Sun, 13 Nov 2005 21:16:03 -0200 notification-daemon (0.2.1-0ubuntu13) breezy; urgency=low * debian/patches/07_no_notification_on_screensaver.patch: - make sure that the window-list is up-to-date in wnck -- Michael Vogt Mon, 26 Sep 2005 15:20:06 +0200 notification-daemon (0.2.1-0ubuntu12) breezy; urgency=low * debian/patches/07_no_notification_on_screensaver.patch: - don't show the notification if another window is in fullscreen-mode (e.g. screensaver, media-player) (ubuntu #14944, #15783) * debian/control: - depend on libwnck-dev -- Michael Vogt Mon, 19 Sep 2005 14:10:19 +0200 notification-daemon (0.2.1-0ubuntu11) breezy; urgency=low * debian/patches/04_smarter_arrow_placement.patch: - fix another corner case in the drawing code (ubuntu: #14169) * 06_right_padding.patch: - make sure to padd the right side of the action labels (ubuntu: #14169) -- Michael Vogt Mon, 5 Sep 2005 18:24:37 +0200 notification-daemon (0.2.1-0ubuntu10) breezy; urgency=low * debian/patches/04_smarter_arrow_placement.patch: - draw a arrow pointing down correctly (ubuntu #14169) -- Michael Vogt Fri, 2 Sep 2005 17:08:40 +0200 notification-daemon (0.2.1-0ubuntu9) breezy; urgency=low * debian/patches/05_incorrect_draw_arrow.diff: - fix the "window is incorrectly drawn on first run" bug (#14006) -- Michael Vogt Mon, 29 Aug 2005 15:49:26 +0200 notification-daemon (0.2.1-0ubuntu8) breezy; urgency=low * Rebuild with the new cairo version -- Sebastien Bacher Thu, 18 Aug 2005 17:22:28 +0000 notification-daemon (0.2.1-0ubuntu7) breezy; urgency=low * fixed FTBFS -- Michael Vogt Thu, 11 Aug 2005 09:59:04 +0200 notification-daemon (0.2.1-0ubuntu6) breezy; urgency=low * debian/patches/04_smarter_arrow_placement.patch: - improve the patch (last version fails in some cases) - fix typo -- Michael Vogt Thu, 11 Aug 2005 00:09:26 +0200 notification-daemon (0.2.1-0ubuntu5) breezy; urgency=low * debian/patches/04_smarter_arrow_placement.patch: - make the arrows usefull for coordinates close to the right screen border -- Michael Vogt Wed, 10 Aug 2005 19:20:51 +0200 notification-daemon (0.2.1-0ubuntu4) breezy; urgency=low * debian/patches/01_dbus_datatypes.patch: - Fix dbus data type usage harder to work on 64 bit platforms. * Add debian/patches/03_fix_workspace_query.patch: - Properly initialize workspace origin if get_work_area() fails. - get_work_area(): Cast returned array from XGetWindowProperty() to long* instead of guint32 to adhere to XGetWindowProperty specification and get correct numbers on 64 platforms. * Now this package works on all supported platforms. -- Martin Pitt Wed, 10 Aug 2005 01:28:33 +0200 notification-daemon (0.2.1-0ubuntu3) breezy; urgency=low * Add debian/patches/02_fix_64bit_typecast.patch: - Replace direct void* -> int32 typecast with a void* -> int64 -> int32 cast to stop compiler barfing and make the package build again on 64 bit archs. -- Martin Pitt Tue, 9 Aug 2005 20:43:12 +0200 notification-daemon (0.2.1-0ubuntu2) breezy; urgency=low * Add debian/patches/01_dbus_datatypes.patch: - src/main.cc: Use the correct dbus data types to read timeout values from dbus. This makes timeouts work on powerpc. -- Martin Pitt Tue, 9 Aug 2005 19:41:30 +0200 notification-daemon (0.2.1-0ubuntu1) breezy; urgency=low * New upstream version. * debian/patches/01_buildfix.patch: - fixed with the new version. -- Sebastien Bacher Thu, 28 Jul 2005 20:51:07 +0200 notification-daemon (0.2.0-0ubuntu1) breezy; urgency=low * Initial package. * debian/patches/01_buildfix.patch: - fix a build issue. -- Sebastien Bacher Thu, 28 Jul 2005 16:15:45 +0200 debian/notification-daemon.install0000644000000000000000000000006611623446307014515 0ustar debian/notification-daemon.desktop etc/xdg/autostart/ debian/compat0000644000000000000000000000000211620043515010361 0ustar 7 debian/source/0000755000000000000000000000000012031512664010466 5ustar debian/source/format0000644000000000000000000000001411620043515011671 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000047311623430454010254 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/gnome.mk include /usr/share/cdbs/1/rules/utils.mk include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk -include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed debian/control0000644000000000000000000000311712031512751010570 0ustar # This file is autogenerated. DO NOT EDIT! # # Modifications should be made to debian/control.in instead. # This file is regenerated automatically in the clean target. Source: notification-daemon Section: x11 Priority: optional Maintainer: Debian GNOME Maintainers Uploaders: Laurent Bigonville , Martin Pitt , Michael Biebl Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 7), gnome-pkg-tools, libglib2.0-dev (>= 2.27.0), libgtk-3-dev (>= 2.91.0), libcanberra-gtk3-dev (>= 0.4), intltool (>= 0.40.0) Standards-Version: 3.9.3 Vcs-Svn: svn://svn.debian.org/svn/pkg-gnome/desktop/unstable/notification-daemon Vcs-Browser: http://svn.debian.org/viewsvn/pkg-gnome/desktop/unstable/notification-daemon Homepage: http://www.galago-project.org/specs/notification/index.php Package: notification-daemon Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Conflicts: notify-daemon Replaces: notify-daemon Description: daemon for displaying passive pop-up notifications notification-daemon displays passive pop-up notifications, as per the Desktop Notifications Specification. . The Desktop Notifications Specification provides a standard way of doing passive pop-up notifications on the Linux desktop. These are designed to notify the user of something without interrupting their work with a dialog box that they must close. Passive popups can automatically disappear after a short period of time. debian/control.in0000644000000000000000000000251211734355076011211 0ustar Source: notification-daemon Section: x11 Priority: optional Maintainer: Debian GNOME Maintainers Uploaders: @GNOME_TEAM@ Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 7), gnome-pkg-tools, libglib2.0-dev (>= 2.27.0), libgtk-3-dev (>= 2.91.0), libcanberra-gtk3-dev (>= 0.4), intltool (>= 0.40.0) Standards-Version: 3.9.3 Vcs-Svn: svn://svn.debian.org/svn/pkg-gnome/desktop/unstable/notification-daemon Vcs-Browser: http://svn.debian.org/viewsvn/pkg-gnome/desktop/unstable/notification-daemon Homepage: http://www.galago-project.org/specs/notification/index.php Package: notification-daemon Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Conflicts: notify-daemon Replaces: notify-daemon Description: daemon for displaying passive pop-up notifications notification-daemon displays passive pop-up notifications, as per the Desktop Notifications Specification. . The Desktop Notifications Specification provides a standard way of doing passive pop-up notifications on the Linux desktop. These are designed to notify the user of something without interrupting their work with a dialog box that they must close. Passive popups can automatically disappear after a short period of time.