[connections/gnome-42] window: Revert from HdyApplicationWindow to GtkApplicationWindow



commit 137a0593e41e9f48597d66107a14213b79fcfc7f
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed Apr 6 12:52:26 2022 +0200

    window: Revert from HdyApplicationWindow to GtkApplicationWindow
    
    We need to be able to drag the window around and maximize it. For
    some reason that doesn't seem to work now.
    
    rhbz#2072445

 src/ui/window.ui | 13 +++++++------
 src/window.vala  |  2 +-
 2 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/src/ui/window.ui b/src/ui/window.ui
index c1e73b4..7e1c67c 100644
--- a/src/ui/window.ui
+++ b/src/ui/window.ui
@@ -1,22 +1,23 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <requires lib="gtk+" version="3.20"/>
-    <template class="ConnectionsWindow" parent="HdyApplicationWindow">
+    <template class="ConnectionsWindow" parent="GtkApplicationWindow">
       <property name="title" translatable="yes">Connections</property>
       <property name="resizable">True</property>
       <signal name="key-press-event" after="yes" handler="on_key_pressed"/>
       <signal name="delete-event" handler="on_delete_event"/>
 
+      <child type="titlebar">
+        <object class="ConnectionsTopbar" id="topbar">
+          <property name="visible">True</property>
+        </object>
+      </child>
+
       <child>
         <object class="GtkBox">
           <property name="visible">True</property>
           <property name="orientation">vertical</property>
   
-          <child>
-            <object class="ConnectionsTopbar" id="topbar">
-              <property name="visible">True</property>
-            </object>
-          </child>
           
           <child>
             <object class="GtkSearchBar" id="search_bar">
diff --git a/src/window.vala b/src/window.vala
index 3ad65b9..1550cb3 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -21,7 +21,7 @@
 
 namespace Connections {
     [GtkTemplate (ui = "/org/gnome/Connections/ui/window.ui")]
-    private class Window : Hdy.ApplicationWindow {
+    private class Window : Gtk.ApplicationWindow {
         [GtkChild]
         private unowned Topbar topbar;
 


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