gtk: honor preedit policy and cursor placement
This commit is contained in:
@@ -6,6 +6,8 @@ TEXT_CFLAGS = $(shell pkg-config --cflags pangocairo cairo)
|
||||
TEXT_LIBS = $(shell pkg-config --libs pangocairo cairo)
|
||||
DBUS_CFLAGS = $(shell pkg-config --cflags dbus-1)
|
||||
DBUS_LIBS = $(shell pkg-config --libs dbus-1)
|
||||
GTK_CFLAGS = $(shell pkg-config --cflags gtk+-3.0)
|
||||
GTK_LIBS = $(shell pkg-config --libs gtk+-3.0)
|
||||
IBUS_CFLAGS = $(shell pkg-config --cflags dbus-1 xkbcommon)
|
||||
IBUS_LIBS = $(shell pkg-config --libs dbus-1 xkbcommon)
|
||||
XIM_CFLAGS = $(shell pkg-config --cflags xcb-imdkit xkbcommon)
|
||||
@@ -13,7 +15,7 @@ XIM_LIBS = $(shell pkg-config --libs xcb-imdkit xkbcommon)
|
||||
LIBS = -lthread -lbio $(TEXT_LIBS) $(IBUS_LIBS) $(XIM_LIBS)
|
||||
|
||||
PROG = unit_test
|
||||
LIVE = ibus_live_test ipc_live_test daemon_collision_test daemon_failure_test \
|
||||
LIVE = ibus_live_test gtk_live_test ipc_live_test daemon_collision_test daemon_failure_test \
|
||||
daemon_restart_test
|
||||
TESTSRC = unit_test.c test_util.c str_test.c hash_test.c trie_test.c \
|
||||
ko_test.c vi_test.c engine_test.c dict_test.c ipc_test.c \
|
||||
@@ -30,6 +32,7 @@ all: $(PROG) $(LIVE)
|
||||
check test: $(PROG) $(LIVE)
|
||||
./$(PROG) $(TESTARGS)
|
||||
./ibus_live_test ../strans ../map
|
||||
./gtk_live_test ../gtk/im-strans.so
|
||||
./ipc_live_test ../strans ../map
|
||||
./daemon_collision_test ../strans ../map
|
||||
./daemon_failure_test ../strans
|
||||
@@ -41,6 +44,10 @@ $(PROG): $(OBJS)
|
||||
ibus_live_test: ibus_live_test.c
|
||||
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g $(DBUS_CFLAGS) -o $@ $< $(DBUS_LIBS)
|
||||
|
||||
gtk_live_test: gtk_live_test.c ../ipc.c ../ipc.h
|
||||
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g -I.. $(GTK_CFLAGS) -o $@ \
|
||||
gtk_live_test.c ../ipc.c $(GTK_LIBS) -pthread
|
||||
|
||||
ipc_live_test: ipc_live_test.c ../ipc.c ../ipc.h
|
||||
$(HOSTCC) -std=c99 -Wall -Wextra -O2 -g -I.. -o $@ ipc_live_test.c ../ipc.c
|
||||
|
||||
|
||||
Reference in New Issue
Block a user