mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset 7c0b5c2b3501
This commit is contained in:
parent
d24c495257
commit
106506ee28
@ -625,8 +625,6 @@ LIBHILDONMIME_CFLAGS = @LIBHILDONMIME_CFLAGS@
|
||||
LIBHILDONMIME_LIBS = @LIBHILDONMIME_LIBS@
|
||||
LIBOSSO_CFLAGS = @LIBOSSO_CFLAGS@
|
||||
LIBOSSO_LIBS = @LIBOSSO_LIBS@
|
||||
LIBHILDONFM_CFLAGS = @LIBHILDONFM_CFLAGS@
|
||||
LIBHILDONFM_LIBS = @LIBHILDONFM_LIBS@
|
||||
|
||||
MACOS_SDK_DIR = @MACOS_SDK_DIR@
|
||||
NEXT_ROOT = @NEXT_ROOT@
|
||||
|
@ -6198,10 +6198,6 @@ fi
|
||||
AC_SUBST(LIBOSSO_CFLAGS)
|
||||
AC_SUBST(LIBOSSO_LIBS)
|
||||
|
||||
PKG_CHECK_MODULES(LIBHILDONFM,hildon-fm-2)
|
||||
AC_SUBST(LIBHILDONFM_CFLAGS)
|
||||
AC_SUBST(LIBHILDONFM_LIBS)
|
||||
|
||||
dnl ========================================================
|
||||
dnl = faststripe theme
|
||||
dnl ========================================================
|
||||
|
@ -205,7 +205,7 @@ endif
|
||||
endif
|
||||
|
||||
ifdef MOZ_PLATFORM_HILDON
|
||||
EXTRA_DSO_LDOPTS += $(LIBHILDONMIME_LIBS) $(LIBHILDONFM_LIBS)
|
||||
EXTRA_DSO_LDOPTS += $(LIBHILDONMIME_LIBS)
|
||||
endif
|
||||
|
||||
ifdef NS_OSSO
|
||||
|
@ -56,10 +56,6 @@
|
||||
#include "nsFilePicker.h"
|
||||
#include "nsAccessibilityHelper.h"
|
||||
|
||||
#ifdef MOZ_PLATFORM_HILDON
|
||||
#include <hildon-fm-2/hildon/hildon-file-chooser-dialog.h>
|
||||
#endif
|
||||
|
||||
#define MAX_PREVIEW_SIZE 180
|
||||
|
||||
nsILocalFile *nsFilePicker::mPrevDisplayDirectory = nsnull;
|
||||
@ -433,14 +429,6 @@ nsFilePicker::Show(PRInt16 *aReturn)
|
||||
GtkFileChooserAction action = GetGtkFileChooserAction(mMode);
|
||||
const gchar *accept_button = (action == GTK_FILE_CHOOSER_ACTION_SAVE)
|
||||
? GTK_STOCK_SAVE : GTK_STOCK_OPEN;
|
||||
#ifdef MOZ_PLATFORM_HILDON
|
||||
GtkWidget *file_chooser =
|
||||
hildon_file_chooser_dialog_new_with_properties(parent_widget,
|
||||
"action", action,
|
||||
"open-button-text", accept_button,
|
||||
NULL);
|
||||
gtk_window_set_title(GTK_WINDOW(file_chooser), title);
|
||||
#else
|
||||
GtkWidget *file_chooser =
|
||||
gtk_file_chooser_dialog_new(title, parent_widget, action,
|
||||
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
|
||||
@ -453,7 +441,6 @@ nsFilePicker::Show(PRInt16 *aReturn)
|
||||
if (mAllowURLs) {
|
||||
gtk_file_chooser_set_local_only(GTK_FILE_CHOOSER(file_chooser), FALSE);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (action == GTK_FILE_CHOOSER_ACTION_OPEN || action == GTK_FILE_CHOOSER_ACTION_SAVE) {
|
||||
GtkWidget *img_preview = gtk_image_new();
|
||||
@ -541,7 +528,6 @@ nsFilePicker::Show(PRInt16 *aReturn)
|
||||
gint response = gtk_dialog_run(GTK_DIALOG(file_chooser));
|
||||
|
||||
switch (response) {
|
||||
case GTK_RESPONSE_OK:
|
||||
case GTK_RESPONSE_ACCEPT:
|
||||
ReadValuesFromFileChooser(file_chooser);
|
||||
*aReturn = nsIFilePicker::returnOK;
|
||||
@ -553,6 +539,7 @@ nsFilePicker::Show(PRInt16 *aReturn)
|
||||
file->Exists(&exists);
|
||||
if (exists)
|
||||
*aReturn = nsIFilePicker::returnReplace;
|
||||
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user