Commit 3d31c2b1 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

2007-05-27 Carlos Garcia Campos <carlosgc@gnome.org>

	* glib/poppler-page.cc:
	* glib/poppler-page.h:
	Add missing image mapping type definition.
parent 8284a769
2007-05-27 Carlos Garcia Campos <carlosgc@gnome.org>
* glib/poppler-page.cc:
* glib/poppler-page.h:
Add missing image mapping type definition.
2007-05-27 Albert Astals Cid <aacid@kde.org>
* poppler-qt.pc.in:
......
......@@ -958,10 +958,9 @@ poppler_page_get_image_output_dev (PopplerPage *page)
gFalse, /* useMediaBox */
gTrue, /* Crop */
-1, -1, -1, -1,
NULL, /* links */
gFalse, /* printing */
page->document->doc->getCatalog (),
NULL, NULL, NULL, NULL);
page->page->display(page->gfx);
}
......@@ -1337,12 +1336,55 @@ poppler_link_mapping_copy (PopplerLinkMapping *mapping)
void
poppler_link_mapping_free (PopplerLinkMapping *mapping)
{
if (mapping)
if (mapping->action)
poppler_action_free (mapping->action);
g_free (mapping);
}
/* Poppler Image mapping type */
GType
poppler_image_mapping_get_type (void)
{
static GType our_type = 0;
if (our_type == 0)
our_type = g_boxed_type_register_static ("PopplerImageMapping",
(GBoxedCopyFunc) poppler_image_mapping_copy,
(GBoxedFreeFunc) poppler_image_mapping_free);
return our_type;
}
PopplerImageMapping *
poppler_image_mapping_new (void)
{
return (PopplerImageMapping *) g_new0 (PopplerImageMapping, 1);
}
PopplerImageMapping *
poppler_image_mapping_copy (PopplerImageMapping *mapping)
{
PopplerImageMapping *new_mapping;
new_mapping = poppler_image_mapping_new ();
*new_mapping = *mapping;
if (new_mapping->image)
new_mapping->image = gdk_pixbuf_copy (new_mapping->image);
return new_mapping;
}
void
poppler_image_mapping_free (PopplerImageMapping *mapping)
{
if (mapping->image)
g_object_unref (mapping->image);
g_free (mapping);
}
/* Page Transition */
GType
poppler_page_transition (void)
......
......@@ -158,6 +158,11 @@ struct _PopplerImageMapping
GdkPixbuf *image;
};
GType poppler_image_mapping_get_type (void) G_GNUC_CONST;
PopplerImageMapping *poppler_image_mapping_new (void);
PopplerImageMapping *poppler_image_mapping_copy (PopplerImageMapping *mapping);
void poppler_image_mapping_free (PopplerImageMapping *mapping);
/* FormField */
#define POPPLER_TYPE_FORM_FIELD (poppler_form_field_get_type ())
struct _PopplerTextField
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment