summaryrefslogtreecommitdiff
path: root/hardinfo2/report.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2006-03-07 18:26:23 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2006-03-07 18:26:23 +0000
commitcbd8b0d401add58a06d82c7a5d7fb22b53d80714 (patch)
treeab53ee84bc763deb56a519edc538e48c51140fe9 /hardinfo2/report.c
parentfd6deac8ca43c7f9d47c0829183648d92e26aac8 (diff)
Close #6694 (Crash), fix compilation with GTK+2.6
Diffstat (limited to 'hardinfo2/report.c')
-rw-r--r--hardinfo2/report.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hardinfo2/report.c b/hardinfo2/report.c
index 990abd8b..ca5f1afa 100644
--- a/hardinfo2/report.c
+++ b/hardinfo2/report.c
@@ -194,8 +194,10 @@ report_get_filename(void)
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
NULL);
+#if GTK_CHECK_VERSION(2,8,0)
gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(dialog),
TRUE);
+#endif
gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(dialog),
"hardinfo report.html");