[gnome-mines/arnaudb/wip/gtk4: 13/39] Adapt to HeaderBar API.




commit e3ae003a799d96b64620b661c9bf6890a054c1c1
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Mon Apr 13 23:02:21 2020 +0200

    Adapt to HeaderBar API.

 src/gnome-mines.vala           | 2 +-
 src/theme-selector-dialog.vala | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-mines.vala b/src/gnome-mines.vala
index 5548c80..51d63f8 100644
--- a/src/gnome-mines.vala
+++ b/src/gnome-mines.vala
@@ -220,7 +220,7 @@ public class Mines : Gtk.Application
         add_window (window);
 
         var headerbar = new HeaderBar ();
-        headerbar.show_close_button = true;
+        headerbar.show_title_buttons = true;
         headerbar.set_title (_("Mines"));
         headerbar.show ();
         window.set_titlebar (headerbar);
diff --git a/src/theme-selector-dialog.vala b/src/theme-selector-dialog.vala
index 4e8d4e7..50b492a 100644
--- a/src/theme-selector-dialog.vala
+++ b/src/theme-selector-dialog.vala
@@ -118,7 +118,7 @@ public class ThemeSelectorDialog : Gtk.Dialog
         var buttons_holder = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0);
 
         var headerbar = get_header_bar () as Gtk.HeaderBar;
-        headerbar.set_show_close_button (true);
+        headerbar.set_show_title_buttons (true);
         get_content_area ().pack_start (create_preview_widget (out minefield), true, true, 0);
 
         buttons_holder.pack_start (previous);


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