From b0bf0f8fb0bc11170bf1012c0c70315f86712a6c868d0a0ab57769902c3639ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Fri, 27 Oct 2023 07:44:00 +0000 Subject: [PATCH] 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 --- gnome-software-disable-offline-update.patch | 78 +- ...tware-plugin-opensuse-distro-upgrade.patch | 697 ++++++++++++++++++ gnome-software.changes | 11 + gnome-software.spec | 3 + 4 files changed, 752 insertions(+), 37 deletions(-) create mode 100644 gnome-software-plugin-opensuse-distro-upgrade.patch diff --git a/gnome-software-disable-offline-update.patch b/gnome-software-disable-offline-update.patch index 5fa21e6..325c842 100644 --- a/gnome-software-disable-offline-update.patch +++ b/gnome-software-disable-offline-update.patch @@ -1,42 +1,46 @@ -Index: gnome-software-41.5/src/gs-updates-section.c +Index: gnome-software-45.1/src/gs-updates-section.c =================================================================== ---- gnome-software-41.5.orig/src/gs-updates-section.c -+++ gnome-software-41.5/src/gs-updates-section.c -@@ -739,7 +739,7 @@ gs_updates_section_app_state_changed_cb - } - } +--- 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_widget_set_sensitive (self->button_update, busy < len); -+ gtk_widget_set_sensitive (self->button_update, FALSE); + gtk_stack_set_visible_child_name (GTK_STACK (self->button_stack), child_name); } - - static void -@@ -760,6 +760,8 @@ gs_updates_section_init (GsUpdatesSectio - gtk_list_box_set_sort_func (GTK_LIST_BOX (self->listbox), - _list_sort_func, - self, NULL); -+ -+ gtk_widget_set_sensitive (self->button_update, FALSE); - } - - /** -Index: gnome-software-41.5/src/gs-updates-section.ui +Index: gnome-software-45.1/src/gs-updates-section.ui =================================================================== ---- gnome-software-41.5.orig/src/gs-updates-section.ui -+++ gnome-software-41.5/src/gs-updates-section.ui -@@ -34,6 +34,7 @@ - True - True - _Download -+ Please use gpk-update-viewer to update the system - -