[gnome-mahjongg/arnaudb/wip/gtk4: 27/41] Adapt to HeaderBar API.




commit 4203688b2642fc926390a40e7a0c3a699db80db2
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Mar 27 19:05:36 2020 +0100

    Adapt to HeaderBar API.

 src/gnome-mahjongg.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gnome-mahjongg.vala b/src/gnome-mahjongg.vala
index b944450..45c0343 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -161,7 +161,7 @@ public class Mahjongg : Gtk.Application
 
         var header_bar = new Gtk.HeaderBar ();
         header_bar.set_custom_title (title_box);
-        header_bar.set_show_close_button (true);
+        header_bar.set_show_title_buttons (true);
         header_bar.pack_start (hbox);
         header_bar.pack_end (menu_button);
         header_bar.pack_end (hint_button);


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