pidgin/gtkutils.c

changeset 27820
dbce81931c2b
parent 27695
c56aeb9f715a
child 28234
4d001b258a59
equal deleted inserted replaced
27819:48b1ba24def3 27820:dbce81931c2b
3734 temp_file, error->message); 3734 temp_file, error->message);
3735 g_error_free(error); 3735 g_error_free(error);
3736 return; 3736 return;
3737 } 3737 }
3738 3738
3739 if (!g_file_set_contents(file, contents, length, &error)) { 3739 if (!purple_util_write_data_to_file_absolute(file, contents, length)) {
3740 purple_debug_error("gtkutils", "Unable to write contents to %s: %s\n", 3740 purple_debug_error("gtkutils", "Unable to write contents to %s\n",
3741 file, error->message); 3741 file);
3742 g_error_free(error);
3743 } 3742 }
3744 } 3743 }
3745 3744
3746 static gboolean 3745 static gboolean
3747 save_file_cb(GtkWidget *item, const char *url) 3746 save_file_cb(GtkWidget *item, const char *url)

mercurial