aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-file-chooser.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-02-27 22:50:01 +0800
committerChristian Persch <chpe@src.gnome.org>2004-02-27 22:50:01 +0800
commitb19f5097e2c7c2a433f48064346685cfc89a16ce (patch)
treeb1be8cb03a9a023578f3b9c8802a4801b5eadf56 /lib/ephy-file-chooser.c
parent9f59023c308b583478e4519cf8d08419db4361b0 (diff)
downloadgsoc2013-epiphany-b19f5097e2c7c2a433f48064346685cfc89a16ce.tar
gsoc2013-epiphany-b19f5097e2c7c2a433f48064346685cfc89a16ce.tar.gz
gsoc2013-epiphany-b19f5097e2c7c2a433f48064346685cfc89a16ce.tar.bz2
gsoc2013-epiphany-b19f5097e2c7c2a433f48064346685cfc89a16ce.tar.lz
gsoc2013-epiphany-b19f5097e2c7c2a433f48064346685cfc89a16ce.tar.xz
gsoc2013-epiphany-b19f5097e2c7c2a433f48064346685cfc89a16ce.tar.zst
gsoc2013-epiphany-b19f5097e2c7c2a433f48064346685cfc89a16ce.zip
Fix for gtk+ filechooser API change.
2004-02-27 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/FilePicker.cpp: * lib/ephy-file-chooser.c: (ephy_file_chooser_init), (ephy_file_chooser_new): * src/prefs-dialog.c: (prefs_download_path_button_clicked_cb): Fix for gtk+ filechooser API change.
Diffstat (limited to 'lib/ephy-file-chooser.c')
-rw-r--r--lib/ephy-file-chooser.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ephy-file-chooser.c b/lib/ephy-file-chooser.c
index 15e57b7b9..15c764d48 100644
--- a/lib/ephy-file-chooser.c
+++ b/lib/ephy-file-chooser.c
@@ -101,7 +101,7 @@ ephy_file_chooser_init (EphyFileChooser *dialog)
dialog->priv->persist_key = NULL;
ephy_state_add_window (GTK_WIDGET (dialog), "file_chooser",
- 400, 300,
+ -1,-1,
EPHY_STATE_WINDOW_SAVE_SIZE |
EPHY_STATE_WINDOW_SAVE_POSITION);
}
@@ -237,7 +237,9 @@ ephy_file_chooser_new (const char *title,
ephy_file_chooser_set_persist_key (dialog, persist_key);
}
- if (action == GTK_FILE_CHOOSER_ACTION_OPEN)
+ if (action == GTK_FILE_CHOOSER_ACTION_OPEN ||
+ action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER ||
+ action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER)
{
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,