[gnome-terminal/wip/fmuellner/headerbar: 2/6] window: Use a headerbar



commit 4df6eaab72ce55682a26a142bad83c60770b36d6
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Nov 1 23:18:20 2018 +0100

    window: Use a headerbar
    
    Adopt client-side decorations, which is what GNOME as a whole has been
    moving to for a while now. This will give us a place to expose common
    actions more prominently than the traditional menubar, and may even
    hold tab titles in the future.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756798

 src/terminal-window.ui | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/terminal-window.ui b/src/terminal-window.ui
index b0f63fd6..7e1009be 100644
--- a/src/terminal-window.ui
+++ b/src/terminal-window.ui
@@ -3,6 +3,12 @@
   <!-- interface-requires gtk+ 3.10 -->
   <template class="TerminalWindow" parent="GtkApplicationWindow">
     <property name="can_focus">False</property>
+    <child type="titlebar">
+      <object class="GtkHeaderBar" id="headerbar">
+        <property name="visible">True</property>
+        <property name="show_close_button">True</property>
+      </object>
+    </child>
     <child>
       <object class="GtkBox" id="main_vbox">
         <property name="visible">True</property>


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