forked from pool/gnome-software
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
This commit is contained in:
parent
1d1443df7b
commit
96cc31fbda
42
gnome-software-disable-offline-update.patch
Normal file
42
gnome-software-disable-offline-update.patch
Normal file
@ -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 @@
|
||||
<property name="visible">True</property>
|
||||
<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 @@
|
||||
<child>
|
||||
<object class="GsProgressButton" id="button_update">
|
||||
<property name="visible">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"/>
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 26 01:55:06 UTC 2022 - Jonathan Kang <songchuan.kang@suse.com>
|
||||
|
||||
- Add gnome-software-disable-offline-update.patch: Disable offline
|
||||
update in SLE and openSUSE Leap(bsc#944832).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 21 16:11:16 UTC 2022 - Richard Brown <rbrown@suse.com>
|
||||
|
||||
|
@ -29,6 +29,8 @@ Source0: https://download.gnome.org/sources/gnome-software/43/%{name}-%{v
|
||||
%if 0%{?sle_version}
|
||||
# PATCH-FIX-OPENSUSE gnome-software-launch-gpk-update-viewer-for-updates.patch bsc#1077332 boo#1090042 sckang@suse.com -- Don't launch gnome-software when clicking the updates notification. Launch gpk-update-viewer instead.
|
||||
Patch0: gnome-software-launch-gpk-update-viewer-for-updates.patch
|
||||
# PATCH-FIX-OPENSUSE gnome-software-disable-offline-update.patch bsc#944832 sckang@suse.com -- Disable offline update in SLE and openSUSE Leap
|
||||
Patch1: gnome-software-disable-offline-update.patch
|
||||
%endif
|
||||
|
||||
BuildRequires: gtk-doc
|
||||
|
Loading…
Reference in New Issue
Block a user