Re: [maemo-developers] Way to get a reference to parent HildonAppView from its menu

2006-01-20 Thread Luca Donaggio
2006/1/19, Kalle Vahlman [EMAIL PROTECTED]: On 1/19/06, Luca Donaggio [EMAIL PROTECTED] wrote:[Finding the AppView from a menu reference] I'm tryng to port grsync to maemo, it's almost done really, but for this menu related issue. Grsync has been made with Glade and Glade uses a lookup_widget()

Re: [maemo-developers] Way to get a reference to parent HildonAppView from its menu

2006-01-19 Thread Luca Donaggio
2006/1/19, Kalle Vahlman [EMAIL PROTECTED]: On 1/18/06, Fred Lefévère-Laaoide [EMAIL PROTECTED] wrote: Have you try gtk_widget_get_toplevel ?That would give the HildonApp, as AppViews are not toplevels. You could then of course iterate over the list of appviews and check whichhas the menu...That

Re: [maemo-developers] Way to get a reference to parent HildonAppView from its menu

2006-01-19 Thread Kalle Vahlman
On 1/19/06, Luca Donaggio [EMAIL PROTECTED] wrote: [Finding the AppView from a menu reference] I'm tryng to port grsync to maemo, it's almost done really, but for this menu related issue. Grsync has been made with Glade and Glade uses a lookup_widget() function to retrieve widgets

[maemo-developers] Way to get a reference to parent HildonAppView from its menu

2006-01-18 Thread Luca Donaggio
How can I get a reference to the parent AppView giving a pointer to its GtkMenu?gtk_menu_get_attach_widget() doesn't work and gtk_widget_get_parent() returns a pointer to some unknown object (I checked it). Thanks in advance,Luca Donaggio ___

Re: [maemo-developers] Way to get a reference to parent HildonAppView from its menu

2006-01-18 Thread Kalle Vahlman
On 1/18/06, Fred Lefévère-Laaoide [EMAIL PROTECTED] wrote: Have you try gtk_widget_get_toplevel ? That would give the HildonApp, as AppViews are not toplevels. You could then of course iterate over the list of appviews and check which has the menu... Luca Donaggio wrote: How can I get a