mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
bindings: Add more variant types
Also marshal types that the code in gtkbindings.c doesn't use. These will be used by gtk_widget_class_add_binding_signal().
This commit is contained in:
parent
e19b49f5aa
commit
c7f10e570e
@ -541,10 +541,22 @@ binding_compose_params (GObject *object,
|
||||
|
||||
switch ((guint) g_variant_classify (tmp_variant))
|
||||
{
|
||||
case G_VARIANT_CLASS_BOOLEAN:
|
||||
g_value_init (&tmp_value, G_TYPE_BOOLEAN);
|
||||
g_value_set_boolean (&tmp_value, g_variant_get_boolean (tmp_variant));
|
||||
break;
|
||||
case G_VARIANT_CLASS_DOUBLE:
|
||||
g_value_init (&tmp_value, G_TYPE_DOUBLE);
|
||||
g_value_set_double (&tmp_value, g_variant_get_double (tmp_variant));
|
||||
break;
|
||||
case G_VARIANT_CLASS_INT32:
|
||||
g_value_init (&tmp_value, G_TYPE_LONG);
|
||||
g_value_set_long (&tmp_value, g_variant_get_int32 (tmp_variant));
|
||||
break;
|
||||
case G_VARIANT_CLASS_UINT32:
|
||||
g_value_init (&tmp_value, G_TYPE_LONG);
|
||||
g_value_set_long (&tmp_value, g_variant_get_uint32 (tmp_variant));
|
||||
break;
|
||||
case G_VARIANT_CLASS_INT64:
|
||||
g_value_init (&tmp_value, G_TYPE_LONG);
|
||||
g_value_set_long (&tmp_value, g_variant_get_int64 (tmp_variant));
|
||||
|
Loading…
Reference in New Issue
Block a user