[gtk/gtk-demo-fixes: 1/9] gtk-demo: Fix the application demo
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-demo-fixes: 1/9] gtk-demo: Fix the application demo
- Date: Tue, 24 Dec 2019 08:41:00 +0000 (UTC)
commit e6d3f3d91e8e511774bdbdae4e1c90f4ccbcdaac
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Dec 23 21:44:56 2019 -0500
gtk-demo: Fix the application demo
This was broken in d223752c55be49, when the
support for internal children was removed
from GtkInfoBar.
demos/gtk-demo/application.ui | 26 +++++++++-----------------
1 file changed, 9 insertions(+), 17 deletions(-)
---
diff --git a/demos/gtk-demo/application.ui b/demos/gtk-demo/application.ui
index ecceb997db..f457d89f32 100644
--- a/demos/gtk-demo/application.ui
+++ b/demos/gtk-demo/application.ui
@@ -43,25 +43,17 @@
<object class="GtkInfoBar" id="infobar">
<property name="visible">0</property>
<property name="hexpand">1</property>
- <child internal-child="content_area">
- <object class="GtkBox" id="content_area">
- <child>
- <object class="GtkLabel" id="message">
- <property name="hexpand">1</property>
- </object>
- </child>
+ <child>
+ <object class="GtkLabel" id="message">
+ <property name="hexpand">1</property>
</object>
</child>
- <child internal-child="action_area">
- <object class="GtkBox">
- <child>
- <object class="GtkButton">
- <property name="valign">center</property>
- <property name="label" translatable="yes">_OK</property>
- <property name="use-underline">1</property>
- <signal name="clicked" handler="clicked_cb"/>
- </object>
- </child>
+ <child type="action">
+ <object class="GtkButton">
+ <property name="valign">center</property>
+ <property name="label" translatable="yes">_OK</property>
+ <property name="use-underline">1</property>
+ <signal name="clicked" handler="clicked_cb"/>
</object>
</child>
<layout>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]