aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-offline-handler.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-01-28 05:09:56 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-01-28 05:09:56 +0800
commit8cf2b9384717c53e7509a20dd19130c2fe5db0a1 (patch)
tree8937d7f7ffdf3519cc3dabc431e8599e51afceaa /shell/e-shell-offline-handler.c
parentdd15703ae5ba4fbca40190130ad64b3e78341a6a (diff)
downloadgsoc2013-evolution-8cf2b9384717c53e7509a20dd19130c2fe5db0a1.tar
gsoc2013-evolution-8cf2b9384717c53e7509a20dd19130c2fe5db0a1.tar.gz
gsoc2013-evolution-8cf2b9384717c53e7509a20dd19130c2fe5db0a1.tar.bz2
gsoc2013-evolution-8cf2b9384717c53e7509a20dd19130c2fe5db0a1.tar.lz
gsoc2013-evolution-8cf2b9384717c53e7509a20dd19130c2fe5db0a1.tar.xz
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-shell-offline-handler.c')
-rw-r--r--shell/e-shell-offline-handler.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/shell/e-shell-offline-handler.c b/shell/e-shell-offline-handler.c
index 28616ffa01..e1bcc3d66d 100644
--- a/shell/e-shell-offline-handler.c
+++ b/shell/e-shell-offline-handler.c
@@ -34,6 +34,7 @@
#include "e-shell-marshal.h"
#include <gtk/gtkclist.h>
+#include <gtk/gtkdialog.h>
#include <gtk/gtklabel.h>
#include <gtk/gtksignal.h>
#include <gtk/gtktypeutils.h>
@@ -41,7 +42,6 @@
#include <gal/util/e-util.h>
-#include <libgnomeui/gnome-dialog.h>
#include <libgnome/gnome-i18n.h>
#include <glade/glade-xml.h>
@@ -569,7 +569,7 @@ update_dialog_clist (EShellOfflineHandler *offline_handler)
}
static void
-dialog_handle_ok (GnomeDialog *dialog,
+dialog_handle_ok (GtkDialog *dialog,
EShellOfflineHandler *offline_handler)
{
EShellOfflineHandlerPrivate *priv;
@@ -577,7 +577,7 @@ dialog_handle_ok (GnomeDialog *dialog,
priv = offline_handler->priv;
- gnome_dialog_set_sensitive (dialog, 0, FALSE);
+ gtk_dialog_set_response_sensitive (dialog, GTK_RESPONSE_OK, FALSE);
instruction_label = glade_xml_get_widget (priv->dialog_gui, "instruction_label");
g_assert (instruction_label != NULL);
@@ -591,7 +591,7 @@ dialog_handle_ok (GnomeDialog *dialog,
}
static void
-dialog_handle_cancel (GnomeDialog *dialog,
+dialog_handle_cancel (GtkDialog *dialog,
EShellOfflineHandler *offline_handler)
{
EShellOfflineHandlerPrivate *priv;
@@ -607,20 +607,20 @@ dialog_handle_cancel (GnomeDialog *dialog,
}
static void
-dialog_clicked_cb (GnomeDialog *dialog,
- int button_number,
- void *data)
+dialog_response_cb (GtkDialog *dialog,
+ int response_id,
+ void *data)
{
EShellOfflineHandler *offline_handler;
offline_handler = E_SHELL_OFFLINE_HANDLER (data);
- switch (button_number) {
- case 0: /* OK */
+ switch (response_id) {
+ case GTK_RESPONSE_OK:
dialog_handle_ok (dialog, offline_handler);
break;
- case 1: /* Cancel */
+ case GTK_RESPONSE_CANCEL:
dialog_handle_cancel (dialog, offline_handler);
break;
@@ -653,12 +653,9 @@ pop_up_confirmation_dialog (EShellOfflineHandler *offline_handler)
/* gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (priv->parent_shell_view)); */
/* gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); */
- gnome_dialog_set_default (GNOME_DIALOG (dialog), 1);
-
update_dialog_clist (offline_handler);
- g_signal_connect (dialog, "clicked",
- G_CALLBACK (dialog_clicked_cb), offline_handler);
+ g_signal_connect (dialog, "response", G_CALLBACK (dialog_response_cb), offline_handler);
gtk_widget_show (dialog);
}