[Glade-users] Spacing widgets on menu bar



On Fri, 2007-04-13 at 10:24 -0600, Jeffrey Barish wrote:
Jeffrey Barish wrote:

Can someone confirm that the widget at the top of the Gnome desktop is a
menu bar?  If it is a menu bar, then it has on it several MenuItems, then
some ImageMenuItems, then a long gap before some more ImageMenuItems, and
finally some more MenuItems.  I am wondering about that gap.  Is there a
way in Glade to specify a gap on a menu bar -- or any sort of spacing, for
that matter?  I am using Glade 3.0.2.

I am now using Glade 3.2.0 (Wow! much nicer), but I still don't see a
solution.  My problem is that I am expecting to see expand, fill, and
padding options like I see with Box, but those properties apparently do not
exist for a menu bar.  Accordingly, the limitation seems to be in gtk, not
Glade.  However, the bar at the top of the Gnome desktop appears to be a
menu bar and it has a big gap in the middle.  So how was this done?  I am
thinking of putting a normal menu item on the bar where I want a filler.  I
will specify a null label so that nothing appears and I will specify a
handler for the menu bar size request event that allocates a width to the
filler sufficient to force items to the right of the filler over to the
right margin.  I can't shake the belief that there's an easier way, though. 
Since I'm just learning gtk, I sometimes miss the obvious.

I'm not sure how the panel is made, but GtkToolbar does have support
for "homogenous" and "expand" properties, unfortunately the packing
properties are not expose in the menu editor so the only way of
accessing them currently is to select the toolitems in the Inspector
and use the "Packing" tab in the normal property editor.

Cheers,
                  -Tristan






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