[gnome-mahjongg/arnaudb/wip/gtk4: 21/30] Adapt to MenuButton API.




commit 24739afd8cc88a6c00c4e692947f55d1c73e4d99
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 5d0c4ba..187b446 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]