Comment 16 for bug 662194

Revision history for this message
Doug McMahon (mc3man) wrote : Re: Nautilus: 'Remember this application for ..." option should be made inactive by default

Don't know what expired means - anyway
Tried the revised patch on natty which is fine as far as not showing the dialog on dir. anymore

The orig part, while still being included is not being 'honored' on files where I still think the box should be disabled by default (visible but not checked
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->details->checkbox), TRUE);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dialog->details->checkbox), FALSE);

Here this takes care of in new part (changed TRUE to FALSE
@ -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), FALSE);
+ }
  }

  gtk_label_set_markup (GTK_LABEL (dialog->details->label), label);