[nautilus] Show all applications in open with tab of properties



commit 99d7082920efc1aa1bfbd18c879fc2c81e321cf7
Author: William Jon McCann <jmccann redhat com>
Date:   Mon Aug 20 12:10:13 2012 -0400

    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.

 .../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 87a0d72..f8a066f 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]