[gnome-devel-docs] Do not use Gtk.Menu in MenuButton vala example.
- From: Tiffany Antopolski <antopolski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] Do not use Gtk.Menu in MenuButton vala example.
- Date: Wed, 1 Aug 2012 11:39:39 +0000 (UTC)
commit 1a5a0f0f823766362756cbe0699e1a983baee1ab
Author: Tiffany Antopolski <tiffany antopolski gmail com>
Date: Wed Aug 1 13:39:15 2012 +0200
Do not use Gtk.Menu in MenuButton vala example.
platform-demos/C/samples/menubutton.vala | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/platform-demos/C/samples/menubutton.vala b/platform-demos/C/samples/menubutton.vala
index 5a25ebd..4c11a6b 100644
--- a/platform-demos/C/samples/menubutton.vala
+++ b/platform-demos/C/samples/menubutton.vala
@@ -10,8 +10,7 @@ public class MyWindow : Gtk.ApplicationWindow {
var menumodel = new Menu ();
menumodel.append ("New", "app.new");
- var menu = new Gtk.Menu.from_model (menumodel);
- menubutton.set_menu (menu);
+ menubutton.set_menu_model (menumodel);
this.add(grid);
grid.attach(menubutton, 0, 0, 1, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]