[gnome-sudoku/arnaudb/improve-code: 3/5] Small code improvement.



commit 2784cb85be46a0d6c5d279fc72c13a36e81698b5
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Apr 13 13:41:32 2020 +0200

    Small code improvement.

 data/gnome-sudoku.ui  | 1 +
 src/gnome-sudoku.vala | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/data/gnome-sudoku.ui b/data/gnome-sudoku.ui
index 3dcfce6..edc787b 100644
--- a/data/gnome-sudoku.ui
+++ b/data/gnome-sudoku.ui
@@ -5,6 +5,7 @@
     <property name="visible">True</property>
     <property name="can-focus">False</property>
     <property name="title" translatable="yes">Sudoku</property>
+    <property name="show-close-button">True</property>
     <child>
       <object class="GtkBox" id="undo_redo_box">
         <property name="visible">True</property>
diff --git a/src/gnome-sudoku.vala b/src/gnome-sudoku.vala
index 5c15b45..5969881 100644
--- a/src/gnome-sudoku.vala
+++ b/src/gnome-sudoku.vala
@@ -179,7 +179,6 @@ public class Sudoku : Gtk.Application
         pause_action = (SimpleAction) lookup_action ("pause");
         play_custom_game_action = (SimpleAction) lookup_action ("play-custom-game");
 
-        headerbar.show_close_button = true;
         window.set_titlebar (headerbar);
 
         saver = new SudokuSaver ();


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