+2005-01-12 Jeff Muizelaar <jeff@nit.ca>
+
+ * pixbuf/pixbuf-document.c: (pixbuf_document_class_init),
+ (pixbuf_document_set_property), (pixbuf_document_get_property):
+
+ implement get/set properties
+
+2005-01-12 Jeff Muizelaar <jeff@nit.ca>
+
+ * pdf/xpdf/pdf-document.cc: (pdf_info_dict_get_string):
+
+ return NULL instead of "Unknown", letting the title get set to
+ the filename when the pdf has no title.
+
+2005-01-11 Marco Pesenti Gritti <marco@gnome.org>
+
+ * ps/ps-document.c: (ps_document_get_page_count),
+ (ps_document_goto_page):
+
2005-01-11 Marco Pesenti Gritti <marco@gnome.org>
* shell/ev-history.c: (ev_history_get_property),
if (!info_dict->lookup ((gchar *)key, &obj)->isString ()) {
obj.free ();
- return g_strdup (_("Unknown"));
+ return NULL;
}
value = obj.getString ();
if(gs->structured_doc)
return gs->doc->numpages;
else
- return G_MAXINT;
+ return 1;
}
else
return 0;
if(page < 0)
page = 0;
+ ps_document_set_page_size(gs, -1, page);
+
if(gs->structured_doc && gs->doc) {
if(page >= gs->doc->numpages)
page = gs->doc->numpages - 1;
gs->changed = TRUE;
}
- ps_document_set_page_size(gs, -1, page);
-
gs->changed = FALSE;
if(is_interpreter_ready(gs)) {