forked from pool/gnome-software
- 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
43 lines
1.8 KiB
Diff
43 lines
1.8 KiB
Diff
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"/>
|