Ah, that's a bug in gedit actually. gedit/gedit-window.c declares the "state" property as GFlags: ……………………g_object_class_install_property (object_class, ………………………………………………………………………………………………………… PROP_STATE, ………………………………………………………………………………………………………… g_param_spec_flags ("state", …………………………………………………………………………………………………………………………………………………… "State", …………………………………………………………………………………………………………………………………………………… "The window's state", …………………………………………………………………………………………………………………………………………………… GEDIT_TYPE_WINDOW_STATE, …………………………………………………………………………………………………………………………………………………… GEDIT_WINDOW_STATE_NORMAL, …………………………………………………………………………………………………………………………………………………… G_PARAM_READABLE | …………………………………………………………………………………………………………………………………………………… G_PARAM_STATIC_STRINGS));
But gedit_window_get_property() calls g_value_set_enum() on the GValue; it should be g_value_set_flags().
Ah, that's a bug in gedit actually. gedit/gedit- window. c declares the "state" property as GFlags: …g_object_ class_install_ property (object_class, ………………… ………………… ………………… ………………… …………… PROP_STATE, ………………… ………………… ………………… ………………… …………… g_param_spec_flags ("state", ………………… ………………… ………………… ………………… ………………… ………………… ………………… "State", ………………… ………………… ………………… ………………… ………………… ………………… ………………… "The window's state", ………………… ………………… ………………… ………………… ………………… ………………… ………………… GEDIT_TYPE_ WINDOW_ STATE, ………………… ………………… ………………… ………………… ………………… ………………… ………………… GEDIT_WINDOW_ STATE_NORMAL, ………………… ………………… ………………… ………………… ………………… ………………… ………………… G_PARAM_READABLE | ………………… ………………… ………………… ………………… ………………… ………………… ………………… G_PARAM_ STATIC_ STRINGS) );
…………………
…………………
…………………
…………………
…………………
…………………
…………………
…………………
…………………
But gedit_window_ get_property( ) calls g_value_set_enum() on the GValue; it should be g_value_ set_flags( ).