1
0
gnome-software/gnome-software-disable-offline-update.patch
Bjørn Lie b0bf0f8fb0 Accepting request 1120670 from home:JonathanKang:branches:GNOME:Factory
- Rebase gnome-software-disable-offline-update.patch(bsc#1216603).

- Add gnome-software-plugin-opensuse-distro-upgrade.patch: plugins:
  add opensuse-distro-upgrade plugin(glgo#GNOME/gnome-software!1557).

OBS-URL: https://build.opensuse.org/request/show/1120670
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-software?expand=0&rev=265
2023-10-27 07:44:00 +00:00

47 lines
2.3 KiB
Diff

Index: gnome-software-45.1/src/gs-updates-section.c
===================================================================
--- 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);
+ }
gtk_stack_set_visible_child_name (GTK_STACK (self->button_stack), child_name);
}
Index: gnome-software-45.1/src/gs-updates-section.ui
===================================================================
--- 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"/>
@@ -46,6 +47,7 @@
<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"/>