Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-08-03 05:49:48 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-08-03 05:49:48 (GMT)
commit5cc8e92ad9fb04792682b474a670aaa803666f78 (patch)
tree8410db4dff1ac44f5232437d7a9a478d83f88679 /shell/ev-window.c
parent7e15d3de9bdacdb70789a1602ddfad00faac1963 (diff)
Copy-paste g_file_set_contents to keep compatibility with gtk 2.6
Fix for bug 312228
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index cef9c24..e039781 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -61,6 +61,7 @@
#include "ev-application.h"
#include "ev-stock-icons.h"
#include "ev-metadata-manager.h"
+#include "ev-file-helpers.h"
#include <poppler.h>
@@ -1334,8 +1335,12 @@ save_print_config_to_file (GnomePrintConfig *config)
file_name = g_build_filename (ev_dot_dir (),
PRINT_CONFIG_FILENAME,
NULL);
-
+
+#ifdef HAVE_G_FILE_SET_CONTENTS
g_file_set_contents (file_name, str, -1, NULL);
+#else
+ ev_file_set_contents (file_name, str, -1, NULL);
+#endif
g_free (file_name);
g_free (str);