[Glade-users] Glade3 Toolbar & Notebook page problem



On Thu, 2009-04-16 at 16:27 +0000, Johnson Yu wrote:
Hi,there,

Here's my question:

I have toolbar and notebook on the UI. What i want is: at default,
there's the toolbar for the default page of notebook; when i clicked
another page, i hope another toolbar could'v been loaded for that
page, and likewise.

my current solution would be: pre-create enough Toolbars, set one
visible and rest invisible, and change the Toolbar in page shift
signal callback. Though, problem are: 1)how could I create multiple
Toolbars in one GNOME App widgets and arrange them properly?

You can put toolbars inside any container widget. VBox seems to be most
appropriate.

2)it seems there's no visible/invisible property for Toolbar, is
there?

Every widget has "visible" property. It's under Common tab in the
Properties editor.

3)i'm thinking of another solution: if the Toolbar can be handled like
resource file, then it's possible to load different Toolbar resource
on the fly.

GtkUIManager is used for that purpose. Glade does not support it. It
does use it internally though, to build it's own interface.

SO, is this possible with Glade3? if yes, how? if no, any other idea?
Thank you!!

SO, you either dump all your toolbars into the glade file, and show/hide
them on demand, or use GtkUIManager to manage your interface. Of course
you can always use neither and create everything to your liking purely
in the code.



Regards,
Johnson. Yu



_______________________________________________
Glade-users maillist  -  Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]