[gnome-boxes/wip/exalm/swipe: 7/7] welcome-tutorial: Use page indicator dots instead of subtitle



commit 8157c156514b48c09a1062bcfe1d2eeea9140176
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Wed Feb 19 19:10:45 2020 +0500

    welcome-tutorial: Use page indicator dots instead of subtitle
    
    Use a series of dots provided by HdyPaginator and remove the n/4 subtitle.

 data/ui/welcome-tutorial.ui | 2 ++
 src/welcome-tutorial.vala   | 4 ----
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/welcome-tutorial.ui b/data/ui/welcome-tutorial.ui
index 2afd0d4a..f6690dbd 100644
--- a/data/ui/welcome-tutorial.ui
+++ b/data/ui/welcome-tutorial.ui
@@ -23,6 +23,8 @@
               <object class="HdyPaginator" id="paginator">
                 <property name="visible">True</property>
                 <property name="animation-duration">400</property>
+                <property name="indicator-style">dots</property>
+                <property name="center-content">True</property>
                 <signal name="notify::position" handler="on_position_changed"/>
 
                 <child>
diff --git a/src/welcome-tutorial.vala b/src/welcome-tutorial.vala
index 56e075f3..643dc46e 100644
--- a/src/welcome-tutorial.vala
+++ b/src/welcome-tutorial.vala
@@ -48,10 +48,6 @@ private void set_background_color (Gdk.RGBA color) {
     private void on_position_changed () {
         var n_pages = pages.length ();
         var position = paginator.position;
-        var index = (uint) Math.round (position);
-
-        var topbar = get_header_bar () as Gtk.HeaderBar;
-        topbar.subtitle = _("%u/%u").printf (index + 1, n_pages);
 
         // Toggle button's visibility
         go_back_button.opacity = double.min (position, 1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]