summaryrefslogtreecommitdiff
path: root/glib/poppler-annot.cc
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2011-03-28 17:43:53 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2011-03-28 17:43:53 +0200
commitae5b9cf884ce38dde409c3e5b0f6c46f7d6327d2 (patch)
treee925de10843cb20b80fa975ce273c06b1d29010f /glib/poppler-annot.cc
parentb7edd4c93539585652961ecf2db9c4462415c8bc (diff)
Revert "Patch for embedding videos in to the pdf"
This reverts commit 66575c990f379871e4b796befc899de178332670. It introduces new API to glib frontend that is wrong and will be changed soon.
Diffstat (limited to 'glib/poppler-annot.cc')
-rw-r--r--glib/poppler-annot.cc33
1 files changed, 0 insertions, 33 deletions
diff --git a/glib/poppler-annot.cc b/glib/poppler-annot.cc
index c714288f..62a0879c 100644
--- a/glib/poppler-annot.cc
+++ b/glib/poppler-annot.cc
@@ -332,39 +332,6 @@ _poppler_annot_screen_new (Annot *annot)
return poppler_annot;
}
-/**
- * poppler_annot_screen_new:
- * @doc: a #PopplerDocument
- * @rect: a #PopplerRectangle
- * @video_file: pass the path of the video to be embed
- * @mimetype: pass the mimetype of the video to put in the Media Clip Dictionary
- * @img_file: pass png/jpeg image file for poster
- *
- * Creates a new Screen annotation that will be
- * located on @rect when added to a page. See
- * poppler_page_add_annot()
- *
- * Return value: A newly created #PopplerAnnotScreen annotation
- *
- * Since: 0.18
- */
-PopplerAnnot *
-poppler_annot_screen_new (PopplerDocument *doc,
- PopplerRectangle *rect,
- const char* video_file,
- const char* mimetype,
- const char* img_file)
-{
- AnnotScreen *annot;
- PDFRectangle pdf_rect(rect->x1, rect->y1,
- rect->x2, rect->y2);
-
- annot = new AnnotScreen (doc->doc->getXRef(), &pdf_rect, doc->doc->getCatalog());
- if (annot->setAction(video_file, mimetype, img_file))
- return _poppler_annot_screen_new ((Annot*)annot);
- else
- return NULL;
-}
/* Public methods */
/**