Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2005-07-08 11:36:16 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-07-08 11:36:16 (GMT)
commit0848b6e8ad61c6074c73b0be2933a2c943e5fc51 (patch)
treef75a711d9c3c3f6cd14b2dfc5aade56f235f9eed
parentae0d3afcc39b13f01e0fbac74cf583f67a229382 (diff)
Do not try to create the object if type is invalid.
2005-07-08 Marco Pesenti Gritti <marco@gnome.org> * backend/ev-document-factory.c: (ev_document_factory_get_document): Do not try to create the object if type is invalid.
-rw-r--r--ChangeLog8
-rw-r--r--backend/ev-document-factory.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index aa1a2d5..bc4120c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-07-08 Marco Pesenti Gritti <marco@gnome.org>
+
+ * backend/ev-document-factory.c:
+ (ev_document_factory_get_document):
+
+ Do not try to create the object if type
+ is invalid.
+
2005-07-08 Marco Pesenti Gritti <mpg@redhat.com>
* ps/ps-document.c: (ps_document_dispose),
diff --git a/backend/ev-document-factory.c b/backend/ev-document-factory.c
index 251ede3..e73344a 100644
--- a/backend/ev-document-factory.c
+++ b/backend/ev-document-factory.c
@@ -138,7 +138,7 @@ ev_document_factory_get_document (const char *mime_type)
type = ev_document_type_get_from_mime (mime_type);
- if (type != G_TYPE_NONE) {
+ if (type != G_TYPE_INVALID) {
return g_object_new (type, NULL);
}