[gnome-latex/wip/side-panel: 2/3] test



commit 5ad9c9d890bb7a6eadfe652abcdd79e84c95d5d8
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Apr 20 16:32:51 2020 +0200

    test

 src/side_panel.vala | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/src/side_panel.vala b/src/side_panel.vala
index 6ba5e0b..3604aa3 100644
--- a/src/side_panel.vala
+++ b/src/side_panel.vala
@@ -38,9 +38,12 @@ public class SidePanel : Grid
         stack_switcher.set_stack (_stack);
         stack_switcher.set_halign (Align.CENTER);
 
-        attach (stack_switcher, 0, 0, 1, 1);
-        attach (get_close_button (), 1, 0, 1, 1);
-        attach (_stack, 0, 1, 2, 1);
+        Gtk.ActionBar action_bar = new Gtk.ActionBar ();
+        action_bar.set_center_widget (stack_switcher);
+        action_bar.pack_end (get_close_button ());
+
+        attach (action_bar, 0, 0, 1, 1);
+        attach (_stack, 0, 1, 1, 1);
         show_all ();
     }
 
@@ -49,8 +52,8 @@ public class SidePanel : Grid
         Button close_button = Tepl.utils_create_close_button () as Button;
         close_button.tooltip_text = _("Hide panel");
         close_button.margin_end = 3;
-        close_button.expand = false;
-        close_button.set_halign (Align.END);
+        //close_button.expand = false;
+        //close_button.set_halign (Align.END);
 
         close_button.clicked.connect (() => this.hide ());
 


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