summaryrefslogtreecommitdiff
path: root/gladeui/glade-command.h
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2013-04-11 15:49:42 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2013-04-11 15:49:42 +0900
commit8b98bc217b60f7f7fd39d2c3a4fa4cca7a01e626 (patch)
treeacada7832cc739a280270a5da0819d063e7a8eda /gladeui/glade-command.h
parentd457c4fa838ce0a31d7518deb7a3acf9970b7dd7 (diff)
downloadglade-8b98bc217b60f7f7fd39d2c3a4fa4cca7a01e626.tar.gz
GladeCommand/GladeEditorProperty: Make the enabled state of a property undoable.
Now that the enabled state of a property causes Glade's xml output to change, it must absolutely be undoable (enabled optional properties are saved regardless of default value).
Diffstat (limited to 'gladeui/glade-command.h')
-rw-r--r--gladeui/glade-command.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/gladeui/glade-command.h b/gladeui/glade-command.h
index ddae77b0..8fb6705d 100644
--- a/gladeui/glade-command.h
+++ b/gladeui/glade-command.h
@@ -93,14 +93,17 @@ void glade_command_set_project_template(GladeProject *project,
/************************** properties *********************************/
-void glade_command_set_property (GladeProperty *property,
+void glade_command_set_property_enabled(GladeProperty *property,
+ gboolean enabled);
+
+void glade_command_set_property (GladeProperty *property,
...);
-void glade_command_set_property_value (GladeProperty *property,
+void glade_command_set_property_value (GladeProperty *property,
const GValue *value);
-void glade_command_set_properties (GladeProperty *property,
- const GValue *old_value,
+void glade_command_set_properties (GladeProperty *property,
+ const GValue *old_value,
const GValue *new_value,
...);