[gnome-software/gnome-3-22] Show the refresh cancel button whilst the headerbar spinner is showing
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-22] Show the refresh cancel button whilst the headerbar spinner is showing
- Date: Thu, 1 Dec 2016 14:34:05 +0000 (UTC)
commit 748297936bc147291af8f470cc54fb103cdb118c
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 f571f7d..68133d0 100644
--- a/src/gs-shell-updates.c
+++ b/src/gs-shell-updates.c
@@ -302,11 +302,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]