[gtk/wip/exalm/round_corners: 1/2] whatever
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/exalm/round_corners: 1/2] whatever
- Date: Thu, 14 May 2020 17:57:28 +0000 (UTC)
commit ace7441b2dd4f4b222f5428011bdf07c50734ca5
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Apr 22 21:16:48 2020 +0500
whatever
demos/widget-factory/widget-factory.c | 6 +++++
demos/widget-factory/widget-factory.ui | 43 ++++++++++++++++++++--------------
2 files changed, 31 insertions(+), 18 deletions(-)
---
diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c
index 46cac4a989..1c38be2bc3 100644
--- a/demos/widget-factory/widget-factory.c
+++ b/demos/widget-factory/widget-factory.c
@@ -159,6 +159,12 @@ activate_search (GSimpleAction *action,
searchbar = GTK_WIDGET (g_object_get_data (G_OBJECT (window), "searchbar"));
gtk_search_bar_set_search_mode (GTK_SEARCH_BAR (searchbar), TRUE);
+ static int i = 0;
+ if (i == 0)
+ gtk_window_set_icon_name (GTK_WINDOW (window), "go-previous-symbolic");
+ else
+ gtk_window_set_icon_name (GTK_WINDOW (window), "go-next-symbolic");
+ i = (i == 0 ? 1 : 0);
}
static void
diff --git a/demos/widget-factory/widget-factory.ui b/demos/widget-factory/widget-factory.ui
index f3321e1f6f..a038434ca3 100644
--- a/demos/widget-factory/widget-factory.ui
+++ b/demos/widget-factory/widget-factory.ui
@@ -434,32 +434,38 @@ Suspendisse feugiat quam quis dolor accumsan cursus.</property>
<class name="devel"/>
</style>
<property name="title">GTK Widget Factory</property>
+ <property name="icon-name">weather-snow-symbolic</property>
<child type="titlebar">
- <object class="GtkHeaderBar" id="headerbar1">
- <property name="show-title-buttons">1</property>
- <child type="title">
- <object class="GtkStackSwitcher" id="stack_switcher">
- <property name="stack">toplevel_stack</property>
- </object>
- </child>
- <child type="end">
- <object class="GtkMenuButton" id="gear_menu_button">
- <property name="valign">center</property>
- <property name="menu-model">gear_menu</property>
- <property name="icon-name">open-menu-symbolic</property>
- </object>
- </child>
+ <object class="GtkBox">
+ <property name="visible">0</property>
</object>
</child>
<child>
<object class="GtkBox" id="box1">
<property name="orientation">vertical</property>
- <property name="margin-start">10</property>
- <property name="margin-end">10</property>
- <property name="margin-top">10</property>
- <property name="margin-bottom">10</property>
+ <child>
+ <object class="GtkHeaderBar" id="headerbar1">
+ <property name="show-title-buttons">1</property>
+ <child type="title">
+ <object class="GtkStackSwitcher" id="stack_switcher">
+ <property name="stack">toplevel_stack</property>
+ </object>
+ </child>
+ <child type="end">
+ <object class="GtkMenuButton" id="gear_menu_button">
+ <property name="valign">center</property>
+ <property name="menu-model">gear_menu</property>
+ <property name="icon-name">open-menu-symbolic</property>
+ </object>
+ </child>
+ </object>
+ </child>
<child>
<object class="GtkStack" id="toplevel_stack">
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="transition-duration">250</property>
<property name="transition-type">crossfade</property>
<child>
@@ -1915,6 +1921,7 @@ microphone-sensitivity-medium-symbolic</property>
<child>
<object class="GtkPopoverMenuBar">
<property name="menu-model">menu_bar_model</property>
+ <property name="hexpand">True</property>
</object>
</child>
<child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]