clutter/text: Add missing property getter/setter
The :input-purpose and :input-hints properties were added without actually handling the get/set operations, whoops. All code uses the (working) methods, so this only fixes expectations, not an actual bug :-) Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2659>
This commit is contained in:
parent
100c02e514
commit
62fd18030f
@ -1636,6 +1636,14 @@ clutter_text_set_property (GObject *gobject,
|
|||||||
clutter_text_set_selected_text_color (self, clutter_value_get_color (value));
|
clutter_text_set_selected_text_color (self, clutter_value_get_color (value));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PROP_INPUT_PURPOSE:
|
||||||
|
clutter_text_set_input_purpose (self, g_value_get_enum (value));
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PROP_INPUT_HINTS:
|
||||||
|
clutter_text_set_input_hints (self, g_value_get_enum (value));
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
|
||||||
}
|
}
|
||||||
@ -1765,6 +1773,14 @@ clutter_text_get_property (GObject *gobject,
|
|||||||
g_value_set_boolean (value, priv->selected_text_color_set);
|
g_value_set_boolean (value, priv->selected_text_color_set);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case PROP_INPUT_PURPOSE:
|
||||||
|
g_value_set_enum (value, priv->input_purpose);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PROP_INPUT_HINTS:
|
||||||
|
g_value_set_enum (value, priv->input_hints);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user