Hello community, here is the log from the commit of package gnome-volume-manager checked in at Mon Jul 30 21:18:04 CEST 2007. -------- --- GNOME/gnome-volume-manager/gnome-volume-manager.changes 2007-01-29 17:20:54.000000000 +0100 +++ /mounts/work_src_done/STABLE/gnome-volume-manager/gnome-volume-manager.changes 2007-07-30 19:28:47.919882000 +0200 @@ -1,0 +2,8 @@ +Mon Jul 30 19:27:01 CEST 2007 - crivera@suse.de + +- Add gnome-volume-manager-printer-notify.patch. This patch + adds support for checking for properties set on printer + devices by cups-autoconfig. It uses libnotify to inform the users + that a new printer was configured if these properties are set. + +------------------------------------------------------------------- New: ---- gnome-volume-manager-printer-notify.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gnome-volume-manager.spec ++++++ --- /var/tmp/diff_new_pack.x28439/_old 2007-07-30 21:16:33.000000000 +0200 +++ /var/tmp/diff_new_pack.x28439/_new 2007-07-30 21:16:33.000000000 +0200 @@ -13,10 +13,10 @@ Name: gnome-volume-manager BuildRequires: gnutls-devel intltool libglade2-devel libgnomeprintui-devel libnotify-devel libwnck-devel mDNSResponder-devel nautilus-devel perl-XML-Parser update-desktop-files Version: 2.17.0 -Release: 19 +Release: 73 URL: http://www.gnome.org/ Group: System/GUI/GNOME -License: GNU General Public License (GPL) +License: GPL v2 or later Summary: The GNOME Volume Manager Source: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/2.17/%{name}-%{version}.tar.bz2 Source1: gnome-cdda-handler @@ -25,6 +25,7 @@ Patch0: gvm-schema-defaults.patch Patch1: suse-autorun.patch Patch2: 153241.patch +Patch3: gnome-volume-manager-printer-notify.patch %if %suse_version > 1000 Recommends: control-center2 %else @@ -59,6 +60,7 @@ %patch %patch1 %patch2 +%patch3 -p1 %build autoreconf -f -i @@ -105,7 +107,12 @@ # FIXME: Directory ownership: Should be owned by core GNOME package %dir %{_datadir}/gnome/autostart -%changelog -n gnome-volume-manager +%changelog +* Mon Jul 30 2007 - crivera@suse.de +- Add gnome-volume-manager-printer-notify.patch. This patch + adds support for checking for properties set on printer + devices by cups-autoconfig. It uses libnotify to inform the users + that a new printer was configured if these properties are set. * Mon Jan 29 2007 - sbrabec@suse.cz - Removed remaining references to /opt/gnome. * Wed Jan 17 2007 - sbrabec@suse.cz ++++++ gnome-volume-manager-printer-notify.patch ++++++ diff -ur /usr/src/packages/BUILD/gnome-volume-manager-2.17.0/src/manager.c ./src/manager.c --- /usr/src/packages/BUILD/gnome-volume-manager-2.17.0/src/manager.c 2007-07-30 12:45:26.000000000 -0400 +++ ./src/manager.c 2007-07-30 12:45:23.000000000 -0400 @@ -96,6 +96,7 @@ static void statfs_mount_info_remove (const char *udi); static void statfs_mount_info_free (statfs_mount_info *info); static gboolean gvm_statfs_check_space (const char *udi, statfs_mount_info *info, gpointer user_data); +static void show_printer_notification (const char *title, const char *message); #endif static gboolean gvm_dbus_init (void); @@ -2523,9 +2524,21 @@ static gboolean printer_device_added (const char *udi, const char *capability __attribute__((__unused__))) { + if (libhal_device_get_property_bool (hal_ctx, udi, "printer.configured", NULL)) { + char *display_name = libhal_device_get_property_string (hal_ctx, udi, + "printer.display_name", NULL); + gchar *msg = g_strdup_printf (_("%s has been configured."), display_name); +#ifdef ENABLE_NOTIFY + show_printer_notification (_("New Printer"), display_name); +#endif + libhal_free_string (display_name); + g_free (msg); + return TRUE; + } + if (config.autoprinter) gvm_run_printer (udi); - + return TRUE; } @@ -2811,6 +2824,17 @@ return TRUE; } +#if ENABLE_NOTIFY +static void +show_printer_notification (const char *title, const char *message) +{ + NotifyNotification *n; + n = notify_notification_new (title, message, "gnome-dev-printer", NULL); + notify_notification_show (n, NULL); + g_object_unref (n); +} +#endif + static DBusHandlerResult gvm_dbus_filter_function (DBusConnection *connection, DBusMessage *message, void *user_data) { ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org