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




commit 7004e5aa3be8e50a5c98582c086a6060424bb8d6
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Aug 6 17:19:05 2020 +0200

    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 3ab6423..4aa46ef 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -163,7 +163,7 @@ public class Mahjongg : Gtk.Application
         menu_button.set_icon_name ("open-menu-symbolic");
 
         var header_bar = new HeaderBar ();
-        header_bar.set_custom_title (title_box);
+        header_bar.set_title_widget (title_box);
         header_bar.set_show_title_buttons (true);
         header_bar.pack_start (hbox);
         header_bar.pack_end (menu_button);


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