aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
authorJP Rosevear <jpr@src.gnome.org>2004-08-13 23:22:12 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-08-13 23:22:12 +0800
commite51669cbcbc354988c404e8465fa9831956014a1 (patch)
tree0f8708da01f0a18e80a2ff0085a61287e6745124 /addressbook/gui/widgets
parent357bc17d828b9e8cca16a6f61efe926f5e60d05a (diff)
downloadgsoc2013-evolution-e51669cbcbc354988c404e8465fa9831956014a1.tar.gz
gsoc2013-evolution-e51669cbcbc354988c404e8465fa9831956014a1.tar.zst
gsoc2013-evolution-e51669cbcbc354988c404e8465fa9831956014a1.zip
Commit the correct version of carlos's patch.
svn path=/trunk/; revision=26914
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/eab-gui-util.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c
index c25cc527af..f5aca3144d 100644
--- a/addressbook/gui/widgets/eab-gui-util.c
+++ b/addressbook/gui/widgets/eab-gui-util.c
@@ -323,7 +323,7 @@ save_it(GtkWidget *widget, SaveAsInfo *info)
gint response = 0;
-#if GTK_CHECK_VERSION(2,4,0)
+#ifdef USE_GTKFILECHOOSER
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (info->filesel));
#else
filename = gtk_file_selection_get_filename (GTK_FILE_SELECTION (info->filesel));
@@ -362,7 +362,7 @@ destroy_it(void *data, GObject *where_the_object_was)
g_free (info);
}
-#if GTK_CHECK_VERSION(2,4,0)
+#ifdef USE_GTKFILECHOOSER
static void
filechooser_response (GtkWidget *widget, gint response_id, SaveAsInfo *info)
{
@@ -469,7 +469,7 @@ eab_contact_save (char *title, EContact *contact, GtkWindow *parent_window)
name = e_contact_get (contact, E_CONTACT_FILE_AS);
file = make_safe_filename (name);
-#if GTK_CHECK_VERSION(2,4,0)
+#ifdef USE_GTKFILECHOOSER
filesel = gtk_file_chooser_dialog_new (title,
parent_window,
GTK_FILE_CHOOSER_ACTION_SAVE,
@@ -521,7 +521,7 @@ eab_contact_list_save (char *title, GList *list, GtkWindow *parent_window)
SaveAsInfo *info = g_new(SaveAsInfo, 1);
char *file, *full_filename;
-#if GTK_CHECK_VERSION(2,4,0)
+#ifdef USE_GTKFILECHOOSER
filesel = gtk_file_chooser_dialog_new (title,
parent_window,
GTK_FILE_CHOOSER_ACTION_SAVE,
@@ -545,7 +545,7 @@ eab_contact_list_save (char *title, GList *list, GtkWindow *parent_window)
file = make_safe_filename (_("list"));
}
-#if GTK_CHECK_VERSION(2,4,0)
+#ifdef USE_GTKFILECHOOSER
gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (filesel), g_get_home_dir ());
gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (filesel), file);
#else
@@ -557,7 +557,7 @@ eab_contact_list_save (char *title, GList *list, GtkWindow *parent_window)
info->filesel = filesel;
info->vcard = eab_contact_list_to_string (list);
-#if GTK_CHECK_VERSION(2,4,0)
+#ifdef USE_GTKFILECHOOSER
g_signal_connect (G_OBJECT (filesel), "response",
G_CALLBACK (filechooser_response), info);
g_object_weak_ref (G_OBJECT (filesel), destroy_it, info);