Re: Toy menu program (GtkItemFactory) *gives no errors* but menu doesn't appear!? How debug?
- From: Christian Seberino <seberino spawar navy mil>
- To: "Nils O. Sel?sdal" <noselasd frisurf no>
- Cc: gtk-list gnome org
- Subject: Re: Toy menu program (GtkItemFactory) *gives no errors* but menu doesn't appear!? How debug?
- Date: Sat, 22 Jun 2002 11:28:18 -0700
Can I ask you one last question?!?!
*Everything* is working fine now and
there are *no* error messages. I put
the menu stuff in a vbox....
I noticed that the menu looks different
than in other apps. They seem to have
their menu bar on a nice distinct panel
that is draggable to other positions on window.
My menu bar looks flat and unattractive
and blends into other widgets since there
is *no clear border*.
Does this sound familiar??
On Sat, Jun 22, 2002 at 12:59:36AM +0200, Nils O. Sel?sdal wrote:
> On Sat, 2002-06-22 at 00:53, Christian Seberino wrote:
> > Nils
> > Thanks! I'm so glad you sent this reply!
> > I changed gtk_widget_show to gtk_widget_show_all
> > like you said and now my menus appear!!!
> > Do you know why the menubar would take over
> > the whole window? The 2 menu items "File" and "Help"
> > are huge. It looks like one must specify size
> > of menu bar somewhere. :(
> > (I saw one example program that defined a vbox
> > and one that avoided that..... perhaps one needs
> > a vbox or something like that?! errrr. :)
> Yup.. has to do with layout.. when you have only on widget
> like here it will take all the space. Using some layout
> managers lets you specifie which widget gets the space,
> how its used and so on. Layout is a topic of its own, I
> suggest you read the gtk tutorial, and any other
> GTK/Gnome docs for that.
> Playing around with Glade (glade.gnome.org I think) might also
> be useful.
> Nils Olav Selåsdal <NOS Utel no>
> System Developer, UtelSystems a/s
> w w w . u t e l s y s t e m s . c o m
Dr. Christian Seberino
SPAWAR Systems Center San Diego
53560 Hull Street
San Diego, CA 92152-5001
Phone: (619) 553-7940
Fax: (619) 553-2836
Email: seberino spawar navy mil
] [Thread Prev