You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. git clone https://code.google.com/p/keymagic/
2. cd keymagic/ibus
3. ./autogen.sh --prefix=/usr
4. make
What is the expected output? What do you see instead?
Should compile without error.
Instead, got following error-
CXX ibus_engine_keymagic-main.o
In file included from main.cpp:8:0:
engine.h:7:22: fatal error: keymagic.h: No such file or directory
compilation terminated.
After fixing a.m. and invoke make again, got following error-
CXX ibus_engine_keymagic-engine.o
engine.cpp: In function ‘gboolean
ibus_keymagic_engine_process_key_event(IBusEngine*, guint, guint, guint)’:
engine.cpp:421:80: error: too few arguments to function ‘void
ibus_engine_get_surrounding_text(IBusEngine*, IBusText**, guint*, guint*)’
/usr/include/ibus-1.0/ibusengine.h:424:6: note: declared here
make[2]: *** [ibus_engine_keymagic-engine.o] Error 1
What version of the product are you using? On what operating system?
ibus-keymagic 1.5
fedora 16
ibus-1.4.0
Please provide any additional information below.
Checked on online IBus reference manual, this function is still as follows-
void ibus_engine_get_surrounding_text (IBusEngine *engine,
IBusText **text,
guint *cursor_pos);
engine : An IBusEngine.
text :Location to store surrounding text.
cursor_pos :Cursor position in characters in text.
But on source repository and local /usr/include/ibus-1.0/ibusengine.h header
file, declared with extra argument as-
void ibus_engine_get_surrounding_text(IBusEngine *engine,
IBusText **text,
guint *cursor_pos,
guint *anchor_pos);
engine: An IBusEngine.
text: (allow-none): Location to store surrounding text.
cursor_pos: (allow-none): Cursor position in characters in @text.
anchor_pos: (allow-none): Anchor position of selection in @text.
Original issue reported on code.google.com by tmh...@gmail.com on 23 Jan 2012 at 8:01
The text was updated successfully, but these errors were encountered:
Error#2 solved temporarily by passing same cursor postion as anchor position to
the function as-
IBusText *text;
guint pos = 0;
ibus_engine_get_surrounding_text((IBusEngine*)ibusKeymagic, &text, &pos, &pos);
Compile ok and ibus-engine seems working :) but may need to review the code.
Original comment by tmh...@gmail.com on 23 Jan 2012 at 8:20
Original issue reported on code.google.com by
tmh...@gmail.com
on 23 Jan 2012 at 8:01The text was updated successfully, but these errors were encountered: