diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2005-01-21 15:36:45 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2005-01-21 15:36:45 +0000 |
commit | 7011c19a8c96a2f8fb7c04d61cb28cdc507584a6 (patch) | |
tree | 22c0efaf2b6bb5b461389f9bac9542c7e3a5909a /editors/abiword-devel/files/patch-src::af::ev::unix::ev_UnixMenu.cpp | |
parent | a33896596d7008d70bca9b6ce72347e2d7b6fd9a (diff) |
Notes
Diffstat (limited to 'editors/abiword-devel/files/patch-src::af::ev::unix::ev_UnixMenu.cpp')
-rw-r--r-- | editors/abiword-devel/files/patch-src::af::ev::unix::ev_UnixMenu.cpp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/editors/abiword-devel/files/patch-src::af::ev::unix::ev_UnixMenu.cpp b/editors/abiword-devel/files/patch-src::af::ev::unix::ev_UnixMenu.cpp deleted file mode 100644 index 7151aa6a23a2..000000000000 --- a/editors/abiword-devel/files/patch-src::af::ev::unix::ev_UnixMenu.cpp +++ /dev/null @@ -1,47 +0,0 @@ ---- src/af/ev/unix/ev_UnixMenu.cpp.orig Sat Dec 11 16:05:23 2004 -+++ src/af/ev/unix/ev_UnixMenu.cpp Sat Dec 11 16:09:41 2004 -@@ -431,22 +431,20 @@ - return true; - } - --static char _ev_get_underlined_char(const char * szString) -+static guint _ev_get_underlined_char(const char * szString) - { - - UT_ASSERT(szString); - -- // return the char right after the underline -- const char * p = szString; -- while (*p && *(p+1)) -+ // return the keycode right after the underline -+ const UT_UCS4String str(szString); -+ for (int i = 0; i < str.length() - 1; ) - { -- if (*p == '_') -- return *++p; -- else -- p++; -+ if (str[i++] == '_') -+ return gdk_unicode_to_keyval(str[i]); - } - -- return 0; -+ return GDK_VoidSymbol; - } - - static void _ev_strip_underline(char * bufResult, -@@ -749,12 +747,12 @@ - // version of the underlined char, since all the menus ignore upper - // case (SHIFT-MOD1-[char]) invokations of accelerators. - -- if (bAltOnMod1) -+ if (keyCode != GDK_VoidSymbol && bAltOnMod1) - { - EV_EditEventMapper * pEEM = XAP_App::getApp()->getEditEventMapper(); - UT_ASSERT(pEEM); - EV_EditMethod * pEM = NULL; -- pEEM->Keystroke(EV_EKP_PRESS|EV_EMS_ALT|tolower(keyCode),&pEM); -+ pEEM->Keystroke(EV_EKP_PRESS|EV_EMS_ALT|keyCode,&pEM); - - // if the pointer is valid, there is a conflict - bConflict = (pEM != NULL); |