Make compiler happier
This commit is contained in:
@ -84,7 +84,9 @@ struct _EekboardContextServicePrivate {
|
||||
|
||||
G_DEFINE_TYPE (EekboardContextService, eekboard_context_service, G_TYPE_OBJECT);
|
||||
|
||||
#if 0 // ===== @raisins: -Wunused-variable =====
|
||||
static Display *display = NULL;
|
||||
#endif // ===== @raisins: -Wunused-variable =====
|
||||
|
||||
static EekKeyboard *
|
||||
eekboard_context_service_real_create_keyboard (EekboardContextService *self,
|
||||
@ -483,6 +485,7 @@ eekboard_context_service_init (EekboardContextService *self)
|
||||
}
|
||||
}
|
||||
|
||||
#if 0 // ===== @raisins: -Wunused-function =====
|
||||
static gboolean on_repeat_timeout (EekboardContextService *context);
|
||||
|
||||
static gboolean
|
||||
@ -501,7 +504,9 @@ on_repeat_timeout (EekboardContextService *context)
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
#endif // ===== @raisins: -Wunused-function =====
|
||||
|
||||
#if 0 // ===== @raisins: -Wunused-function =====
|
||||
static gboolean
|
||||
on_repeat_timeout_init (EekboardContextService *context)
|
||||
{
|
||||
@ -527,6 +532,7 @@ on_repeat_timeout_init (EekboardContextService *context)
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
#endif // ===== @raisins: -Wunused-function =====
|
||||
|
||||
/**
|
||||
* eekboard_context_service_enable:
|
||||
|
||||
@ -78,12 +78,15 @@ replace_keycode (SeatEmitter *emitter,
|
||||
guint keycode,
|
||||
guint *keysym)
|
||||
{
|
||||
#if 0 // ===== @raisins: -Wunused-variable =====
|
||||
GdkDisplay *display = gdk_display_get_default ();
|
||||
//Display *xdisplay = GDK_DISPLAY_XDISPLAY (display);
|
||||
guint old_keysym;
|
||||
int keysyms_per_keycode;
|
||||
KeySym *syms;
|
||||
return TRUE; // FIXME: no xkb allocated at the moment, pretending all is fine
|
||||
#endif // ===== @raisins: -Wunused-variable =====
|
||||
|
||||
return TRUE; // FIXME: no xkb allocated at the moment, pretending all is fine
|
||||
|
||||
g_return_val_if_fail (emitter->xkb->min_key_code <= keycode &&
|
||||
keycode <= emitter->xkb->max_key_code,
|
||||
FALSE);
|
||||
|
||||
Reference in New Issue
Block a user