[Gtk-sharp-list] Glade - problem when menu entries specified

Mike Kestner mkestner@ximian.com
Wed, 16 Jun 2004 13:33:56 -0500


On Wed, 2004-06-16 at 13:12, Viktor Stansvik wrote:

> > My guess is that you are using Gtk.Application.Init and glade is
> > sticking Gnome.Stock items in your menu, which causes libglade to go
> > through some gnomeui code which isn't initialized.

> I tried to add "using Gnome" to my program and add gnome-sharp to my
> references but I still got the same problem.
> Then I tried to add only one non-stock item to my MenuBar and got
> another error when trying to run the app:

A "using Gnome" won't help.  You would have to create a Gnome.Program
object like in the GnomeHelloWorld sample.  I point this out because
others have missed this requirement for dabbling in the Gnome namespace.
Gnome.Program initializes all the libraries in the Gnome namespace like
Gtk.Application.Init does for Gtk-only programs.

Implied in my "My guess" statement above is that you have not provided
anywhere near enough information for us to adequately help you debug
your issue.  You'll need to show the code, preferably boiled down to as
small of a sample as possible to reproduce the issue.  Otherwise we are
reduced to making wild guesses.

-- 
Mike Kestner <mkestner@ximian.com>