]> www.fi.muni.cz Git - evince.git/blobdiff - libdocument/ev-attachment.h
Add code to catch backends incorrectly implementing the load vfunc.
[evince.git] / libdocument / ev-attachment.h
index 994b65499c267c9ca3e0f77328ada58317e18a3f..ccc41ba2e0689020f26d750ef190f6d558ecf315 100644 (file)
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#if !defined (__EV_EVINCE_DOCUMENT_H_INSIDE__) && !defined (EVINCE_COMPILATION)
+#error "Only <evince-document.h> can be included directly."
+#endif
+
 #ifndef __EV_ATTACHMENT_H__
 #define __EV_ATTACHMENT_H__
 
 #include <glib-object.h>
+#include <gio/gio.h>
 
 G_BEGIN_DECLS
 
@@ -62,9 +67,11 @@ GTime        ev_attachment_get_modification_date (EvAttachment *attachment);
 GTime        ev_attachment_get_creation_date     (EvAttachment *attachment);
 const gchar *ev_attachment_get_mime_type         (EvAttachment *attachment);
 gboolean     ev_attachment_save                  (EvAttachment *attachment,
-                                                 const gchar  *uri,
+                                                 GFile        *file,
                                                  GError      **error);
 gboolean     ev_attachment_open                  (EvAttachment *attachment,
+                                                 GdkScreen    *screen,
+                                                 guint32       timestamp,
                                                  GError      **error);
 
 G_END_DECLS