aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/save-attachments
diff options
context:
space:
mode:
authorShi Pu <shi.pu@sun.com>2006-04-30 11:23:51 +0800
committerIrene Huang <ireneh@src.gnome.org>2006-04-30 11:23:51 +0800
commit46ad39abe500461d0e6017e202c209d8531a0d61 (patch)
treeaf8e00893a3ea72f2d2d35e116de286c5d0c2b3a /plugins/save-attachments
parentd034972a190547043d22a41d9085fa73de371233 (diff)
downloadgsoc2013-evolution-46ad39abe500461d0e6017e202c209d8531a0d61.tar
gsoc2013-evolution-46ad39abe500461d0e6017e202c209d8531a0d61.tar.gz
gsoc2013-evolution-46ad39abe500461d0e6017e202c209d8531a0d61.tar.bz2
gsoc2013-evolution-46ad39abe500461d0e6017e202c209d8531a0d61.tar.lz
gsoc2013-evolution-46ad39abe500461d0e6017e202c209d8531a0d61.tar.xz
gsoc2013-evolution-46ad39abe500461d0e6017e202c209d8531a0d61.tar.zst
gsoc2013-evolution-46ad39abe500461d0e6017e202c209d8531a0d61.zip
** Fixes #323853
2006-02-28 Shi Pu <shi.pu@sun.com> ** Fixes #323853 * save-attachments.c: (save_response), (entry_changed), (save_got_message): replace GnomeFileEntry by GtkFileChooserButton. svn path=/trunk/; revision=31931
Diffstat (limited to 'plugins/save-attachments')
-rw-r--r--plugins/save-attachments/ChangeLog8
-rw-r--r--plugins/save-attachments/save-attachments.c11
2 files changed, 13 insertions, 6 deletions
diff --git a/plugins/save-attachments/ChangeLog b/plugins/save-attachments/ChangeLog
index 599381eba1..6c600e6597 100644
--- a/plugins/save-attachments/ChangeLog
+++ b/plugins/save-attachments/ChangeLog
@@ -1,3 +1,11 @@
+2006-02-28 Shi Pu <shi.pu@sun.com>
+
+ ** Fixes #323853
+
+ * save-attachments.c: (save_response), (entry_changed),
+ (save_got_message):
+ replace GnomeFileEntry by GtkFileChooserButton.
+
2005-12-17 Tor Lillqvist <tml@novell.com>
* save-attachments.c (entry_changed): Use GLib API to manipulate
diff --git a/plugins/save-attachments/save-attachments.c b/plugins/save-attachments/save-attachments.c
index bc4dc89a6c..0d8e0c7ff4 100644
--- a/plugins/save-attachments/save-attachments.c
+++ b/plugins/save-attachments/save-attachments.c
@@ -50,7 +50,7 @@
#include <gtk/gtklabel.h>
#include <gtk/gtkalignment.h>
#include <gtk/gtkscrolledwindow.h>
-#include <libgnomeui/gnome-file-entry.h>
+#include <gtk/gtkfilechooserbutton.h>
#include <camel/camel-folder.h>
#include <camel/camel-exception.h>
@@ -243,7 +243,7 @@ save_response(GtkWidget *d, int id, struct _save_data *data)
if (id == GTK_RESPONSE_OK) {
char *tmp;
- data->base = gnome_file_entry_get_full_path((GnomeFileEntry *)data->entry, FALSE);
+ data->base = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (data->entry));
data->path = g_strdup(data->base);
tmp = strrchr(data->path, '/');
if (tmp)
@@ -279,7 +279,7 @@ entry_changed(GtkWidget *entry, struct _save_data *data)
char *basename = NULL;
const char *file;
- path = gnome_file_entry_get_full_path((GnomeFileEntry *)data->entry, FALSE);
+ path = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (data->entry));
if (path == NULL
|| G_IS_DIR_SEPARATOR (path[strlen(path)-1])
|| (basename = g_path_get_basename(path)) == NULL
@@ -335,14 +335,13 @@ save_got_message(CamelFolder *folder, const char *uid, CamelMimeMessage *msg, vo
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_SAVE, GTK_RESPONSE_OK,
NULL);
- w = gnome_file_entry_new("save-attachments", _("Select save base name"));
+ w = gtk_file_chooser_button_new (_("Select save base name"), GTK_FILE_CHOOSER_ACTION_OPEN);
data->entry = w;
g_object_set(w, "filechooser_action", GTK_FILE_CHOOSER_ACTION_SAVE, NULL);
gtk_widget_show(w);
gtk_box_pack_start((GtkBox *)dialog->vbox, w, FALSE, TRUE, 6);
- w = gnome_file_entry_gtk_entry((GnomeFileEntry *)data->entry);
- g_signal_connect(w, "changed", G_CALLBACK(entry_changed), data);
+ g_signal_connect(GTK_FILE_CHOOSER_BUTTON (w), "selection-changed", G_CALLBACK(entry_changed), data);
model = gtk_tree_store_new(5, G_TYPE_BOOLEAN, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_POINTER);
data->model = model;