[libadwaita] demo: Quick hack to show how it works
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita] demo: Quick hack to show how it works
- Date: Mon, 26 Jul 2021 08:56:40 +0000 (UTC)
commit 1ee626b6b9218b0b06623558cb89d0c392b08869
Author: Adrien Plazas <kekun plazas laposte net>
Date: Fri Jul 23 15:50:41 2021 +0200
demo: Quick hack to show how it works
Please remove this commit before merging, it's there only for testing
purpose.
Open the view switcher demo, the title will disappear.
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 827112a2..cb2ae3dc 100644
--- a/src/adw-view-switcher-title.ui
+++ b/src/adw-view-switcher-title.ui
@@ -4,6 +4,7 @@
<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 1f206806..daee6fbd 100644
--- a/src/adw-window-title.ui
+++ b/src/adw-window-title.ui
@@ -9,7 +9,6 @@
<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 5996d854..be3d84dc 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_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));
+
+ adw_squeezer_set_allow_none (squeezer, FALSE);
+ g_assert_false (adw_squeezer_get_allow_none (squeezer));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]