Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
* MainWindow.cs: Update sample to showcase advance in app menu
Browse files Browse the repository at this point in the history
  implementation

svn path=/trunk/gtk-sharp-ribbon/; revision=107740
  • Loading branch information
Laurent Debacker committed Jul 11, 2008
1 parent 8764b64 commit 57f33e2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sample/ChangeLog
@@ -1,3 +1,8 @@
2008-06-28 Laurent Debacker <debackerl@gmail.com>

* MainWindow.cs: Update sample to showcase advance in app menu
implementation

2008-06-27 Laurent Debacker <debackerl@gmail.com>

* MainWindow.cs: Update sample
Expand Down
10 changes: 10 additions & 0 deletions Sample/MainWindow.cs
Expand Up @@ -156,7 +156,17 @@ public MainWindow() : base (WindowType.Toplevel)

ApplicationMenu appMenu = ribbon.ApplicationButton.Menu;
ApplicationMenuItem mi = new ApplicationMenuItem ("Test 1");
mi.Menu = new Gtk.TreeView ();
appMenu.Append (mi);
mi = new ApplicationMenuItem ("Test 2");
mi.Menu = new Gtk.TreeView ();
appMenu.Append (mi);
mi = new ApplicationMenuItem ("Test 3");
mi.Menu = new Gtk.TreeView ();
appMenu.Append (mi);

appMenu.OptionsButton = new Ribbons.Button ("Options");
appMenu.ExitButton = new Ribbons.Button ("Exit");

TextView txt = new TextView ();

Expand Down

0 comments on commit 57f33e2

Please sign in to comment.