[gedit] Add missing properties.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Add missing properties.
- Date: Tue, 1 Jun 2010 17:06:09 +0000 (UTC)
commit 86a38d194ec88b6a0e843226048f2c14ba532803
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Jun 1 19:00:09 2010 +0200
Add missing properties.
gedit/gedit-document.c | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index 90cbb21..1921cac 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -415,6 +415,18 @@ gedit_document_set_property (GObject *object,
switch (prop_id)
{
+ case PROP_LOCATION:
+ gedit_document_set_location (doc,
+ g_value_get_object (value));
+ break;
+ case PROP_SHORTNAME:
+ gedit_document_set_short_name_for_display (doc,
+ g_value_get_string (value));
+ break;
+ case PROP_CONTENT_TYPE:
+ gedit_document_set_content_type (doc,
+ g_value_get_string (value));
+ break;
case PROP_ENABLE_SEARCH_HIGHLIGHTING:
gedit_document_set_enable_search_highlighting (doc,
g_value_get_boolean (value));
@@ -427,14 +439,6 @@ gedit_document_set_property (GObject *object,
set_compression_type (doc,
g_value_get_enum (value));
break;
- case PROP_SHORTNAME:
- gedit_document_set_short_name_for_display (doc,
- g_value_get_string (value));
- break;
- case PROP_CONTENT_TYPE:
- gedit_document_set_content_type (doc,
- g_value_get_string (value));
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -502,7 +506,7 @@ gedit_document_class_init (GeditDocumentClass *klass)
"LOCATION",
"The document's location",
G_TYPE_FILE,
- G_PARAM_READABLE |
+ G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, PROP_SHORTNAME,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]