summaryrefslogtreecommitdiffstats
path: root/main/nautilus/009-default-directories.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-04-25 18:06:33 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-04-25 19:53:02 +0000
commit286429b1aa72ee964ba0cac4b79c754859b1c60a (patch)
tree33c01e6792fd99a430be126c19b9b71947ffd060 /main/nautilus/009-default-directories.patch
parent3597c695c8ae4a22da8bd26c363aa8ceae267be3 (diff)
downloadaports-286429b1aa72ee964ba0cac4b79c754859b1c60a.tar.bz2
aports-286429b1aa72ee964ba0cac4b79c754859b1c60a.tar.xz
main/nautilus: upgrade to 2.32.2.1
Diffstat (limited to 'main/nautilus/009-default-directories.patch')
-rw-r--r--main/nautilus/009-default-directories.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/main/nautilus/009-default-directories.patch b/main/nautilus/009-default-directories.patch
new file mode 100644
index 000000000..336d3d0ae
--- /dev/null
+++ b/main/nautilus/009-default-directories.patch
@@ -0,0 +1,32 @@
+
+++ nautilus-2.32.2.1/debian/patches/02_dont_set_default.patch
+
+# Upstream: https://bugzilla.gnome.org/show_bug.cgi?id=637264
+# Ubuntu: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/662194
+# Description: hide checkbox to remember selection when opening folders
+diff --git a/libnautilus-private/nautilus-open-with-dialog.c b/libnautilus-private/nautilus-open-with-dialog.c
+index 357e20c..300a92c 100644
+--- a/libnautilus-private/nautilus-open-with-dialog.c
++++ b/libnautilus-private/nautilus-open-with-dialog.c
+@@ -864,7 +864,7 @@ nautilus_open_with_dialog_init (NautilusOpenWithDialog *dialog)
+
+ /* Add remember this application checkbox - only visible in open mode */
+ dialog->details->checkbox = gtk_check_button_new ();
+- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->details->checkbox), TRUE);
++ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->details->checkbox), FALSE);
+ gtk_button_set_use_underline (GTK_BUTTON (dialog->details->checkbox), TRUE);
+ gtk_widget_show (GTK_WIDGET (dialog->details->checkbox));
+ gtk_box_pack_start (GTK_BOX (vbox), dialog->details->checkbox, FALSE, FALSE, 0);
+@@ -1031,6 +1031,12 @@ set_uri_and_type (NautilusOpenWithDialog *dialog,
+ gtk_label_set_text_with_mnemonic (GTK_LABEL (dialog->details->open_label),
+ _("_Add"));
+ gtk_window_set_title (GTK_WINDOW (dialog), _("Add Application"));
++ } else {
++ if (g_str_equal (mime_type, "inode/directory")) {
++ gtk_widget_hide (dialog->details->checkbox);
++ } else {
++ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->details->checkbox), TRUE);
++ }
+ }
+
+ gtk_label_set_markup (GTK_LABEL (dialog->details->label), label);