Allow the data property to be read as well as written.
2008-05-18 Thomas Wood <thos@gnome.org> * gconf-property-editor.c: (gconf_property_editor_class_init), (gconf_property_editor_get_prop): Allow the data property to be read as well as written. svn path=/trunk/; revision=8718
This commit is contained in:
parent
4edaa68a86
commit
e544be375b
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-05-18 Thomas Wood <thos@gnome.org>
|
||||
|
||||
* gconf-property-editor.c: (gconf_property_editor_class_init),
|
||||
(gconf_property_editor_get_prop): Allow the data property to be
|
||||
read as well as written.
|
||||
|
||||
2008-05-18 Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* gconf-property-editor.c: (gconf_property_editor_init),
|
||||
|
|
|
@ -179,7 +179,7 @@ gconf_property_editor_class_init (GConfPropertyEditorClass *class)
|
|||
g_param_spec_pointer ("data",
|
||||
_("Property editor object data"),
|
||||
_("Custom data required by the specific property editor"),
|
||||
G_PARAM_WRITABLE));
|
||||
G_PARAM_READWRITE));
|
||||
|
||||
g_object_class_install_property
|
||||
(object_class, PROP_DATA_FREE_CB,
|
||||
|
@ -276,6 +276,9 @@ gconf_property_editor_get_prop (GObject *object,
|
|||
g_value_set_pointer (value, peditor->p->changeset);
|
||||
break;
|
||||
|
||||
case PROP_DATA:
|
||||
g_value_set_pointer (value, peditor->p->data);
|
||||
break;
|
||||
default:
|
||||
g_warning ("Bad argument get");
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue