diff --git a/gnome-applets.spec b/gnome-applets.spec index 685842e..380d23c 100644 --- a/gnome-applets.spec +++ b/gnome-applets.spec @@ -35,7 +35,7 @@ Summary: Small applications for the GNOME panel Name: gnome-applets Version: 2.24.0.1 -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 1 License: GPLv2+ and GFDL Group: User Interface/Desktops @@ -64,6 +64,9 @@ Patch39: gweather-network.patch # do the nullapplet dance for battstat Patch40: gnome-applets-null-battstat.patch +# http://bugzilla.gnome.org/show_bug.cgi?id=553996 +Patch41: mount-auth.patch + BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: gtk2-devel >= %{gtk2_version} BuildRequires: libgnomeui-devel >= %{libgnomeui_version} @@ -149,6 +152,7 @@ small utilities for the GNOME panel. %patch33 -p1 -b .node-leak %patch39 -p1 -b .gweather-network %patch40 -p1 -b .battstat-null +%patch41 -p1 -b .mount-auth # We don't ship gnome-system-tools rm -rf modemlights @@ -308,6 +312,9 @@ fi %{_datadir}/PolicyKit/policy/org.gnome.cpufreqselector.policy %changelog +* Fri Sep 26 2008 Matthias Clasen - 1:2.24.0.1-3 +- Small improvement to the drivemount applet + * Wed Sep 24 2008 Matthias Clasen - 1:2.24.0.1-2 - Update to 2.24.0.1 diff --git a/mount-auth.patch b/mount-auth.patch new file mode 100644 index 0000000..6fc9ab1 --- /dev/null +++ b/mount-auth.patch @@ -0,0 +1,15 @@ +diff -up gnome-applets-2.24.0.1/drivemount/drive-button.c.mount-auth gnome-applets-2.24.0.1/drivemount/drive-button.c +--- gnome-applets-2.24.0.1/drivemount/drive-button.c.mount-auth 2008-09-26 15:37:51.000000000 -0400 ++++ gnome-applets-2.24.0.1/drivemount/drive-button.c 2008-09-26 15:39:15.000000000 -0400 +@@ -748,8 +748,10 @@ static void + mount_drive (DriveButton *self, GtkWidget *item) + { + if (self->volume) { ++ GMountOperation *mount_op = gtk_mount_operation_new (NULL); + g_volume_mount (self->volume, G_MOUNT_MOUNT_NONE, +- NULL, NULL, NULL, NULL); ++ mount_op, NULL, NULL, NULL); ++ g_object_unref (mount_op); + } else { + g_return_if_reached(); + }