Commit e173b3bb authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko Committed by Zander Brown
Browse files

window: Subclass HdyApplicationWindow

parent c148b355
......@@ -3,25 +3,23 @@
<!-- interface-requires gtk+ 3.20 -->
<requires lib="gtk+" version="3.20"/>
<requires lib="libhandy" version="0.0"/>
<template class="ClocksWindow" parent="GtkApplicationWindow">
<template class="ClocksWindow" parent="HdyApplicationWindow">
<property name="title" bind-source="header_bar" bind-property="title" bind-flags="sync-create" />
<child type="titlebar">
<object class="ClocksHeaderBar" id="header_bar">
<property name="visible">True</property>
<property name="hexpand">True</property>
<property name="vexpand">False</property>
<property name="stack">stack</property>
<property name="switcher_bar">switcher_bar</property>
<style>
<class name="titlebar"/>
</style>
</object>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="ClocksHeaderBar" id="header_bar">
<property name="visible">True</property>
<property name="stack">stack</property>
<property name="switcher_bar">switcher_bar</property>
<style>
<class name="titlebar"/>
</style>
</object>
</child>
<child>
<object class="GtkStack" id="stack">
<property name="visible">True</property>
......@@ -71,11 +69,6 @@
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="HdyViewSwitcherBar" id="switcher_bar">
......@@ -84,11 +77,6 @@
<property name="stack">stack</property>
<property name="reveal">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
......
......@@ -19,7 +19,7 @@
namespace Clocks {
[GtkTemplate (ui = "/org/gnome/clocks/ui/window.ui")]
public class Window : Gtk.ApplicationWindow {
public class Window : Hdy.ApplicationWindow {
private const GLib.ActionEntry[] ACTION_ENTRIES = {
// primary menu
{ "show-primary-menu", on_show_primary_menu_activate, null, "false", null },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment