diff --git a/widget/src/gtk/nsFileWidget.cpp b/widget/src/gtk/nsFileWidget.cpp index 3155891782bb..70011dfbde08 100644 --- a/widget/src/gtk/nsFileWidget.cpp +++ b/widget/src/gtk/nsFileWidget.cpp @@ -189,3 +189,23 @@ NS_METHOD nsFileWidget::Create(nsIWidget *aParent, return NS_OK; } +nsFileDlgResults nsFileWidget::GetFile(nsIWidget *aParent, + nsString &promptString, + nsFileSpec &theFileSpec) +{ + return nsFileDlgResults_Cancel; +} + +nsFileDlgResults nsFileWidget::GetFolder(nsIWidget *aParent, + nsString &promptString, + nsFileSpec &theFileSpec) +{ + return nsFileDlgResults_Cancel; +} + +nsFileDlgResults nsFileWidget::PutFile(nsIWidget *aParent, + nsString &promptString, + nsFileSpec &theFileSpec) +{ + return nsFileDlgResults_Cancel; +} diff --git a/widget/src/gtk/nsFileWidget.h b/widget/src/gtk/nsFileWidget.h index e45719a02820..dd2f3b048da2 100644 --- a/widget/src/gtk/nsFileWidget.h +++ b/widget/src/gtk/nsFileWidget.h @@ -52,16 +52,28 @@ class nsFileWidget : public nsIFileWidget // nsIFileWidget part virtual PRBool Show(); - NS_IMETHOD GetFile(nsString& aFile); + NS_IMETHOD GetFile(nsString& aFile); NS_IMETHOD GetFile(nsFileSpec& aFile); - NS_IMETHOD SetDefaultString(nsString& aFile); - NS_IMETHOD SetFilterList(PRUint32 aNumberOfFilters, - const nsString aTitles[], - const nsString aFilters[]); + NS_IMETHOD SetDefaultString(nsString& aFile); + NS_IMETHOD SetFilterList(PRUint32 aNumberOfFilters, + const nsString aTitles[], + const nsString aFilters[]); NS_IMETHOD GetDisplayDirectory(nsString& aDirectory); NS_IMETHOD SetDisplayDirectory(nsString& aDirectory); + virtual nsFileDlgResults GetFile(nsIWidget *aParent, + nsString &promptString, + nsFileSpec &theFileSpec); + + virtual nsFileDlgResults GetFolder(nsIWidget *aParent, + nsString &promptString, + nsFileSpec &theFileSpec); + + virtual nsFileDlgResults PutFile(nsIWidget *aParent, + nsString &promptString, + nsFileSpec &theFileSpec); + protected: GtkWidget *mWidget; nsString mTitle;