diff options
author | William Jon McCann <jmccann@redhat.com> | 2012-08-20 12:10:13 -0400 |
---|---|---|
committer | William Jon McCann <jmccann@redhat.com> | 2012-08-20 21:56:37 -0400 |
commit | 99d7082920efc1aa1bfbd18c879fc2c81e321cf7 (patch) | |
tree | 0c33e266d5e07a4c47332c751969780ec54450ac | |
parent | fd22733cd22b3d4dc1bf33ea934e59daf48f5320 (diff) | |
download | nautilus-99d7082920efc1aa1bfbd18c879fc2c81e321cf7.tar.gz |
Show all applications in open with tab of properties
If you are going into that tab to change something we should assume
you are looking for something and not require you to click yet again.
Also, this saves some precious vertical screen space by not having
to put a button there.
-rw-r--r-- | libnautilus-private/nautilus-mime-application-chooser.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/libnautilus-private/nautilus-mime-application-chooser.c b/libnautilus-private/nautilus-mime-application-chooser.c index 87a0d721c..f8a066fad 100644 --- a/libnautilus-private/nautilus-mime-application-chooser.c +++ b/libnautilus-private/nautilus-mime-application-chooser.c @@ -315,17 +315,6 @@ nautilus_mime_application_chooser_apply_labels (NautilusMimeApplicationChooser * } static void -show_more_clicked_cb (GtkWidget *button, - gpointer user_data) -{ - NautilusMimeApplicationChooser *chooser = user_data; - - gtk_app_chooser_widget_set_show_other (GTK_APP_CHOOSER_WIDGET (chooser->details->open_with_widget), - TRUE); - gtk_widget_hide (button); -} - -static void nautilus_mime_application_chooser_build_ui (NautilusMimeApplicationChooser *chooser) { GtkWidget *box, *button; @@ -360,13 +349,8 @@ nautilus_mime_application_chooser_build_ui (NautilusMimeApplicationChooser *choo g_signal_connect (chooser->details->open_with_widget, "populate-popup", G_CALLBACK (populate_popup_cb), chooser); - - button = gtk_button_new_with_label (_("Show other applications")); - gtk_box_pack_start (GTK_BOX (chooser->details->open_with_widget), button, FALSE, FALSE, 6); - gtk_widget_show_all (button); - - g_signal_connect (button, "clicked", - G_CALLBACK (show_more_clicked_cb), chooser); + gtk_app_chooser_widget_set_show_other (GTK_APP_CHOOSER_WIDGET (chooser->details->open_with_widget), + TRUE); box = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL); gtk_box_set_spacing (GTK_BOX (box), 6); |