aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/contact-editor/e-contact-save-as.c
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-11-08 19:24:00 +0800
committerChris Toshok <toshok@src.gnome.org>2002-11-08 19:24:00 +0800
commite9267e9f028e27cc1d3b4590291b5c5462054d1a (patch)
tree5f27a616ccbf2ba7444fd816f2f9cdee6512e48c /addressbook/gui/contact-editor/e-contact-save-as.c
parent768d77efa0ed6f6ac5780700cdae692422bf1613 (diff)
downloadgsoc2013-evolution-e9267e9f028e27cc1d3b4590291b5c5462054d1a.tar
gsoc2013-evolution-e9267e9f028e27cc1d3b4590291b5c5462054d1a.tar.gz
gsoc2013-evolution-e9267e9f028e27cc1d3b4590291b5c5462054d1a.tar.bz2
gsoc2013-evolution-e9267e9f028e27cc1d3b4590291b5c5462054d1a.tar.lz
gsoc2013-evolution-e9267e9f028e27cc1d3b4590291b5c5462054d1a.tar.xz
gsoc2013-evolution-e9267e9f028e27cc1d3b4590291b5c5462054d1a.tar.zst
gsoc2013-evolution-e9267e9f028e27cc1d3b4590291b5c5462054d1a.zip
port work.
2002-11-08 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor-address.[ch]: port work. * gui/contact-editor/e-contact-editor-fullname.[ch]: port work. * gui/contact-editor/e-contact-editor.[ch]: port work. * gui/contact-editor/e-contact-quick-add.c: port work. * gui/contact-editor/e-contact-save-as.c: port work. svn path=/trunk/; revision=18667
Diffstat (limited to 'addressbook/gui/contact-editor/e-contact-save-as.c')
-rw-r--r--addressbook/gui/contact-editor/e-contact-save-as.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-save-as.c b/addressbook/gui/contact-editor/e-contact-save-as.c
index 2713cc6d21..d044332be1 100644
--- a/addressbook/gui/contact-editor/e-contact-save-as.c
+++ b/addressbook/gui/contact-editor/e-contact-save-as.c
@@ -26,7 +26,7 @@
#include <fcntl.h>
#include <gtk/gtkfilesel.h>
#include <gtk/gtksignal.h>
-#include <gtk/gtkdialog.h>
+#include <gtk/gtkmessagedialog.h>
#include <gal/util/e-util.h>
#include <gal/widgets/e-unicode.h>
#include <libgnome/gnome-i18n.h>
@@ -64,12 +64,14 @@ save_it(GtkWidget *widget, SaveAsInfo *info)
GtkWidget *dialog;
char *str;
- str = g_strdup_printf ("Error saving %s: %s", filename, strerror(errno));
- dialog = gnome_message_box_new (str, GNOME_MESSAGE_BOX_ERROR, GNOME_STOCK_BUTTON_OK, NULL);
+ str = g_strdup_printf (_("Error saving %s: %s"), filename, strerror(errno));
+ dialog = gtk_message_dialog_new (GTK_WINDOW (info->filesel),
+ GTK_DIALOG_DESTROY_WITH_PARENT,
+ GTK_MESSAGE_ERROR,
+ GTK_BUTTONS_OK,
+ str);
g_free (str);
- gnome_dialog_set_parent (GNOME_DIALOG (dialog), GTK_WINDOW (info->filesel));
-
gtk_widget_show (dialog);
return;
@@ -205,14 +207,14 @@ e_contact_list_save_as(char *title, GList *list, GtkWindow *parent_window)
static int
file_exists(GtkFileSelection *filesel, const char *filename)
{
- GnomeDialog *dialog = NULL;
+ GtkDialog *dialog = NULL;
GtkWidget *label;
GladeXML *gui = NULL;
int result = 0;
char *string;
gui = glade_xml_new (EVOLUTION_GLADEDIR "/file-exists.glade", NULL, NULL);
- dialog = GNOME_DIALOG(glade_xml_get_widget(gui, "dialog-exists"));
+ dialog = GTK_DIALOG(glade_xml_get_widget(gui, "dialog-exists"));
label = glade_xml_get_widget (gui, "label-exists");
if (GTK_IS_LABEL (label)) {
@@ -221,10 +223,11 @@ file_exists(GtkFileSelection *filesel, const char *filename)
g_free (string);
}
- gnome_dialog_set_parent(dialog, GTK_WINDOW(filesel));
+ gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW(filesel));
gtk_widget_show (GTK_WIDGET (dialog));
- result = gnome_dialog_run_and_close(dialog);
+ result = gtk_dialog_run(dialog);
+ gtk_widget_destroy (GTK_WIDGET (dialog));
g_free(gui);