]> Pileus Git - ~andy/gtk/commitdiff
Make the show more button follow the show-other property
authorWilliam Jon McCann <jmccann@redhat.com>
Thu, 20 Jan 2011 21:22:51 +0000 (16:22 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Jan 2011 00:45:22 +0000 (19:45 -0500)
Instead of show-all.

https://bugzilla.gnome.org/show_bug.cgi?id=640006

gtk/gtkappchooserdialog.c

index 04785d0c493197bb18e46ea5c98fc6d9e1c3dab0..3262b131db88a312692ecf6a81b6afaf056cb92e 100644 (file)
@@ -394,7 +394,7 @@ widget_notify_for_button_cb (GObject    *source,
   GtkAppChooserWidget *widget = GTK_APP_CHOOSER_WIDGET (source);
   gboolean should_hide;
 
-  should_hide = gtk_app_chooser_widget_get_show_all (widget) ||
+  should_hide = gtk_app_chooser_widget_get_show_other (widget) ||
     self->priv->show_more_clicked;
 
   if (should_hide)
@@ -485,7 +485,7 @@ build_dialog_ui (GtkAppChooserDialog *self)
                     G_CALLBACK (widget_application_selected_cb), self);
   g_signal_connect (self->priv->app_chooser_widget, "application-activated",
                     G_CALLBACK (widget_application_activated_cb), self);
-  g_signal_connect (self->priv->app_chooser_widget, "notify::show-all",
+  g_signal_connect (self->priv->app_chooser_widget, "notify::show-other",
                     G_CALLBACK (widget_notify_for_button_cb), self);
   g_signal_connect (self->priv->app_chooser_widget, "populate-popup",
                     G_CALLBACK (widget_populate_popup_cb), self);