Commit 3a6996ea authored by Cosimo Cecchi's avatar Cosimo Cecchi

appchooser: make the "Find applications online" follow search state

Set the button as insensitive while searching, so that it can't be
accidentally clicked twice.

https://bugzilla.gnome.org/show_bug.cgi?id=651818
parent 569b5ffd
......@@ -137,6 +137,7 @@ search_for_mimetype_ready_cb (GObject *source,
}
else
{
gtk_widget_set_sensitive (self->priv->online_button, TRUE);
gtk_app_chooser_refresh (GTK_APP_CHOOSER (self->priv->app_chooser_widget));
}
......@@ -152,6 +153,8 @@ online_button_clicked_cb (GtkButton *b,
GtkAppChooserDialog *self = user_data;
self->priv->online_cancellable = g_cancellable_new ();
gtk_widget_set_sensitive (self->priv->online_button, FALSE);
_gtk_app_chooser_online_search_for_mimetype_async (self->priv->online,
self->priv->content_type,
GTK_WINDOW (self),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment