2023-10-27 09:44:00 +02:00
|
|
|
Index: gnome-software-45.1/src/gs-updates-section.c
|
2022-10-31 09:00:28 +01:00
|
|
|
===================================================================
|
2023-10-27 09:44:00 +02:00
|
|
|
--- gnome-software-45.1.orig/src/gs-updates-section.c
|
|
|
|
+++ gnome-software-45.1/src/gs-updates-section.c
|
|
|
|
@@ -323,12 +323,18 @@ static void
|
|
|
|
_set_button_stack_visible_child (GsUpdatesSection *self,
|
|
|
|
const gchar *child_name)
|
|
|
|
{
|
|
|
|
- if (self->button_cancel != NULL)
|
|
|
|
+ if (self->button_cancel != NULL) {
|
|
|
|
gtk_widget_set_visible (self->button_cancel, g_strcmp0 (child_name, "cancel") == 0);
|
|
|
|
- if (self->button_download != NULL)
|
|
|
|
+ gtk_widget_set_sensitive (self->button_cancel, FALSE);
|
|
|
|
+ }
|
|
|
|
+ if (self->button_download != NULL) {
|
|
|
|
gtk_widget_set_visible (self->button_download, g_strcmp0 (child_name, "download") == 0);
|
|
|
|
- if (self->button_update != NULL)
|
|
|
|
+ gtk_widget_set_sensitive (self->button_download, FALSE);
|
|
|
|
+ }
|
|
|
|
+ if (self->button_update != NULL) {
|
|
|
|
gtk_widget_set_visible (self->button_update, g_strcmp0 (child_name, "update") == 0);
|
|
|
|
+ gtk_widget_set_sensitive (self->button_download, FALSE);
|
|
|
|
+ }
|
2022-10-31 09:00:28 +01:00
|
|
|
|
2023-10-27 09:44:00 +02:00
|
|
|
gtk_stack_set_visible_child_name (GTK_STACK (self->button_stack), child_name);
|
2022-10-31 09:00:28 +01:00
|
|
|
}
|
2023-10-27 09:44:00 +02:00
|
|
|
Index: gnome-software-45.1/src/gs-updates-section.ui
|
2022-10-31 09:00:28 +01:00
|
|
|
===================================================================
|
2023-10-27 09:44:00 +02:00
|
|
|
--- gnome-software-45.1.orig/src/gs-updates-section.ui
|
|
|
|
+++ gnome-software-45.1/src/gs-updates-section.ui
|
|
|
|
@@ -31,6 +31,7 @@
|
|
|
|
<object class="GsProgressButton" id="button_download">
|
|
|
|
<property name="use_underline">True</property>
|
|
|
|
<property name="label" translatable="yes">_Download</property>
|
|
|
|
+ <property name="tooltip-text" translatable="yes">Please use gpk-update-viewer to update the system</property>
|
|
|
|
<signal name="clicked" handler="_button_download_clicked_cb" swapped="yes"/>
|
|
|
|
<style>
|
|
|
|
<class name="suggested-action"/>
|
2022-10-31 09:00:28 +01:00
|
|
|
@@ -46,6 +47,7 @@
|
2023-10-27 09:44:00 +02:00
|
|
|
<property name="child">
|
|
|
|
<object class="GsProgressButton" id="button_update">
|
|
|
|
<property name="use-underline">True</property>
|
|
|
|
+ <property name="tooltip-text" translatable="yes">Please use gpk-update-viewer to update the system</property>
|
|
|
|
<signal name="clicked" handler="_button_update_all_clicked_cb" swapped="yes"/>
|
|
|
|
<style>
|
|
|
|
<class name="suggested-action"/>
|