[gnome-mahjongg/arnaudb/wip/gtk4: 14/23] Adapt to MenuButton API.



commit 94ac6d2ff8ca504b7b0b943322d89e23967a208d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Fri Mar 27 19:06:55 2020 +0100

    Adapt to MenuButton 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 dc4e4f0..1bdd0fd 100644
--- a/src/gnome-mahjongg.vala
+++ b/src/gnome-mahjongg.vala
@@ -155,7 +155,7 @@ public class Mahjongg : Gtk.Application
         var menu_button = new Gtk.MenuButton ();
         menu_button.valign = Gtk.Align.CENTER;
         menu_button.set_menu_model (menu);
-        menu_button.set_image (new Gtk.Image.from_icon_name ("open-menu-symbolic", Gtk.IconSize.BUTTON));
+        menu_button.set_icon_name ("open-menu-symbolic");
 
         var header_bar = new Gtk.HeaderBar ();
         header_bar.set_custom_title (title_box);


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