aboutsummaryrefslogtreecommitdiffstats
path: root/smime/gui
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2007-09-14 23:29:05 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-09-14 23:29:05 +0800
commit5ad1bf8506772c6e02da2e48391d0a9e03b80048 (patch)
treed1842e355beb2431b16c587a5add7434ef24179b /smime/gui
parent3cf65fa9b41612c0a126503fae88b85a9f3d8ae0 (diff)
downloadgsoc2013-evolution-5ad1bf8506772c6e02da2e48391d0a9e03b80048.tar.gz
gsoc2013-evolution-5ad1bf8506772c6e02da2e48391d0a9e03b80048.tar.zst
gsoc2013-evolution-5ad1bf8506772c6e02da2e48391d0a9e03b80048.zip
Remove the --enable-file-chooser configure option.
GtkFileChooser has been around since 2004. svn path=/trunk/; revision=34257
Diffstat (limited to 'smime/gui')
-rw-r--r--smime/gui/certificate-manager.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/smime/gui/certificate-manager.c b/smime/gui/certificate-manager.c
index 35cda21044..e417407c42 100644
--- a/smime/gui/certificate-manager.c
+++ b/smime/gui/certificate-manager.c
@@ -132,7 +132,6 @@ import_your (GtkWidget *widget, CertificateManagerData *cfm)
GtkWidget *filesel;
const char *filename;
-#ifdef USE_GTKFILECHOOSER
GtkFileFilter* filter;
filesel = gtk_file_chooser_dialog_new (_("Select a certificate to import..."),
@@ -152,16 +151,9 @@ import_your (GtkWidget *widget, CertificateManagerData *cfm)
gtk_file_filter_set_name (filter, _("All files"));
gtk_file_filter_add_pattern (filter, "*");
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (filesel), filter);
-#else
- filesel = gtk_file_selection_new (_("Select a certificate to import..."));
-#endif
if (GTK_RESPONSE_OK == gtk_dialog_run (GTK_DIALOG (filesel))) {
-#ifdef USE_GTKFILECHOOSER
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (filesel));
-#else
- filename = gtk_file_selection_get_filename (GTK_FILE_SELECTION (filesel));
-#endif
if (e_cert_db_import_pkcs12_file (e_cert_db_peek (),
filename, NULL /* XXX */)) {
@@ -383,7 +375,6 @@ import_contact (GtkWidget *widget, CertificateManagerData *cfm)
GtkWidget *filesel;
const char *filename;
-#ifdef USE_GTKFILECHOOSER
GtkFileFilter *filter;
filesel = gtk_file_chooser_dialog_new (_("Select a certificate to import..."),
@@ -403,16 +394,9 @@ import_contact (GtkWidget *widget, CertificateManagerData *cfm)
gtk_file_filter_set_name (filter, _("All files"));
gtk_file_filter_add_pattern (filter, "*");
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (filesel), filter);
-#else
- filesel = gtk_file_selection_new (_("Select a certificate to import..."));
-#endif
if (GTK_RESPONSE_OK == gtk_dialog_run (GTK_DIALOG (filesel))) {
-#ifdef USE_GTKFILECHOOSER
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (filesel));
-#else
- filename = gtk_file_selection_get_filename (GTK_FILE_SELECTION (filesel));
-#endif
if (e_cert_db_import_certs_from_file (e_cert_db_peek (),
filename,
@@ -615,7 +599,6 @@ import_ca (GtkWidget *widget, CertificateManagerData *cfm)
GtkWidget *filesel;
const char *filename;
-#ifdef USE_GTKFILECHOOSER
GtkFileFilter *filter;
filesel = gtk_file_chooser_dialog_new (_("Select a certificate to import..."),
@@ -635,16 +618,9 @@ import_ca (GtkWidget *widget, CertificateManagerData *cfm)
gtk_file_filter_set_name (filter, _("All files"));
gtk_file_filter_add_pattern (filter, "*");
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (filesel), filter);
-#else
- filesel = gtk_file_selection_new (_("Select a certificate to import..."));
-#endif
if (GTK_RESPONSE_OK == gtk_dialog_run (GTK_DIALOG (filesel))) {
-#ifdef USE_GTKFILECHOOSER
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (filesel));
-#else
- filename = gtk_file_selection_get_filename (GTK_FILE_SELECTION (filesel));
-#endif
if (e_cert_db_import_certs_from_file (e_cert_db_peek (),
filename,