[gnome-tetravex/arnaudb/wip/gtk4: 30/49] Adapt to MenuButton API.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tetravex/arnaudb/wip/gtk4: 30/49] Adapt to MenuButton API.
- Date: Wed, 2 Sep 2020 16:07:48 +0000 (UTC)
commit 5919c6b5eee772cb69076773f765fb4ab47df03a
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Feb 21 04:24:11 2020 +0100
Adapt to MenuButton API.
TODO fix.
src/gnome-tetravex.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-tetravex.vala b/src/gnome-tetravex.vala
index 9ce271e..71ef565 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -329,7 +329,7 @@ private class Tetravex : Gtk.Application
Builder menu_builder = new Builder.from_resource ("/org/gnome/Tetravex/app-menu.ui");
MenuModel appmenu = (MenuModel) menu_builder.get_object ("app-menu");
hamburger_button = new MenuButton ();
- hamburger_button.set_image (new Image.from_icon_name ("open-menu-symbolic", IconSize.BUTTON));
+ hamburger_button.set_icon_name ("open-menu-symbolic");
((Widget) hamburger_button).set_focus_on_click (false);
hamburger_button.valign = Align.CENTER;
hamburger_button.show ();
@@ -1004,7 +1004,7 @@ private class Tetravex : Gtk.Application
private void hamburger_cb ()
{
- hamburger_button.active = !hamburger_button.active;
+// hamburger_button.active = !hamburger_button.active;
}
private void help_cb ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]