Re: gnome_popup_menu_do_popup ()
- From: James Henstridge <james daa com au>
- To: "Daniel M. German" <dmg csg uwaterloo ca>
- Cc: gnome-devel-list gnome org
- Subject: Re: gnome_popup_menu_do_popup ()
- Date: Sat, 7 Oct 2000 12:16:54 +0800 (WST)
On Fri, 6 Oct 2000, Daniel M. German wrote:
> 
> 
> 
> I want to create a popup menu that has 8 options. I want to have a
> single callback that, depending on which option was chosen, does
> something accordingly.
> 
> I am creating the menu:
> 
>        GnomeUIInfo popupZoomMenu[] = {
>                 {GNOME_APP_UI_ITEM, ZoomMagnLabels[0], NULL, 
>                  zoom_callback, &temp[4] , NULL,
> 		 ...
> 
> And calling the menu with:
> 
>       gnome_popup_menu_do_popup(ggv->popup_zoom_menu, 
>                                                   NULL, NULL, event, ggv);
> 
This function overrides the user data you specified in the GnomeUIInfo
array.  Instead, try using gtk_menu_popup:
  gtk_menu_popup(ggv->popup_zoom_menu, NULL, NULL, NULL, NULL,
                 event->button, event->time);
James.
-- 
Email: james daa com au
WWW:   http://www.daa.com.au/~james/
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]