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:
Thomas Wood 2008-05-18 21:33:07 +00:00 committed by Thomas Wood
parent 4edaa68a86
commit e544be375b
2 changed files with 10 additions and 1 deletions

View file

@ -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;