| Top |
GladeEditorPropertyGladeEditorProperty — A generic widget to edit a GladeProperty. |
| #define | GLADE_MAKE_EPROP_TYPE() |
| void | glade_editor_property_load () |
| void | glade_editor_property_load_by_widget () |
| void | glade_editor_property_commit () |
| gchar * | custom-text | Read / Write |
| gboolean | disable-check | Read / Write / Construct |
| gpointer | property-class | Read / Write / Construct Only |
| gboolean | use-command | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GladeEditorProperty
GladeEditorProperty implements AtkImplementorIface, GtkBuildable, GtkOrientable and GladeEditable.
The GladeEditorProperty is a factory that will create the correct control for the GladePropertyClass it was created for and provides a simple unified api to them.
void glade_editor_property_load (GladeEditorProperty *eprop,GladeProperty *property);
Loads property
values into eprop
and connects.
(the editor property will watch the property's value
until its loaded with another property or NULL)
void glade_editor_property_load_by_widget (GladeEditorProperty *eprop,GladeWidget *widget);
Convenience function to load the appropriate GladeProperty into
eprop
from widget
void glade_editor_property_commit (GladeEditorProperty *eprop,GValue *value);
Commits value
to the property currently being edited by eprop
.
“custom-text” property“custom-text” gchar *
Custom Text to display in the property label.
Flags: Read / Write
Default value: NULL
“disable-check” property“disable-check” gboolean
Whether to explicitly disable the check button.
Flags: Read / Write / Construct
Default value: FALSE
“property-class” property“property-class” gpointer
The GladePropertyClass this GladeEditorProperty was created for.
Flags: Read / Write / Construct Only
“use-command” property“use-command” gboolean
Whether we should use the command API for the undo/redo stack.
Flags: Read / Write
Default value: FALSE
“commit” signalvoid user_function (GladeEditorProperty *gladeeditorproperty, gpointer arg1, gpointer user_data)
Emitted when a property's value is committed, can be useful to serialize commands before and after the property's commit command from custom editors.
gladeeditorproperty |
the GladeEditorProperty which changed value |
|
arg1 |
the new GValue to commit. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“value-changed” signalvoid user_function (GladeEditorProperty *gladeeditorproperty, GladeProperty *arg1, gpointer user_data)
Emitted when a contained property changes value
gladeeditorproperty |
the GladeEditorProperty which changed value |
|
arg1 |
the GladeProperty that's value changed. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last