aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/FilePicker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/FilePicker.cpp')
-rw-r--r--embed/mozilla/FilePicker.cpp28
1 files changed, 2 insertions, 26 deletions
diff --git a/embed/mozilla/FilePicker.cpp b/embed/mozilla/FilePicker.cpp
index 8ae5429f7..fb8a82313 100644
--- a/embed/mozilla/FilePicker.cpp
+++ b/embed/mozilla/FilePicker.cpp
@@ -76,9 +76,7 @@
/* Implementation file */
NS_IMPL_ISUPPORTS1(GFilePicker, nsIFilePicker)
-GFilePicker::GFilePicker(PRBool aShowContentCheck, FileFormat *aFileFormats) :
- mShowContentCheck(aShowContentCheck),
- mSaveContentCheck(NULL),
+GFilePicker::GFilePicker(FileFormat *aFileFormats) :
mFileFormats(aFileFormats)
{
NS_INIT_ISUPPORTS();
@@ -246,24 +244,6 @@ NS_IMETHODIMP GFilePicker::Show(PRInt16 *_retval)
gtk_window_set_transient_for(GTK_WINDOW(mFileSelector),
GTK_WINDOW(mParentWidget));
- if (mShowContentCheck)
- {
- GtkWidget *bbox = gtk_hbutton_box_new ();
- gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox),
- GTK_BUTTONBOX_END);
- gtk_box_set_spacing(GTK_BOX(bbox), 0);
- gtk_box_pack_end(GTK_BOX(GTK_FILE_SELECTION(mFileSelector)->action_area),
- bbox, TRUE, TRUE, 0);
-
- mSaveContentCheck =
- gtk_check_button_new_with_label(_("Save with content"));
-
- gtk_box_pack_start(GTK_BOX(bbox), mSaveContentCheck,
- FALSE, FALSE, 0);
-
- gtk_widget_show_all(bbox);
- }
-
if (mFileFormats)
{
mFormatChooser = gtk_option_menu_new();
@@ -482,11 +462,7 @@ NS_METHOD GFilePicker::HandleFilePickerResult(PRInt16 *retval)
}
}
- if (GTK_IS_TOGGLE_BUTTON(mSaveContentCheck))
- *retval = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(mSaveContentCheck)) ?
- returnOKSaveContent : returnOK;
- else
- *retval = returnOK;
+ *retval = returnOK;
return NS_OK;
}