Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/dvi
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-04-20 23:06:19 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-04-20 23:06:19 (GMT)
commit1a9dc517d24c563078b45a9d1a0c82ef3c710fef (patch)
tree8f5df770957d2cce566733dcabd567f70f54e810 /dvi
parent429224b821ebc694edd283e8a0d23c6b86d8d078 (diff)
Implement dummy get_info to fix crash
Diffstat (limited to 'dvi')
-rw-r--r--dvi/dvi-document.c42
1 files changed, 11 insertions, 31 deletions
diff --git a/dvi/dvi-document.c b/dvi/dvi-document.c
index b9edc9e..61526d2 100644
--- a/dvi/dvi-document.c
+++ b/dvi/dvi-document.c
@@ -198,33 +198,6 @@ dvi_document_finalize (GObject *object)
G_OBJECT_CLASS (dvi_document_parent_class)->finalize (object);
}
-static void
-dvi_document_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec)
-{
- switch (prop_id)
- {
- case PROP_TITLE:
- /* read only */
- break;
- }
-}
-
-static void
-dvi_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
dvi_document_class_init (DviDocumentClass *klass)
@@ -232,10 +205,6 @@ dvi_document_class_init (DviDocumentClass *klass)
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
gobject_class->finalize = dvi_document_finalize;
- gobject_class->get_property = dvi_document_get_property;
- gobject_class->set_property = dvi_document_set_property;
-
- g_object_class_override_property (gobject_class, PROP_TITLE, "title");
}
static gboolean
@@ -244,6 +213,16 @@ dvi_document_can_get_text (EvDocument *document)
return FALSE;
}
+static EvDocumentInfo *
+dvi_document_get_info (EvDocument *document)
+{
+ EvDocumentInfo *info;
+
+ info = g_new0 (EvDocumentInfo, 1);
+
+ return info;
+}
+
static void
dvi_document_document_iface_init (EvDocumentIface *iface)
{
@@ -253,6 +232,7 @@ dvi_document_document_iface_init (EvDocumentIface *iface)
iface->get_n_pages = dvi_document_get_n_pages;
iface->get_page_size = dvi_document_get_page_size;
iface->render_pixbuf = dvi_document_render_pixbuf;
+ iface->get_info = dvi_document_get_info;
}
static void