[gnome-flashback] input-sources: fix index prop in GfInputSource



commit 7aea371f4e6528d7603d485c18abe361794755b9
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Sep 22 16:12:40 2015 +0300

    input-sources: fix index prop in GfInputSource

 gnome-flashback/libinput-sources/gf-input-source.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnome-flashback/libinput-sources/gf-input-source.c 
b/gnome-flashback/libinput-sources/gf-input-source.c
index 52afde8..6918c46 100644
--- a/gnome-flashback/libinput-sources/gf-input-source.c
+++ b/gnome-flashback/libinput-sources/gf-input-source.c
@@ -122,7 +122,7 @@ gf_input_source_get_property (GObject    *object,
         break;
 
       case PROP_INDEX:
-        g_value_set_int (value, source->index);
+        g_value_set_uint (value, source->index);
         break;
 
       default:
@@ -164,7 +164,7 @@ gf_input_source_set_property (GObject      *object,
         break;
 
       case PROP_INDEX:
-        source->index = g_value_get_int (value);
+        source->index = g_value_get_uint (value);
         break;
 
       default:
@@ -252,7 +252,7 @@ gf_input_source_class_init (GfInputSourceClass *source_class)
 
   properties[PROP_INDEX] =
     g_param_spec_uint ("index", "Index", "The index of the input source",
-                       0, G_MAXINT, 0,
+                       0, G_MAXUINT, 0,
                        G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE |
                        G_PARAM_STATIC_STRINGS);
 


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