HdyDialog and stack navigation
I'm not exactly sure if this is the right way to introduce a header for stack navigation to a HdyDialog:``
<interface>
<object class="HdyDialog" id="dialog">
<property name="valign">center</property>
<child type="titlebar">
<object class="HdyTitleBar">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkStack" id="header_stack">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="transition_type">slide-left-right</property>
<property name="visible-child-name" bind-source="panes_stack" bind-property="visible-child-name" bind-flags="bidirectional|sync-create"/>
<child>
<object class="GtkHeaderBar" id="header_view_settings">
but doing it this way throws a critical:
** (sm.puri.Chatty:3365): CRITICAL **: 09:28:19.411: update_titlebar: assertion 'GTK_IS_HEADER_BAR (titlebar)' failed
Thread 1 "chatty" received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff7ce19f5 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) bt
#0 0x00007ffff7ce19f5 in () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1 0x00007ffff7ce2d0d in g_logv () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007ffff7ce2edf in g_log () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007ffff71b3a98 in handle_size (self=0x555555ab83c0, parent=<optimized out>)
at ../src/hdy-dialog.c:118
Edited by Andrea Schaefer