[gitg] window: show close button if not using native controls



commit 769d34ae81f9c78244f3aef9a01ae3e760712913
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu Dec 17 22:30:47 2015 +0100

    window: show close button if not using native controls

 gitg/gitg-window.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index 6d0ddb3..e1aa743 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -196,6 +196,10 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
                        set_titlebar(null);
                        d_grid_top.attach(d_header_bar, 0, 0, 1, 1);
                }
+               else
+               {
+                       d_header_bar.show_close_button = true;
+               }
 
                add_action_entries(win_entries, this);
 


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