mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 16:50:11 +00:00
Make the show more button follow the show-other property
Instead of show-all. https://bugzilla.gnome.org/show_bug.cgi?id=640006
This commit is contained in:
parent
5b7add024d
commit
bbe56c1f9a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user