#include "ibusimpl.h"
#include "engineproxy.h"
+#define PROCESS_KEY_EVENT_TIMEOUT (10000)
+
enum {
COMMIT_TEXT,
FORWARD_KEY_EVENT,
retval = ibus_proxy_call_with_reply ((IBusProxy *) engine,
"ProcessKeyEvent",
&pending,
- -1,
+ PROCESS_KEY_EVENT_TIMEOUT,
&error,
G_TYPE_UINT, &keyval,
G_TYPE_UINT, &keycode,
#include "dbusimpl.h"
#include "factoryproxy.h"
+#define REPLY_TIMEOUT (-1)
+
/* functions prototype */
static void bus_factory_proxy_class_init (BusFactoryProxyClass *klass);
static void bus_factory_proxy_init (BusFactoryProxy *factory);
retval = ibus_proxy_call_with_reply ((IBusProxy *) factory,
"CreateEngine",
&pending,
- -1,
+ REPLY_TIMEOUT,
&error,
G_TYPE_STRING, &(desc->name),
G_TYPE_INVALID);