Subject: commit: Re: Fix for bug 941
From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Mon Aug 28 2000 - 23:35:49 CDT
It works. It's committed.
Cheers
Martin
On Mon, 28 Aug 2000, Peter Haight wrote:
> 
> This ensures that the GetState functions for menu items in popup menus are
> called which ensures that '(no spelling suggestions)' gets greyed out.
> 
> 
> Index: src/af/xap/unix/gnome/xap_UnixGnomeFrame.cpp
> ===================================================================
> RCS file: /cvsroot/abi/src/af/xap/unix/gnome/xap_UnixGnomeFrame.cpp,v
> retrieving revision 1.10
> diff -u -r1.10 xap_UnixGnomeFrame.cpp
> --- src/af/xap/unix/gnome/xap_UnixGnomeFrame.cpp        2000/07/19 01:57:57
> 1.10
> +++ src/af/xap/unix/gnome/xap_UnixGnomeFrame.cpp        2000/08/29 02:59:49
> @@ -278,7 +278,7 @@
> 
>  /*****************************************************************/
> 
> -UT_Bool XAP_UnixGnomeFrame::runModalContextMenu(AV_View * /* pView */,
> const ch
> ar * szMenuName,
> +UT_Bool XAP_UnixGnomeFrame::runModalContextMenu(AV_View * pView, const char
> * s
> zMenuName,
> 
>                 UT_sint32 x, UT_sint32 y)
>  {
>         UT_Bool bResult = UT_TRUE;
> @@ -300,6 +300,7 @@
>                 // button_release_event and we won't know to release our
>                 // grab.  so let's do it here.  (when raised from a keyboard
>                 // context menu, we may not have a grab, but that should be
> ok.
> +               pUnixPopup->refreshMenu(pView);
>                 gnome_popup_menu_do_popup_modal (GTK_WIDGET
> (pUnixPopup->getMenu
> Handle ()),
> 
>  NULL, NULL, NULL, NULL);
>         }
> 
> 
This archive was generated by hypermail 2b25 : Mon Aug 28 2000 - 23:36:34 CDT