diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2007-09-14 23:29:05 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-09-14 23:29:05 +0800 |
commit | 5ad1bf8506772c6e02da2e48391d0a9e03b80048 (patch) | |
tree | d1842e355beb2431b16c587a5add7434ef24179b /plugins/save-calendar | |
parent | 3cf65fa9b41612c0a126503fae88b85a9f3d8ae0 (diff) | |
download | gsoc2013-evolution-5ad1bf8506772c6e02da2e48391d0a9e03b80048.tar gsoc2013-evolution-5ad1bf8506772c6e02da2e48391d0a9e03b80048.tar.gz gsoc2013-evolution-5ad1bf8506772c6e02da2e48391d0a9e03b80048.tar.bz2 gsoc2013-evolution-5ad1bf8506772c6e02da2e48391d0a9e03b80048.tar.lz gsoc2013-evolution-5ad1bf8506772c6e02da2e48391d0a9e03b80048.tar.xz 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 'plugins/save-calendar')
-rw-r--r-- | plugins/save-calendar/ChangeLog | 11 | ||||
-rw-r--r-- | plugins/save-calendar/csv-format.c | 8 | ||||
-rw-r--r-- | plugins/save-calendar/ical-format.c | 8 | ||||
-rw-r--r-- | plugins/save-calendar/rdf-format.c | 8 | ||||
-rw-r--r-- | plugins/save-calendar/save-calendar.c | 19 |
5 files changed, 19 insertions, 35 deletions
diff --git a/plugins/save-calendar/ChangeLog b/plugins/save-calendar/ChangeLog index c22b974fc3..9df802f364 100644 --- a/plugins/save-calendar/ChangeLog +++ b/plugins/save-calendar/ChangeLog @@ -1,3 +1,14 @@ +2007-09-14 Matthew Barnes <mbarnes@redhat.com> + + ** Fixes part of bug #476231 + + * csv-format.c: + * ical-format.c: + * rdf-format.c: + * save-calendar.c: + Remove non-USE_GTKFILECHOOSER code. + GtkFileChooser has been around since 2004. + 2007-06-07 Gilles Dartiguelongue <dartigug@esiee.fr> * rdf-format.c: (add_nummeric_to_rdf), (add_time_to_rdf), diff --git a/plugins/save-calendar/csv-format.c b/plugins/save-calendar/csv-format.c index 4dfb18917a..8ee52e2641 100644 --- a/plugins/save-calendar/csv-format.c +++ b/plugins/save-calendar/csv-format.c @@ -24,12 +24,8 @@ #endif #include <glib.h> #include <glib/gi18n.h> -#ifdef USE_GTKFILECHOOSER -# include <gtk/gtkfilechooser.h> -# include <gtk/gtkfilechooserdialog.h> -#else -# include <gtk/gtkfilesel.h> -#endif +#include <gtk/gtkfilechooser.h> +#include <gtk/gtkfilechooserdialog.h> #include <gtk/gtkmessagedialog.h> #include <gtk/gtkstock.h> #include <gtk/gtk.h> diff --git a/plugins/save-calendar/ical-format.c b/plugins/save-calendar/ical-format.c index 2d316d248b..46be87e53a 100644 --- a/plugins/save-calendar/ical-format.c +++ b/plugins/save-calendar/ical-format.c @@ -25,12 +25,8 @@ #endif #include <glib.h> #include <glib/gi18n.h> -#ifdef USE_GTKFILECHOOSER -# include <gtk/gtkfilechooser.h> -# include <gtk/gtkfilechooserdialog.h> -#else -# include <gtk/gtkfilesel.h> -#endif +#include <gtk/gtkfilechooser.h> +#include <gtk/gtkfilechooserdialog.h> #include <libgnomevfs/gnome-vfs-ops.h> #include <gtk/gtkmessagedialog.h> #include <gtk/gtkstock.h> diff --git a/plugins/save-calendar/rdf-format.c b/plugins/save-calendar/rdf-format.c index 43983e0bc0..c3f2dbbefa 100644 --- a/plugins/save-calendar/rdf-format.c +++ b/plugins/save-calendar/rdf-format.c @@ -24,12 +24,8 @@ #endif #include <glib.h> #include <glib/gi18n.h> -#ifdef USE_GTKFILECHOOSER -# include <gtk/gtkfilechooser.h> -# include <gtk/gtkfilechooserdialog.h> -#else -# include <gtk/gtkfilesel.h> -#endif +#include <gtk/gtkfilechooser.h> +#include <gtk/gtkfilechooserdialog.h> #include <gtk/gtkmessagedialog.h> #include <gtk/gtkstock.h> #include <gtk/gtk.h> diff --git a/plugins/save-calendar/save-calendar.c b/plugins/save-calendar/save-calendar.c index d497c981ca..bce7bc3504 100644 --- a/plugins/save-calendar/save-calendar.c +++ b/plugins/save-calendar/save-calendar.c @@ -28,12 +28,8 @@ #include <glib.h> #include <glib/gi18n.h> -#ifdef USE_GTKFILECHOOSER -# include <gtk/gtkfilechooser.h> -# include <gtk/gtkfilechooserdialog.h> -#else -# include <gtk/gtkfilesel.h> -#endif +#include <gtk/gtkfilechooser.h> +#include <gtk/gtkfilechooserdialog.h> #include <gtk/gtkmessagedialog.h> #include <gtk/gtkstock.h> #include <gtk/gtk.h> @@ -164,8 +160,6 @@ ask_destination_and_save (EPlugin *ep, ECalPopupTargetSource *target, ECalSource g_signal_connect (G_OBJECT(combo), "changed", G_CALLBACK (on_type_combobox_changed), extra_widget); -#ifdef USE_GTKFILECHOOSER - dialog = gtk_file_chooser_dialog_new (_("Select destination file"), NULL, GTK_FILE_CHOOSER_ACTION_SAVE, @@ -176,10 +170,6 @@ ask_destination_and_save (EPlugin *ep, ECalPopupTargetSource *target, ECalSource gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER (dialog), extra_widget); gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (dialog), FALSE); -#else - dialog = gtk_file_selection_new (_("Select destination file")); - gtk_box_pack_start (GTK_BOX (GTK_FILE_SELECTION (dialog)->main_vbox), extra_widget, FALSE, TRUE, 0); -#endif gtk_widget_show (GTK_WIDGET(combo)); gtk_widget_show (extra_widget); @@ -191,13 +181,8 @@ ask_destination_and_save (EPlugin *ep, ECalPopupTargetSource *target, ECalSource gtk_tree_model_get (model, &iter, DEST_HANDLER, &handler, -1); -#ifdef USE_GTKFILECHOOSER dest_uri = gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (dialog)); -#else - dest_uri = g_strdup (gtk_file_selection_get_filename - (GTK_FILE_SELECTION (dialog))); -#endif tmp = strstr (dest_uri, handler->filename_ext); |