From 96cc31fbda59ae95f99e2a76eda3c3ba97e685d56e4202ef6c86807d653f2f3d Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 31 Oct 2022 08:00:28 +0000 Subject: [PATCH] Accepting request 1031668 from home:JonathanKang:branches:GNOME:Factory - Add gnome-software-disable-offline-update.patch: Disable offline update in SLE and openSUSE Leap(bsc#944832). OBS-URL: https://build.opensuse.org/request/show/1031668 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-software?expand=0&rev=234 --- gnome-software-disable-offline-update.patch | 42 +++++++++++++++++++++ gnome-software.changes | 6 +++ gnome-software.spec | 2 + 3 files changed, 50 insertions(+) create mode 100644 gnome-software-disable-offline-update.patch diff --git a/gnome-software-disable-offline-update.patch b/gnome-software-disable-offline-update.patch new file mode 100644 index 0000000..5fa21e6 --- /dev/null +++ b/gnome-software-disable-offline-update.patch @@ -0,0 +1,42 @@ +Index: gnome-software-41.5/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 + } + } + +- gtk_widget_set_sensitive (self->button_update, busy < len); ++ gtk_widget_set_sensitive (self->button_update, FALSE); + } + + 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 +=================================================================== +--- 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 + +