[gnome-software] trivial: Mark the 'Update All' button insensitve when clicked
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Mark the 'Update All' button insensitve when clicked
- Date: Mon, 20 Feb 2017 16:54:25 +0000 (UTC)
commit 3bd30a7892b0431fe8033ae1f94551f91fcfff0d
Author: Richard Hughes <richard hughsie com>
Date: Mon Feb 20 16:53:36 2017 +0000
trivial: Mark the 'Update All' button insensitve when clicked
When the updates list is rebuilt the widget is recreated from new.
Fixes some of https://bugzilla.gnome.org/show_bug.cgi?id=772040#c10
src/gs-update-list.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-update-list.c b/src/gs-update-list.c
index aa78c4b..3d0cc79 100644
--- a/src/gs-update-list.c
+++ b/src/gs-update-list.c
@@ -188,6 +188,7 @@ static void
gs_update_list_update_offline_firmware_cb (GtkButton *button,
GsUpdateList *update_list)
{
+ gtk_widget_set_sensitive (GTK_WIDGET (button), FALSE);
gs_update_list_emit_clicked_for_section (update_list,
GS_UPDATE_LIST_SECTION_OFFLINE_FIRMWARE);
}
@@ -195,6 +196,7 @@ gs_update_list_update_offline_firmware_cb (GtkButton *button,
static void
gs_update_list_update_offline_cb (GtkButton *button, GsUpdateList *update_list)
{
+ gtk_widget_set_sensitive (GTK_WIDGET (button), FALSE);
gs_update_list_emit_clicked_for_section (update_list,
GS_UPDATE_LIST_SECTION_OFFLINE);
}
@@ -202,6 +204,7 @@ gs_update_list_update_offline_cb (GtkButton *button, GsUpdateList *update_list)
static void
gs_update_list_update_online_cb (GtkButton *button, GsUpdateList *update_list)
{
+ gtk_widget_set_sensitive (GTK_WIDGET (button), FALSE);
gs_update_list_emit_clicked_for_section (update_list,
GS_UPDATE_LIST_SECTION_ONLINE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]