SOURCES: gtk+2-fix-password-dialog-on-mount.patch (NEW) - upstream fix for ...
hawk
hawk at pld-linux.org
Tue Oct 7 11:08:10 CEST 2008
Author: hawk Date: Tue Oct 7 09:08:10 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- upstream fix for 2.14.3, patch taken from gentoo
---- Files affected:
SOURCES:
gtk+2-fix-password-dialog-on-mount.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/gtk+2-fix-password-dialog-on-mount.patch
diff -u /dev/null SOURCES/gtk+2-fix-password-dialog-on-mount.patch:1.1
--- /dev/null Tue Oct 7 11:08:11 2008
+++ SOURCES/gtk+2-fix-password-dialog-on-mount.patch Tue Oct 7 11:08:05 2008
@@ -0,0 +1,30 @@
+From gtk-2-14 branch:
+
+2008-09-26 Matthias Clasen
+
+ Bug 553133 – GtkFileChooser won't ask to mount a volume
+
+ * gtk/gtkfilechooserdefault.c (shortcuts_activate_volume): Use
+ a GtkMountOperation when mounting, so that we get a password
+ dialog when required.
+
+--- branches/gtk-2-14/gtk/gtkfilechooserdefault.c 2008/09/26 19:25:35 21523
++++ branches/gtk-2-14/gtk/gtkfilechooserdefault.c 2008/09/26 19:45:13 21524
+@@ -10192,12 +10192,16 @@
+
+ if (!_gtk_file_system_volume_is_mounted (volume))
+ {
++ GtkMountOperation *mount_op;
++
+ set_busy_cursor (impl, TRUE);
+
++ mount_op = gtk_mount_operation_new (get_toplevel (GTK_WIDGET (impl)));
+ impl->shortcuts_activate_iter_cancellable =
+- _gtk_file_system_mount_volume (impl->file_system, volume, NULL,
++ _gtk_file_system_mount_volume (impl->file_system, volume, mount_op,
+ shortcuts_activate_volume_mount_cb,
+ g_object_ref (impl));
++ g_object_unref (mount_op);
+ }
+ else
+ {
================================================================
More information about the pld-cvs-commit
mailing list