aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-setup.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-12-02 11:23:57 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-12-02 11:23:57 +0800
commit9d77b85ae36094fd1a0b07be4ebb69e047c9cec1 (patch)
treebbbaa747e8cf40cb220d651d4b2fdd8159fae652 /shell/e-setup.c
parent2a7bc6967326be929beb1e0d7a3ba091022d59e9 (diff)
downloadgsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.tar.gz
gsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.tar.zst
gsoc2013-evolution-9d77b85ae36094fd1a0b07be4ebb69e047c9cec1.zip
changed to use a gtkdialog instead of a gnome one.
2002-11-27 Not Zed <NotZed@Ximian.com> * main.c (show_development_warning): changed to use a gtkdialog instead of a gnome one. (warning_dialog_response_callback): clicked->response. * e-shell-folder-selection-dialog.c: Include gtk/gtkstock.h * e-shell-folder-creation-dialog.c: include gnome-dialog.h (dialog_response_cb): gtk_entry_get_text now returns const. Dont free result. * e-setup.c: include gnome-messagebox.h * *.c: (re)run fix.sh over all, for e_notice changes & pick up some deprecated functions. * e-shell-shared-folder-picker-dialog.c (shared_folder_discovery_callback): reformat e_notice call for script. * e-shell-offline-sync.c (impl_SyncFolderProgressListener_reportFailure): Fix e_notice call, we weren't passing type in. * e-shell-folder-commands.c (xfer_result_callback): changed around slightly to save some processing & allow a script to run. (e_shell_command_rename_folder): reformat e_notice call to help script. Include gnome-messagebox.h svn path=/trunk/; revision=18977
Diffstat (limited to 'shell/e-setup.c')
-rw-r--r--shell/e-setup.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/shell/e-setup.c b/shell/e-setup.c
index 6befdb8e92..ec76528bc0 100644
--- a/shell/e-setup.c
+++ b/shell/e-setup.c
@@ -39,6 +39,7 @@
#include <libgnome/gnome-i18n.h>
#include <libgnome/gnome-util.h>
+#include <libgnomeui/gnome-messagebox.h>
#include <errno.h>
#include <sys/stat.h>
@@ -169,7 +170,7 @@ check_evolution_directory (const char *evolution_directory)
}
if (retval == FALSE)
- e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
+ e_notice (NULL, GTK_MESSAGE_ERROR,
_("Could not update files correctly"));
out:
@@ -192,7 +193,7 @@ copy_default_stuff (const char *evolution_directory)
char *old_default_shortcuts_file;
if (mkdir (evolution_directory, 0700)) {
- e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
+ e_notice (NULL, GTK_MESSAGE_ERROR,
_("Cannot create the directory\n%s\nError: %s"),
evolution_directory,
g_strerror (errno));
@@ -207,7 +208,7 @@ copy_default_stuff (const char *evolution_directory)
if (system (command) != 0) {
/* FIXME: Give more help. */
- e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
+ e_notice (NULL, GTK_MESSAGE_ERROR,
_("An error occurred in copying files into\n`%s'."), evolution_directory);
retval = FALSE;
} else {
@@ -280,7 +281,7 @@ setup_bonobo_conf_private_directory (const char *evolution_directory)
name = g_concat_dir_and_file (evolution_directory, "private");
if (stat (name, &buf) == -1) {
if (mkdir (name, 0700) != 0) {
- e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
+ e_notice (NULL, GTK_MESSAGE_ERROR,
_("Evolution could not create directory\n"
"%s:\n%s"),
name, strerror (errno));
@@ -298,13 +299,13 @@ setup_bonobo_conf_private_directory (const char *evolution_directory)
}
if (S_ISDIR (buf.st_mode)) {
- e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
+ e_notice (NULL, GTK_MESSAGE_ERROR,
_("Directory %s\n"
"does not have the right permissions. Please make it\n"
"readable and executable and restart Evolution."),
name);
} else {
- e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
+ e_notice (NULL, GTK_MESSAGE_ERROR,
_("File %s\n"
"should be removed to allow Evolution to work correctly.\n"
"Please remove this file and restart Evolution."),
@@ -327,7 +328,7 @@ e_setup (const char *evolution_directory)
}
if (! S_ISDIR (statinfo.st_mode)) {
- e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
+ e_notice (NULL, GTK_MESSAGE_ERROR,
_("The file `%s' is not a directory.\n"
"Please move it in order to allow installation\n"
"of the Evolution user files."));
@@ -366,7 +367,7 @@ e_setup (const char *evolution_directory)
file = g_strdup_printf ("%s/searches.xml", evolution_directory);
if (stat (file, &statinfo) != 0) {
- e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
+ e_notice (NULL, GTK_MESSAGE_ERROR,
_("The directory `%s' exists but is not the\n"
"Evolution directory. Please move it in order\n"
"to allow installation of the Evolution user "