[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-dev] File overwrite notifications


It seems a patch is needed in order to get wx's wxFileDialog to honor wxOVERWRITE_PROMPT flag on GTK+ >= 2.7.3. The patch came from the wx bug system (although I make a simular patch myself), bug


. This neatly explains why Debian was not displaying the overwrite prompt, but everyone else machine were.

Alex: Is there an easy way of see if a patch has found it's way into the wx repository? I guess it hasn't since it's still marked as open.

--- src/gtk/filedlg.cpp.orig	Wed Mar 22 00:42:17 2006
+++ src/gtk/filedlg.cpp	Fri May 12 22:26:50 2006
@@ -206,7 +206,7 @@
-            if (!gtk_check_version(2,7,3))
+            if (!gtk_check_version(2,7,3) && (style & wxOVERWRITE_PROMPT))
                 gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(m_widget), TRUE);