--- notify-osd-0.9.6.orig/autogen.sh +++ notify-osd-0.9.6/autogen.sh @@ -0,0 +1,25 @@ +#!/bin/sh +# Run this to generate all the initial makefiles, etc. + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +PKG_NAME="notify-osd" +REQUIRED_AUTOCONF_VERSION=2.59 +REQUIRED_AUTOMAKE_VERSION=1.8 +REQUIRED_MACROS="python.m4" +ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I m4" + +(test -f $srcdir/configure.in) || { + echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" + echo " top-level $PKG_NAME directory" + exit 1 +} + +which gnome-autogen.sh || { + echo "You need to install the gnome-common module and make" + echo "sure the gnome-autogen.sh script is in your \$PATH." + exit 1 +} + +USE_GNOME2_MACROS=1 . gnome-autogen.sh --- notify-osd-0.9.6.orig/m4/python.m4 +++ notify-osd-0.9.6/m4/python.m4 @@ -0,0 +1,62 @@ +## this one is commonly used with AM_PATH_PYTHONDIR ... +dnl AM_CHECK_PYMOD(MODNAME [,SYMBOL [,ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]]]) +dnl Check if a module containing a given symbol is visible to python. +AC_DEFUN([AM_CHECK_PYMOD], +[AC_REQUIRE([AM_PATH_PYTHON]) +py_mod_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'` +AC_MSG_CHECKING(for ifelse([$2],[],,[$2 in ])python module $1) +AC_CACHE_VAL(py_cv_mod_$py_mod_var, [ +ifelse([$2],[], [prog=" +import sys +try: + import $1 +except ImportError: + sys.exit(1) +except: + sys.exit(0) +sys.exit(0)"], [prog=" +import $1 +$1.$2"]) +if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC + then + eval "py_cv_mod_$py_mod_var=yes" + else + eval "py_cv_mod_$py_mod_var=no" + fi +]) +py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"` +if test "x$py_val" != xno; then + AC_MSG_RESULT(yes) + ifelse([$3], [],, [$3 +])dnl +else + AC_MSG_RESULT(no) + ifelse([$4], [],, [$4 +])dnl +fi +]) + +dnl a macro to check for ability to create python extensions +dnl AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE]) +dnl function also defines PYTHON_INCLUDES +AC_DEFUN([AM_CHECK_PYTHON_HEADERS], +[AC_REQUIRE([AM_PATH_PYTHON]) +AC_MSG_CHECKING(for headers required to compile python extensions) +dnl deduce PYTHON_INCLUDES +py_prefix=`$PYTHON -c "import sys; print sys.prefix"` +py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"` +PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}" +if test "$py_prefix" != "$py_exec_prefix"; then + PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}" +fi +AC_SUBST(PYTHON_INCLUDES) +dnl check if the headers exist: +save_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES" +AC_TRY_CPP([#include ],dnl +[AC_MSG_RESULT(found) +$1],dnl +[AC_MSG_RESULT(not found) +$2]) +CPPFLAGS="$save_CPPFLAGS" +]) --- notify-osd-0.9.6.orig/debian/rules +++ notify-osd-0.9.6/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/class/gnome.mk +include /usr/share/cdbs/1/rules/debhelper.mk + +DEB_DH_INSTALL_SOURCEDIR := debian/tmp +DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-Wl,--as-needed" +# DEB_MAKE_TEST_TARGET := test + --- notify-osd-0.9.6.orig/debian/changelog +++ notify-osd-0.9.6/debian/changelog @@ -0,0 +1,127 @@ +notify-osd (0.9.6-0ubuntu1) jaunty; urgency=low + + * New upstream release 0.9.6: + - Detect screensaver inhibition for do-not-disturb mode. + - Add compatibility checks to ease transition period for applications to + pick up the capability and hint name changes. (LP: #343553) + - Correctly exit if registering on DBus failed. (LP: #331150) + - Fix filtering of HTML. + - Basic accessibility support. + + -- Martin Pitt Thu, 19 Mar 2009 13:39:13 +0100 + +notify-osd (0.9.5-0ubuntu1) jaunty; urgency=low + + * New upstream bug fix release: + - Fix typo in project name in AC_INIT (LP: #338837) + * Add debian/watch. + * Add bzr-builddeb configuration. + * debian/copyright: Update download location. + + -- Martin Pitt Tue, 17 Mar 2009 13:31:07 +0100 + +notify-osd (0.9.3-0ubuntu1) jaunty; urgency=low + + * New upstream version: + - don't crash on download notifications (lp: #332042) + - correctly pass actions to the fallback (lp: #340773) + - correctly namespace the capability names (lp: #340817) + + -- Sebastien Bacher Fri, 13 Mar 2009 15:13:30 +0100 + +notify-osd (0.9ubuntu2) jaunty; urgency=low + + * Merge bug fixes from trunk (r219): + - Added max. limit of 10 lines for message-body text. + - 3-line wrapping for summary text. + - capability "truncation" now advertised to clients (LP: #337389) + - non-composite mouse-hover effect now fully blanks (LP: #336108) + - disable markup-filter if parsing fails (LP: #331019) + + -- Martin Pitt Wed, 04 Mar 2009 19:47:24 +0100 + +notify-osd (0.9-0ubuntu1) jaunty; urgency=low + + * New upstream release: + - src/bubble.c: Ensure that window is always on top (LP: #331115) + - Updated value-indicator bar-rendering to comply to visual guidelines from + design-team + - Temp. fix for notifications appearing over panel, will visually break for + people without a top panel + - Added API-calls bubble_get_title(), bubble_get_body_message() and + bubble_get_value() to ease a11y + - Don't allow LAYOUT_ICON_ONLY when missing icon pixbuf, nice catch by + Frederic "fredp" Peters + - Implement support for title-only (LP: #333524) + - Changed capability hints: private-synchronous, append and private-icon-only + - make sure text is rendered using system-wide font-settings + for antialiasing, subpixel-order and hinting (LP: #331165) + - Provide fallback gnome icons for people not using the Human theme; thanks to + asomething for the proposed fix + - sync. icon-value following sync. icon-only misses layout-change + (LP: #335250) + - Fallback alert has leftmost button as default (LP: #330091) + - Fallback alert boxes shouldn't use custom icons (LP: #330088) + - Fallback alerts aren't centered (LP: #330484) + * debian/control: Fix Homepage and Vcs-Bzr fields. + * Drop icons/avatar.png from bzr, since it's not part of the orig.tar.gz and + not used in the upstream code. + + -- Martin Pitt Mon, 02 Mar 2009 17:37:47 +0100 + +notify-osd (0.8-0ubuntu4) jaunty; urgency=low + + * Fix Conflicts/Replaces on alsdorf so that the transitional package is + installable (LP: #332831). + + -- Colin Watson Mon, 23 Feb 2009 10:45:53 +0100 + +notify-osd (0.8-0ubuntu3) jaunty; urgency=low + + * data/org.freedesktop.Notifications.service.in: Run + notification-daemon for stracciatella-session. + * Merge bug fixes from trunk: + - Ensure that window is always on top. Thanks Alexander Sack for + the patch! (LP: #331115) + - change window-title to be picked up by window-match-rules of + compiz-plugins and not collide with the old notification-daemon + - egg/egg-fixed.c: Fix unused symbol on arm, which causes build + failure due to -Werror. + + -- Martin Pitt Wed, 18 Feb 2009 22:55:40 +0100 + +notify-osd (0.8-0ubuntu2) jaunty; urgency=low + + [ David Barth ] + * Ensure we are installed with the right icon set. + * imported code with from the trunk with the new 'notify-osd' name + * return proper list of server capabilities + * sync bubble timers to avoid a hole at the top (temporary) + * remove flicker for bubble appearing/fading under the mouse-pointer + * added new default icons for volume & brightness + * numerous other visual tweaks + * various code cleanups + * bumped the release number closer to 1.0 + + [ Martin Pitt ] + * debian/control: Fix Vcs-Bzr to point to Ubuntu packaging branch. + * Add debian/notify-osd.{preinst,postrm}: Divert + notification-daemon's D-BUS activation .service file, and drop the + Conflicts:/Replaces: notification-daemon, so that the packages can + be installed side by side. This paves the way for offering an + "almost vanilla" GNOME session (UbuntuSpec:stracciatella-session). + * debian/control, debian/changelog, debian/notify-osd.install: + Rename package to notify-osd. The transitional package should be + kept for a while, until all users of the PPA and daily Jaunty + users have upgraded to the new package name. + + -- Martin Pitt Wed, 18 Feb 2009 18:53:58 +0100 + +alsdorf (0.8-0ubuntu1) jaunty; urgency=low + + * Initial jaunty upload based on the dxteam work + * debian/control, debian/rules: + - don't run autotools but use a tarball + * COPYING.LGPL: copy the LGPL license in the tarball + + -- Sebastien Bacher Tue, 17 Feb 2009 19:33:58 +0100 --- notify-osd-0.9.6.orig/debian/notify-osd.preinst +++ notify-osd-0.9.6/debian/notify-osd.preinst @@ -0,0 +1,23 @@ +#!/bin/sh +set -e + +case "$1" in + install|upgrade) + # avoid file conflict with notification-daemon + dpkg-divert --add --rename --package notify-osd --divert /usr/share/dbus-1/services/org.freedesktop.Notifications.service.notify-osd /usr/share/dbus-1/services/org.freedesktop.Notifications.service > /dev/null + ;; + + abort-upgrade) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +#DEBHELPER# + +exit 0 + + --- notify-osd-0.9.6.orig/debian/watch +++ notify-osd-0.9.6/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://launchpad.net/notify-osd/+download .*/notify-osd-([0-9.]+)\.tar\.gz --- notify-osd-0.9.6.orig/debian/copyright +++ notify-osd-0.9.6/debian/copyright @@ -0,0 +1,49 @@ +This package was debianized by David Barth on +Wed Dec 3 18:04:59 PST 2008 + +It was downloaded from https://launchpad.net/notify-osd + +Copyright (C) Canonical, Oct. 2008 + +egg/* is Copyright (C) 2006, 2007 OpenedHand + +License: + + This program 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, version 3 of the License. + + This program 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 program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, 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-3'. + +License for egg/*: + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA + 02110-1301 USA + +On Debian systems, the complete text of the GNU Lesser General +Public License can be found in `/usr/share/common-licenses/LGPL-2'. + +The Debian packaging is (C) 2009, Canonical Ltd. and +is licensed under the GPLv3, see `/usr/share/common-licenses/GPL-3'. --- notify-osd-0.9.6.orig/debian/compat +++ notify-osd-0.9.6/debian/compat @@ -0,0 +1 @@ +5 --- notify-osd-0.9.6.orig/debian/notify-osd.postrm +++ notify-osd-0.9.6/debian/notify-osd.postrm @@ -0,0 +1,20 @@ +#! /bin/sh +set -e + +case "$1" in + remove|purge) + # Remove our diversion + dpkg-divert --remove --rename --package notify-osd --divert /usr/share/dbus-1/services/org.freedesktop.Notifications.service.notify-osd /usr/share/dbus-1/services/org.freedesktop.Notifications.service > /dev/null + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 +esac + +#DEBHELPER# + +exit 0 --- notify-osd-0.9.6.orig/debian/notify-osd.install +++ notify-osd-0.9.6/debian/notify-osd.install @@ -0,0 +1 @@ +usr --- notify-osd-0.9.6.orig/debian/control +++ notify-osd-0.9.6/debian/control @@ -0,0 +1,28 @@ +Source: notify-osd +Section: x11 +Priority: optional +Maintainer: DX Team +Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 5), libglib2.0-dev (>= 2.4), libgtk2.0-dev (>= 2.4), libdbus-1-dev (>= 0.36), libdbus-glib-1-dev (>= 0.60), intltool, libnotify-dev, libgconf2-dev +Standards-Version: 3.8.0 +Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-desktop/notify-osd/ubuntu +Homepage: https://launchpad.net/notify-osd + +Package: notify-osd +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, human-icon-theme (>= 0.33) +Conflicts: notify-daemon, alsdorf (<< 0.8-0ubuntu2) +Replaces: notify-daemon, alsdorf (<< 0.8-0ubuntu2) +Provides: notification-daemon +Description: daemon that displays passive pop-up notifications + The Desktop Notifications framework 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. + +Package: alsdorf +Architecture: all +Depends: notify-osd +Description: transitional package to migrate to notify-osd + This is a transitional package for the alsdorf -> notify-osd + renaming. --- notify-osd-0.9.6.orig/debian/notify-osd.postinst +++ notify-osd-0.9.6/debian/notify-osd.postinst @@ -0,0 +1,10 @@ +#!/bin/sh +set -e + +case "$1" in + configure) + killall alsdorf notification-daemon notify-osd 2>/dev/null || true + ;; +esac + +#DEBHELPER# --- notify-osd-0.9.6.orig/data/org.freedesktop.Notifications.service.in +++ notify-osd-0.9.6/data/org.freedesktop.Notifications.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.freedesktop.Notifications +Exec=/bin/sh -c "if [ $GDMSESSION = gnome-stracciatella ]; then exec /usr/lib/notification-daemon/notification-daemon; else exec @LIBEXECDIR@/notify-osd; fi" --- notify-osd-0.9.6.orig/src/util.h +++ notify-osd-0.9.6/src/util.h @@ -0,0 +1,30 @@ +/******************************************************************************* +**3456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 +** 10 20 30 40 50 60 70 80 +** +** notify-osd +** +** util.h - all sorts of helper functions +** +** Copyright 2009 Canonical Ltd. +** +** Authors: +** Cody Russell +** +** This program is free software: you can redistribute it and/or modify it +** under the terms of the GNU General Public License version 3, as published +** by the Free Software Foundation. +** +** This program is distributed in the hope that it will be useful, but +** WITHOUT ANY WARRANTY; without even the implied warranties of +** MERCHANTABILITY, SATISFACTORY QUALITY, 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 program. If not, see . +** +*******************************************************************************/ + +gchar* +filter_text (const gchar* app_name); + --- notify-osd-0.9.6.orig/src/send-test-notification.sh +++ notify-osd-0.9.6/src/send-test-notification.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +notify-send "Take note" "The next example will test the icon-only layout-case" -i dialog-info +sleep 2 +notify-send " " -i notification-device-eject -h string:x-canonical-private-icon-only:allowed +sleep 2 +notify-send "WiFi signal found" -i notification-network-wireless-medium +sleep 2 +notify-send "WiFi signal lost" -i notification-network-wireless-disconnected +sleep 2 +notify-send " " -i notification-audio-volume-medium -h int:value:75 -h string:x-canonical-private-synchronous:volume +sleep 2 +notify-send " " -i notification-audio-volume-low -h int:value:30 -h string:x-canonical-private-synchronous:volume +sleep 2 +notify-send " " -i notification-display-brightness-high -h int:value:100 -h string:x-canonical-private-synchronous:brightness +sleep 2 +notify-send " " -i notification-keyboard-brightness-medium -h int:value:45 -h string:x-canonical-private-synchronous:brightness +sleep 2 +notify-send "Testing markup" "Some bold, underlined, italic text. Note, you should not see any marked up text." +sleep 2 +notify-send "Jamshed Kakar" "Hey, what about this restaurant? http://www.blafasel.org + +Would you go from your place by train or should I pick you up from work? What do you think?" +sleep 2 +notify-send "English bubble" "The quick brown fox jumps over the lazy dog." -i network +sleep 2 +notify-send "Bubble from Germany" "Polyfon zwitschernd aßen Mäxchens Vögel Rüben, Joghurt und Quark." -i gnome-system +sleep 2 +notify-send "Very russian" "Съешь ещё этих мягких французских булок, да выпей чаю." -i dialog-info +sleep 2 +notify-send "More from Germany" "Oje, Qualm verwölkt Dix zig Farbtriptychons." -i gnome-globe + + --- notify-osd-0.9.6.orig/icons/wifi-100.svg +++ notify-osd-0.9.6/icons/wifi-100.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + \ No newline at end of file --- notify-osd-0.9.6.orig/icons/avatar.svg +++ notify-osd-0.9.6/icons/avatar.svg @@ -0,0 +1,76 @@ + + + + + + + image/svg+xml + + + + + + + + + + + + + --- notify-osd-0.9.6.orig/icons/wifi-lost.svg +++ notify-osd-0.9.6/icons/wifi-lost.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + \ No newline at end of file --- notify-osd-0.9.6.orig/icons/wifi-75.svg +++ notify-osd-0.9.6/icons/wifi-75.svg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + \ No newline at end of file --- notify-osd-0.9.6.orig/icons/chat.svg +++ notify-osd-0.9.6/icons/chat.svg @@ -0,0 +1,34 @@ + + + + + + + +