From b19f5097e2c7c2a433f48064346685cfc89a16ce Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 27 Feb 2004 14:50:01 +0000 Subject: Fix for gtk+ filechooser API change. 2004-02-27 Christian Persch * 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. --- lib/ephy-file-chooser.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') 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, -- cgit v1.2.3