[gnome-software/1500-view-switcher-add-update-counter] View switcher: Add update counter
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1500-view-switcher-add-update-counter] View switcher: Add update counter
- Date: Tue, 26 Oct 2021 10:07:25 +0000 (UTC)
commit e6f45ef47e8f936ebe1e3c5908f19f9e8cf66e15
Author: Milan Crha <mcrha redhat com>
Date: Tue Oct 26 12:05:52 2021 +0200
View switcher: Add update counter
Set the badge-number on the AdwViewStackPage for the Updates page to
show how many updates are recognized.
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1500
src/gs-shell.ui | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/gs-shell.ui b/src/gs-shell.ui
index bb8e10adc..d696238d7 100644
--- a/src/gs-shell.ui
+++ b/src/gs-shell.ui
@@ -317,6 +317,7 @@
<property name="name">updates</property>
<property name="title" translatable="yes" comments="Translators:
A label for a button to show only updates which are available to install.">Updates</property>
<property
name="icon-name">emblem-synchronizing-symbolic</property>
+ <property name="badge-number" bind-source="updates_page"
bind-property="counter" bind-flags="sync-create"/>
<property name="child">
<object class="GsUpdatesPage" id="updates_page">
<property name="is-narrow" bind-source="GsShell"
bind-property="is-narrow" bind-flags="sync-create"/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]