[libadwaita] Revert "demo: Quick hack to show how it works"



commit 8c79ff31897c1cd1265388ae057b59498ace53da
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Jul 26 10:49:45 2021 +0000

    Revert "demo: Quick hack to show how it works"
    
    This reverts commit 1ee626b6b9218b0b06623558cb89d0c392b08869

 src/adw-view-switcher-title.ui | 1 -
 src/adw-window-title.ui        | 1 +
 tests/test-squeezer.c          | 6 +++---
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/adw-view-switcher-title.ui b/src/adw-view-switcher-title.ui
index cb2ae3dc..827112a2 100644
--- a/src/adw-view-switcher-title.ui
+++ b/src/adw-view-switcher-title.ui
@@ -4,7 +4,6 @@
   <template class="AdwViewSwitcherTitle" parent="GtkWidget">
     <child>
       <object class="AdwSqueezer" id="squeezer">
-        <property name="allow-none">True</property>
         <property name="transition-type">crossfade</property>
         <signal name="notify::visible-child" handler="notify_squeezer_visible_child_cb" swapped="yes"/>
         <child>
diff --git a/src/adw-window-title.ui b/src/adw-window-title.ui
index daee6fbd..1f206806 100644
--- a/src/adw-window-title.ui
+++ b/src/adw-window-title.ui
@@ -9,6 +9,7 @@
         <property name="valign">center</property>
         <child>
           <object class="GtkLabel" id="title_label">
+            <property name="ellipsize">end</property>
             <property name="halign">center</property>
             <property name="wrap">False</property>
             <property name="single-line-mode">True</property>
diff --git a/tests/test-squeezer.c b/tests/test-squeezer.c
index be3d84dc..5996d854 100644
--- a/tests/test-squeezer.c
+++ b/tests/test-squeezer.c
@@ -33,13 +33,13 @@ test_adw_squeezer_allow_none (void)
   squeezer = g_object_ref_sink (ADW_SQUEEZER (adw_squeezer_new ()));
   g_assert_nonnull (squeezer);
 
-  g_assert_false (adw_squeezer_get_allow_none (squeezer));
-
-  adw_squeezer_set_allow_none (squeezer, TRUE);
   g_assert_true (adw_squeezer_get_allow_none (squeezer));
 
   adw_squeezer_set_allow_none (squeezer, FALSE);
   g_assert_false (adw_squeezer_get_allow_none (squeezer));
+
+  adw_squeezer_set_allow_none (squeezer, TRUE);
+  g_assert_true (adw_squeezer_get_allow_none (squeezer));
 }
 
 


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