~smspillaz/xig/xig.disconnect-signals

« back to all changes in this revision

Viewing changes to src/xig-codec-logger.c

  • Committer: Robert Ancell
  • Date: 2012-01-06 02:41:17 UTC
  • Revision ID: robert.ancell@canonical.com-20120106024117-rsf8h2t7x1o9lxzc
Improve logging

Show diffs side-by-side

added added

removed removed

Lines of Context:
777
777
query_pointer_reply_cb (XigCodec *codec, XigQueryPointerReply *message, XigCodecLogger *logger)
778
778
{
779
779
    gchar *text;
780
 
    text = g_strdup_printf ("QueryPointer");
 
780
    text = g_strdup_printf ("QueryPointer same-screen=%s root=0x%08X child=0x%08X root-x=%d root-y=%d win-x=%d win-y=%d mask=0x%04X",
 
781
                            message->same_screen ? "true" : "false",
 
782
                            message->root,
 
783
                            message->child,
 
784
                            message->root_x,
 
785
                            message->root_y,
 
786
                            message->win_x,
 
787
                            message->win_y,
 
788
                            message->mask);
781
789
    XIG_CODEC_LOGGER_GET_CLASS (logger)->log_reply (logger, text);
782
790
    g_free (text);
783
791
}
2210
2218
BIGREQ_enable_cb (XigCodec *codec, XigBIGREQEnable *message, XigCodecLogger *logger)
2211
2219
{
2212
2220
    gchar *text;
2213
 
    text = g_strdup_printf ("BIG-REQUESTS-Enable");
 
2221
    text = g_strdup_printf ("BIGREQ-Enable");
2214
2222
    XIG_CODEC_LOGGER_GET_CLASS (logger)->log_request (logger, text);
2215
2223
    g_free (text);
2216
2224
}
2219
2227
BIGREQ_enable_reply_cb (XigCodec *codec, XigBIGREQEnableReply *message, XigCodecLogger *logger)
2220
2228
{
2221
2229
    gchar *text;
2222
 
    text = g_strdup_printf ("BIG-REQUESTS-Enable maximum-request-length=%u", message->maximum_request_length);
 
2230
    text = g_strdup_printf ("BIGREQ-Enable maximum-request-length=%u", message->maximum_request_length);
2223
2231
    XIG_CODEC_LOGGER_GET_CLASS (logger)->log_reply (logger, text);
2224
2232
    g_free (text);
2225
2233
}