diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-11-01 21:35:53 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-11-01 21:35:53 +0800 |
commit | 0cbb825713bb897942a709b09f98d0f123075794 (patch) | |
tree | 8fdb848191736e6d75c5021b814cdd1c0e159cbb /embed | |
parent | 8403d68e57c5495b753c3b845244c794c17fbfdf (diff) | |
download | gsoc2013-epiphany-0cbb825713bb897942a709b09f98d0f123075794.tar gsoc2013-epiphany-0cbb825713bb897942a709b09f98d0f123075794.tar.gz gsoc2013-epiphany-0cbb825713bb897942a709b09f98d0f123075794.tar.bz2 gsoc2013-epiphany-0cbb825713bb897942a709b09f98d0f123075794.tar.lz gsoc2013-epiphany-0cbb825713bb897942a709b09f98d0f123075794.tar.xz gsoc2013-epiphany-0cbb825713bb897942a709b09f98d0f123075794.tar.zst gsoc2013-epiphany-0cbb825713bb897942a709b09f98d0f123075794.zip |
Don't set the persist key on object construction time. Fixes bug #125589.
2003-11-01 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/FilePicker.cpp:
* lib/ephy-file-chooser.c: (current_folder_changed_cb),
(ephy_file_chooser_init), (ephy_file_chooser_set_persist_key),
(ephy_file_chooser_get_persist_key),
(ephy_file_chooser_get_property), (ephy_file_chooser_class_init),
(ephy_file_chooser_new):
* lib/ephy-file-chooser.h:
Don't set the persist key on object construction time.
Fixes bug #125589.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/FilePicker.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/embed/mozilla/FilePicker.cpp b/embed/mozilla/FilePicker.cpp index 7c761e980..8b498ede9 100644 --- a/embed/mozilla/FilePicker.cpp +++ b/embed/mozilla/FilePicker.cpp @@ -68,9 +68,9 @@ GFilePicker::GFilePicker() LOG ("GFilePicker constructor") - mDialog = EPHY_FILE_CHOOSER (g_object_new (EPHY_TYPE_FILE_CHOOSER, - "persist-key", CONF_STATE_UPLOAD_DIR, - NULL)); + mDialog = EPHY_FILE_CHOOSER (g_object_new (EPHY_TYPE_FILE_CHOOSER, NULL)); + + ephy_file_chooser_set_persist_key (mDialog, CONF_STATE_UPLOAD_DIR); mMode = nsIFilePicker::modeOpen; } @@ -112,6 +112,8 @@ NS_IMETHODIMP GFilePicker::Init(nsIDOMWindowInternal *parent, const PRUnichar *t GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, EPHY_RESPONSE_OPEN, NULL); + gtk_dialog_set_default_response (GTK_DIALOG (mDialog), EPHY_RESPONSE_OPEN); + break; case nsIFilePicker::modeSave: gtk_file_chooser_set_action (GTK_FILE_CHOOSER (mDialog), @@ -121,6 +123,10 @@ NS_IMETHODIMP GFilePicker::Init(nsIDOMWindowInternal *parent, const PRUnichar *t GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, EPHY_RESPONSE_SAVE, NULL); + gtk_dialog_set_default_response (GTK_DIALOG (mDialog), EPHY_RESPONSE_SAVE); + break; + default: + g_assert_not_reached (); break; } |