]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-utils.h
Copy-paste g_file_set_contents to keep compatibility with gtk 2.6
[evince.git] / shell / ev-utils.h
index 084a2851b3cac38971067edae8ebd559ed7c72cf..9875a95bd30a05dc933142fa54ef37ad2d07334c 100644 (file)
@@ -28,6 +28,14 @@ G_BEGIN_DECLS
 GdkPixbuf *ev_pixbuf_add_shadow (GdkPixbuf *src, int size,
                                 int x_offset, int y_offset, double opacity);
 
+#ifndef HAVE_G_FILE_SET_CONTENTS
+
+gboolean   ev_file_set_contents (const gchar *filename,
+                                const gchar *contents,
+                                gssize      length,
+                                GError    **error);
+#endif /* HAVE_G_FILE_SET_CONTENTS */
+
 G_END_DECLS
 
 #endif /* __EV_VIEW_H__ */