Re: Integrating EggMenu code into GTK+



Am Son, 2003-08-24 um 21.48 schrieb Anders Carlsson:
> sön 2003-08-24 klockan 21.39 skrev Matthias Clasen:
> [snip]
> 
> > I think only important is important. But speaking about random controls,
> > bonoboui supports this via <control> and
> > bonobo_ui_component_widget_set(). Do we need something similar ?
> > 
> 
> I'm not sure we do. We have ways of letting an action creating both a
> menu item and a toolbar item. My opinion is that this should be done
> through custom actions instead.
> 

Ah, yes that's much better. Needs a bit of documentation and a good
example, though.

> > One more question: I've just fixed the popup support in GtkMenuMerge and
> > I wonder whether I should emit "add_widget" for popup menus ? Currently,
> > you have to call gtk_menu_merge_get_widget (merge, "/popups/my-popup")
> > to get at the constructed menu.
> > 
> 
> It sounds to me like emitting "add_widget" for popup menus would be
> weird, because you'd have to do something like
> 
> if (GTK_IS_MENU (widget)) {
>   our_popup_menu = widget;
> }
> else {
>   gtk_box_pak_start (...);
> }
> 

Agreed. 

Matthias






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