[gnome-usage] window: Specialize Hdy.ApplicationWindow



commit 1ed51362c66204f62a8886967021bb702c3513b7
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Jun 24 17:47:19 2020 +0200

    window: Specialize Hdy.ApplicationWindow
    
    This gives the window rounded bottom corners.

 data/ui/window.ui | 12 ++++++------
 src/window.vala   |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/data/ui/window.ui b/data/ui/window.ui
index 0653f78..435b187 100644
--- a/data/ui/window.ui
+++ b/data/ui/window.ui
@@ -2,13 +2,17 @@
 <interface>
   <requires lib="gtk+" version="3.24"/>
   <requires lib="libhandy" version="1.0"/>
-  <template class="UsageWindow" parent="GtkApplicationWindow">
+  <template class="UsageWindow" parent="HdyApplicationWindow">
     <property name="default-height">600</property>
     <property name="default-width">950</property>
     <property name="title" translatable="yes">Usage</property>
     <property name="visible">True</property>
     <property name="window-position">center</property>
-        <child type="titlebar">
+    <child>
+      <object class="GtkBox">
+        <property name="orientation">vertical</property>
+        <property name="visible">True</property>
+        <child>
           <object class="HdyHeaderBar" id="header_bar">
             <property name="centering-policy">strict</property>
             <property name="show-close-button">True</property>
@@ -59,10 +63,6 @@
             </child>
           </object>
         </child>
-    <child>
-      <object class="GtkBox">
-        <property name="orientation">vertical</property>
-        <property name="visible">True</property>
         <child>
           <object class="GtkStack" id="stack">
             <property name="height-request">200</property>
diff --git a/src/window.vala b/src/window.vala
index b31a1a3..819162a 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -34,7 +34,7 @@ namespace Usage
     }
 
     [GtkTemplate (ui = "/org/gnome/Usage/ui/window.ui")]
-    public class Window : Gtk.ApplicationWindow
+    public class Window : Hdy.ApplicationWindow
     {
         [GtkChild]
         private Gtk.Stack stack;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]