X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Fgsettings-mapping.c;h=12b7f34487770272b34585487d8aafcc74d88729;hb=627b49b39039d43a784fa9890f473d1ca8d52417;hp=fda74635c839f3d2b830e65205c7059550b783dc;hpb=63adeda0861a26b38ec0adc76255666554c18951;p=platform%2Fupstream%2Fglib.git diff --git a/gio/gsettings-mapping.c b/gio/gsettings-mapping.c index fda7463..12b7f34 100644 --- a/gio/gsettings-mapping.c +++ b/gio/gsettings-mapping.c @@ -12,9 +12,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library; if not, see . * * Author: Vincent Untz */ @@ -346,7 +344,7 @@ g_settings_set_mapping (const GValue *value, if (g_variant_type_equal (expected_type, G_VARIANT_TYPE_BYTE)) { if (G_VALUE_HOLDS_CHAR (value)) - return g_variant_new_byte (g_value_get_char (value)); + return g_variant_new_byte (g_value_get_schar (value)); else return g_variant_new_byte (g_value_get_uchar (value)); } @@ -453,7 +451,7 @@ g_settings_get_mapping (GValue *value, if (G_VALUE_HOLDS_UCHAR (value)) g_value_set_uchar (value, g_variant_get_byte (variant)); else if (G_VALUE_HOLDS_CHAR (value)) - g_value_set_char (value, (gchar) g_variant_get_byte (variant)); + g_value_set_schar (value, (gint8)g_variant_get_byte (variant)); else return FALSE; return TRUE;