[dia] Bug 613133 - gvfs support in open/save file dialog
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] Bug 613133 - gvfs support in open/save file dialog
- Date: Fri, 30 Jul 2010 18:01:28 +0000 (UTC)
commit 54b5d01ec6166e9365e4d996a55632cfc939cf51
Author: Hans Breuer <hans breuer org>
Date: Sun Jul 4 14:08:57 2010 +0200
Bug 613133 - gvfs support in open/save file dialog
Remove the old workaround (2004-11-26
... Also explicit DONT choose gnome-vfs backend cause its
threading appears to crash Dia - at least in GNOME build,
see bug #159558 ...) - it probably became obsolete just a
few days later, by always calling g_thread_init() during
Dia startup. This should be enough to at least show gvfs
links in the file dialog.
app/filedlg.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/app/filedlg.c b/app/filedlg.c
index 07e2299..a5f9c37 100644
--- a/app/filedlg.c
+++ b/app/filedlg.c
@@ -30,7 +30,6 @@
#include <stdio.h>
#include <glib/gstdio.h>
-#undef GTK_DISABLE_DEPRECATED /* gtk_file_chooser_dialog_new_with_backend */
#include <gtk/gtk.h>
#include "intl.h"
#include "filter.h"
@@ -278,9 +277,8 @@ file_open_callback(gpointer data, guint action, GtkWidget *widget)
parent_window = GTK_WINDOW(interface_get_toolbox_shell());
}
persistence_register_integer ("import-filter", 0);
- opendlg = gtk_file_chooser_dialog_new_with_backend(_("Open Diagram"), parent_window,
+ opendlg = gtk_file_chooser_dialog_new(_("Open Diagram"), parent_window,
GTK_FILE_CHOOSER_ACTION_OPEN,
- "default", /* default, not gnome-vfs */
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
NULL);
@@ -437,10 +435,9 @@ file_save_as_callback(gpointer data, guint action, GtkWidget *widget)
if (!savedlg) {
GtkWidget *compressbutton;
- savedlg = gtk_file_chooser_dialog_new_with_backend(_("Save Diagram"),
+ savedlg = gtk_file_chooser_dialog_new(_("Save Diagram"),
GTK_WINDOW(ddisp->shell),
GTK_FILE_CHOOSER_ACTION_SAVE,
- "gtk+", /* default, not gnome-vfs */
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
NULL);
@@ -702,10 +699,9 @@ file_export_callback(gpointer data, guint action, GtkWidget *widget)
if (!exportdlg) {
persistence_register_integer ("export-filter", 0);
- exportdlg = gtk_file_chooser_dialog_new_with_backend(_("Export Diagram"),
+ exportdlg = gtk_file_chooser_dialog_new(_("Export Diagram"),
GTK_WINDOW(ddisp->shell),
GTK_FILE_CHOOSER_ACTION_SAVE,
- "gtk+", /* default, not gnome-vfs */
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]