Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pixbuf
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@src.gnome.org>2005-01-13 09:33:09 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-01-13 09:33:09 (GMT)
commit60c1f92549b90d0fdc6ce4e069ed0e25d0fa9689 (patch)
tree86a42097654a4279c45d12f134165844ef216092 /pixbuf
parentbc616a247ff162f3a2cae01eff199630e51d65a0 (diff)
*** empty log message ***
Diffstat (limited to 'pixbuf')
-rw-r--r--pixbuf/pixbuf-document.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/pixbuf/pixbuf-document.c b/pixbuf/pixbuf-document.c
index 01df278..843df3d 100644
--- a/pixbuf/pixbuf-document.c
+++ b/pixbuf/pixbuf-document.c
@@ -20,6 +20,11 @@
#include "pixbuf-document.h"
#include "ev-document-thumbnails.h"
+enum {
+ PROP_0,
+ PROP_TITLE
+};
+
struct _PixbufDocumentClass
{
GObjectClass parent_class;
@@ -186,6 +191,34 @@ pixbuf_document_finalize (GObject *object)
}
static void
+pixbuf_document_set_property (GObject *object,
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec)
+{
+ switch (prop_id)
+ {
+ case PROP_TITLE:
+ /* read only */
+ break;
+ }
+}
+
+static void
+pixbuf_document_get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec)
+{
+ switch (prop_id)
+ {
+ case PROP_TITLE:
+ g_value_set_string (value, NULL);
+ break;
+ }
+}
+
+static void
pixbuf_document_class_init (PixbufDocumentClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
@@ -193,6 +226,10 @@ pixbuf_document_class_init (PixbufDocumentClass *klass)
parent_class = g_type_class_peek_parent (klass);
gobject_class->finalize = pixbuf_document_finalize;
+ gobject_class->get_property = pixbuf_document_get_property;
+ gobject_class->set_property = pixbuf_document_set_property;
+
+ g_object_class_override_property (gobject_class, PROP_TITLE, "title");
}
static void