Re: Integrating EggMenu code into GTK+



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.

> 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 (...);
}

I think bonobo has a bonobo_menu_popup for popping up menus by path.
Dunno if we need that (it'd basically just be gtk_menu_merge_get_widget
+ gtk_menu_popup),

> I'm going to commit this stuff now. 
> 

Cool, thanks for working on this Matthias.

Anders





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