diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2010-11-08 01:12:55 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2010-11-24 02:34:12 +0100 |
commit | bb12b6b05f131637c400c042a2c3f4ee5d596c8b (patch) | |
tree | 5454461b0dc22f72ad34b910b63d41d7c474b975 /gtk/channel-inputs.c | |
parent | cd88cdc6cb890d5d5deb9ce4ff9ff902dc5791d2 (diff) |
gtk: use g_log functions instead of fprintf and custom handler
Diffstat (limited to 'gtk/channel-inputs.c')
-rw-r--r-- | gtk/channel-inputs.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gtk/channel-inputs.c b/gtk/channel-inputs.c index 0194288..471c1b0 100644 --- a/gtk/channel-inputs.c +++ b/gtk/channel-inputs.c @@ -132,9 +132,7 @@ static void send_position(SpiceInputsChannel *channel) if (c->dpy == -1) return; -#if 0 - fprintf(stderr, "%s: +%d+%d\n", __FUNCTION__, c->x, c->y); -#endif + g_debug("%s: +%d+%d", __FUNCTION__, c->x, c->y); position.buttons_state = c->bs; position.x = c->x; position.y = c->y; @@ -291,9 +289,7 @@ void spice_inputs_key_press(SpiceInputsChannel *channel, guint scancode) SpiceMsgcKeyDown down; spice_msg_out *msg; -#if 0 - fprintf(stderr, "%s: scancode %d\n", __FUNCTION__, scancode); -#endif + g_debug("%s: scancode %d", __FUNCTION__, scancode); if (scancode < 0x100) { down.code = scancode; } else { @@ -312,9 +308,7 @@ void spice_inputs_key_release(SpiceInputsChannel *channel, guint scancode) SpiceMsgcKeyUp up; spice_msg_out *msg; -#if 0 - fprintf(stderr, "%s: scancode %d\n", __FUNCTION__, scancode); -#endif + g_debug("%s: scancode %d", __FUNCTION__, scancode); if (scancode < 0x100) { up.code = scancode | 0x80; } else { |