[Gtk-sharp-list] menuBar and gtk.treeview same GUI

luca luca.maccari at gmail.com
Tue Apr 26 11:58:05 EDT 2011

Hi all, 
i've to build a desktop application, and i'm using GTK# 
how can i add multiple widget to the same GUI?

best regards,

MenuBar mainMenu = new MenuBar();
//adding content

Gtk.TreeView tree = new Gtk.TreeView ();
//building tree


where this is mainwindow

(testdialog:3691): Gtk-WARNING **: Attempting to add a widget with type
GtkTreeView to a __gtksharp_0_MainWindow, but as a GtkBin subclass a
__gtksharp_0_MainWindow can only contain one widget at a time; it already
contains a widget of type GtkMenuBar
The application was terminated by a signal: SIGKILL

View this message in context: http://mono.1490590.n4.nabble.com/menuBar-and-gtk-treeview-same-GUI-tp3475820p3475820.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

More information about the Gtk-sharp-list mailing list