* configure.ac:
* shell/ev-window.c: (ev_window_cmd_save_as):
Ask filechooser to confirm overwrite. Fix for the bug #328266.
Thanks to Gary Coady <gary@lyranthe.org>
+2006-02-18 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
+
+ * configure.ac:
+ * shell/ev-window.c: (ev_window_cmd_save_as):
+
+ Ask filechooser to confirm overwrite. Fix for the bug #328266.
+ Thanks to Gary Coady <gary@lyranthe.org>
+
2006-02-18 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* shell/ev-print-job.c: (idle_print_handler):
AC_CHECK_FUNCS(gtk_icon_view_get_visible_range)
AC_CHECK_FUNCS(gtk_window_present_with_time)
AC_CHECK_FUNCS(g_file_set_contents)
+AC_CHECK_FUNCS(gtk_file_chooser_set_do_overwrite_confirmation)
LIBS=$evince_save_LIBS
dnl GConf configuration
ev_document_types_add_filters (fc, ev_window->priv->document);
gtk_dialog_set_default_response (GTK_DIALOG (fc), GTK_RESPONSE_OK);
-
+
+#ifdef HAVE_GTK_FILE_CHOOSER_SET_DO_OVERWRITE_CONFIRMATION
+ gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER (fc), TRUE);
+#endif
file_name = gnome_vfs_format_uri_for_display (ev_window->priv->uri);
base_name = g_path_get_basename (file_name);
gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (fc), base_name);