gpointing-device-settings r203 - trunk/src



Author: hiikezoe
Date: Wed Mar 11 03:18:59 2009
New Revision: 203
URL: http://svn.gnome.org/viewvc/gpointing-device-settings?rev=203&view=rev

Log:
set format type mismatch.

Modified:
   trunk/src/gpds-xinput.c

Modified: trunk/src/gpds-xinput.c
==============================================================================
--- trunk/src/gpds-xinput.c	(original)
+++ trunk/src/gpds-xinput.c	Wed Mar 11 03:18:59 2009
@@ -439,6 +439,12 @@
     }
 
     if (actual_type != XA_INTEGER) {
+        g_set_error(error,
+                    GPDS_XINPUT_ERROR,
+                    GPDS_XINPUT_ERROR_FORMAT_TYPE_MISMATCH,
+                    _("Format type is mismatched.\n%s is specified but %s returns."),
+                    gdk_x11_get_xatom_name(XA_INTEGER), 
+                    gdk_x11_get_xatom_name(actual_type));
         XFree(data);
         return FALSE;
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]