diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2003-01-28 05:09:56 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2003-01-28 05:09:56 +0800 |
commit | 8cf2b9384717c53e7509a20dd19130c2fe5db0a1 (patch) | |
tree | 8937d7f7ffdf3519cc3dabc431e8599e51afceaa /shell/e-setup.c | |
parent | dd15703ae5ba4fbca40190130ad64b3e78341a6a (diff) | |
download | gsoc2013-evolution-8cf2b9384717c53e7509a20dd19130c2fe5db0a1.tar.gz gsoc2013-evolution-8cf2b9384717c53e7509a20dd19130c2fe5db0a1.tar.zst gsoc2013-evolution-8cf2b9384717c53e7509a20dd19130c2fe5db0a1.zip |
Set GTK_RESPONSE_OK as the default response.
* e-shell-importer.c (choose_importer_from_list): Set
GTK_RESPONSE_OK as the default response.
* Makefile.am (INCLUDES): Add -DGNOME_DISABLE_DEPRECATED,
-DBONOBO_DISABLE_DEPRECATED.
* e-shortcuts.c (update_shortcut_and_emit_signal): Use
g_signal_emit() instead of gtk_signal_emit().
* e-shortcuts-view.c (destroy_group_cb): Port from GnomeMessageBox
to GtkMessageDialog.
* e-shell.c (get_icon_path_for_component_info): Use
gnome_program_locate_file() instead of gnome_pixmap_file().
(impl_finalize): Use bonobo_activation_unregister_active_server()
instead of bonobo_activation_active_server_register().
(e_shell_construct): Use
bonobo_activation_register_active_server() instead of
bonobo_activation_active_server_register().
* e-shell-view-menu.c (command_submit_bug): Use e_notice().
(launch_pilot_settings): Use g_find_program_in_path() instead of
gnome_is_program_in_path().
(command_submit_bug): Likewise.
* e-shell-utils.c (get_icon_path): Use g_file_test() instead of
g_file_exists().
* e-shell-startup-wizard.c (prepare_importer_page): Port from
GnomeMessageBox to GtkMessageDialog.
* e-shell-shared-folder-picker-dialog.c (show_dialog): Update for
GtkDialog.
(progress_dialog_close_callback): Removed.
(progress_dialog_clicked_callback): Removed.
(progress_dialog_response_callback): New.
(create_progress_dialog): Ported to GnomeDialog.
* e-shell-offline-sync.c: Add member parent_window to struct
SyncData.
(e_shell_offline_sync_all_folders): Set it from the parent_window
arg.
(progress_dialog_close_callback): Removed.
(progress_dialog_clicked_callback): Removed.
(progress_dialog_response_callback): New.
(setup_dialog): Create a GtkDialog instead of a GnomeDialog.
(sync_folder): Updated for GtkDialog.
* e-shell-offline-handler.c (dialog_handle_ok): Make it get a
GtkDialog instead of a GnomeDialog.
(dialog_handle_cancel): Likewise.
(dialog_clicked_cb): Removed.
(dialog_response_cb): New.
(pop_up_confirmation_dialog): Connect the new dialog_response_cb()
instead of the old dialog_clicked_cb(). Removed
gnome_dialog_set_default() call.
* e-shell-folder-creation-dialog.c (dialog_response_cb): Make
first arg a GtkDialog, not a GnomeDialog.
* e-shell-folder-commands.c (e_shell_command_delete_folder):
Expect delete_dialog() to return a GtkResponseType.
(delete_dialog): Ported to GtkMessageDialog; Return a
GtkResponseType.
* e-shell-config-default-folders.c
(e_shell_config_default_folders_create_widget): Removed unused
variable.
* e-setup.c (check_evolution_directory): Remove Evolution
directory installation message.
(e_setup): Remove check for the Executive-Summary directory.
* e-local-storage.c (create_folder_directory): Use g_file_test()
instead of g_file_exists().
* evolution-shell-component-utils.c (e_pixmaps_update): Use
g_build_filename() of g_concat_dir_and_file().
* e-folder-dnd-bridge.c (handle_data_received_path): Likewise.
* e-local-folder.c (construct_loading_metadata): Likewise.
(save_metadata): Likewise.
* e-local-storage.c (remove_folder_directory): Likewise.
(append_xfer_item_list): Likewise.
* e-setup.c (check_dir_recur): Likewise.
(e_shell_rm_dir): Likewise.
(setup_bonobo_conf_private_directory): Likewise.
* e-shell-folder-commands.c
(folder_selection_dialog_folder_selected_callback): Likewise.
(e_shell_command_rename_folder): Likewise.
* e-shell-folder-creation-dialog.c (dialog_response_cb): Likewise.
* e-shell-settings-dialog.c (load_pages): Likewise.
* e-shell-utils.c (get_icon_path): Likewise.
* e-shell.c (setup_local_storage): Likewise.
(get_icon_path_for_component_info): Likewise.
(e_shell_construct): Likewise.
* main.c (main): Likewise.
svn path=/trunk/; revision=19658
Diffstat (limited to 'shell/e-setup.c')
-rw-r--r-- | shell/e-setup.c | 66 |
1 files changed, 4 insertions, 62 deletions
diff --git a/shell/e-setup.c b/shell/e-setup.c index ecd0ab5b0e..a3895f7e3d 100644 --- a/shell/e-setup.c +++ b/shell/e-setup.c @@ -41,7 +41,6 @@ #include <libgnome/gnome-i18n.h> #include <libgnome/gnome-util.h> -#include <libgnomeui/gnome-messagebox.h> #include <errno.h> #include <sys/stat.h> @@ -84,10 +83,8 @@ check_dir_recur (const char *evolution_directory, continue; } - fullname = g_concat_dir_and_file (evolution_directory, - current->d_name); - fulldefaultname = g_concat_dir_and_file (current_directory, - current->d_name); + fullname = g_build_filename (evolution_directory, current->d_name, NULL); + fulldefaultname = g_build_filename (current_directory, current->d_name, NULL); if (stat (fullname, &buf) == -1) { char *name; @@ -114,11 +111,8 @@ check_dir_recur (const char *evolution_directory, static gboolean check_evolution_directory (const char *evolution_directory) { - GtkWidget *dialog; - GtkWidget *label1, *label2; gboolean retval; GList *newfiles, *l; - int result; newfiles = g_list_concat (NULL, check_dir_recur (evolution_directory, DEFAULT_USER_PATH)); @@ -127,28 +121,6 @@ check_evolution_directory (const char *evolution_directory) goto out; } - dialog = gnome_dialog_new (_("Evolution installation"), - GNOME_STOCK_BUTTON_OK, GNOME_STOCK_BUTTON_CANCEL, - NULL); - - label1 = gtk_label_new (_("This new version of Evolution needs to install additional files\ninto your personal Evolution directory")); - label2 = gtk_label_new (_("Please click \"OK\" to install the files, or \"Cancel\" to exit.")); - - gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), label1, TRUE, TRUE, 0); - gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), label2, TRUE, TRUE, 0); - - gtk_widget_show (label1); - gtk_widget_show (label2); - - gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); - - result = gnome_dialog_run_and_close (GNOME_DIALOG (dialog)); - - if (result != 0) { - retval = FALSE; - goto out; - } - retval = TRUE; for (l = newfiles; l; l = l->next) { char *command; @@ -245,7 +217,7 @@ e_shell_rm_dir (const char *path) continue; } - fullpath = g_concat_dir_and_file (path, contents->d_name); + fullpath = g_build_filename (path, contents->d_name, NULL); e_shell_rm_dir (fullpath); g_free (fullpath); @@ -265,7 +237,7 @@ setup_bonobo_conf_private_directory (const char *evolution_directory) char *name; struct stat buf; - name = g_concat_dir_and_file (evolution_directory, "private"); + name = g_build_filename (evolution_directory, "private", NULL); if (stat (name, &buf) == -1) { if (mkdir (name, 0700) != 0) { e_notice (NULL, GTK_MESSAGE_ERROR, @@ -322,36 +294,6 @@ e_setup (const char *evolution_directory) return FALSE; } - /* Make sure this is really our directory, not an Evolution - * build tree or something like that. - */ - file = g_strdup_printf ("%s/local/Executive-Summary", evolution_directory); - if (stat (file, &statinfo) == 0) { - if (S_ISDIR (statinfo.st_mode)) { - GtkWidget *dialog; - - dialog = gnome_message_box_new (_("Evolution has detected an old\n" - "Executive-Summary directory.\n" - "This needs to be removed before\n" - "Evolution will run.\n" - "Do you want me to remove this directory?"), - GNOME_MESSAGE_BOX_INFO, - GNOME_STOCK_BUTTON_YES, - GNOME_STOCK_BUTTON_NO, - NULL); - switch (gnome_dialog_run_and_close (GNOME_DIALOG (dialog))) { - case 0: - e_shell_rm_dir (file); - break; - - default: - return FALSE; - } - } - } - - g_free (file); - file = g_strdup_printf ("%s/searches.xml", evolution_directory); if (stat (file, &statinfo) != 0) { e_notice (NULL, GTK_MESSAGE_ERROR, |