[gnome-software] Show the refresh cancel button whilst the headerbar spinner is showing
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Show the refresh cancel button whilst the headerbar spinner is showing
- Date: Mon, 14 Nov 2016 13:41:46 +0000 (UTC)
commit 5794450ad47dfea305c233338d6b878ad70db26c
Author: Richard Hughes <richard hughsie com>
Date: Mon Nov 14 12:46:13 2016 +0000
Show the refresh cancel button whilst the headerbar spinner is showing
We can also cancel the GetUpdates() phase if required, and it also looks odd
with just a spinner and not a button to press.
src/gs-shell-updates.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-shell-updates.c b/src/gs-shell-updates.c
index 67b7088..08000f2 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -304,11 +304,11 @@ gs_shell_updates_update_ui_state (GsShellUpdates *self)
/* headerbar refresh icon */
switch (self->state) {
case GS_SHELL_UPDATES_STATE_ACTION_REFRESH:
+ case GS_SHELL_UPDATES_STATE_ACTION_GET_UPDATES:
gtk_image_set_from_icon_name (GTK_IMAGE (gtk_button_get_image (GTK_BUTTON
(self->button_refresh))),
"media-playback-stop-symbolic", GTK_ICON_SIZE_MENU);
gtk_widget_show (self->button_refresh);
break;
- case GS_SHELL_UPDATES_STATE_ACTION_GET_UPDATES:
case GS_SHELL_UPDATES_STATE_STARTUP:
case GS_SHELL_UPDATES_STATE_MANAGED:
gtk_widget_hide (self->button_refresh);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]