From 9d77b85ae36094fd1a0b07be4ebb69e047c9cec1 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 2 Dec 2002 03:23:57 +0000 Subject: changed to use a gtkdialog instead of a gnome one. 2002-11-27 Not Zed * 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 --- shell/e-shell.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'shell/e-shell.c') diff --git a/shell/e-shell.c b/shell/e-shell.c index d43cdef323..d7818aa400 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -170,7 +170,7 @@ pop_up_activation_error_dialog (ESplash *splash, char *error_message; error_message = e_get_activation_failure_msg (ev); - e_notice (GTK_WINDOW (splash), GNOME_MESSAGE_BOX_ERROR, + e_notice (GTK_WINDOW (splash), GTK_MESSAGE_ERROR, _("Cannot activate component %s :\n" "The error from the activation system is:\n" "%s"), @@ -831,7 +831,7 @@ setup_components (EShell *shell, if (splash != NULL) e_splash_add_icon (splash, icon_pixbuf); - gdk_pixbuf_unref (icon_pixbuf); + g_object_unref (icon_pixbuf); g_free (icon_path); } @@ -1168,7 +1168,7 @@ class_init (EShellClass *klass) GObjectClass *object_class; POA_GNOME_Evolution_Shell__epv *epv; - parent_class = gtk_type_class (PARENT_TYPE); + parent_class = g_type_class_ref(PARENT_TYPE); object_class = G_OBJECT_CLASS (klass); object_class->dispose = impl_dispose; @@ -1178,7 +1178,7 @@ class_init (EShellClass *klass) gtk_signal_new ("no_views_left", GTK_RUN_LAST, GTK_CLASS_TYPE (object_class), - GTK_SIGNAL_OFFSET (EShellClass, no_views_left), + G_STRUCT_OFFSET (EShellClass, no_views_left), e_shell_marshal_NONE__NONE, GTK_TYPE_NONE, 0); @@ -1186,7 +1186,7 @@ class_init (EShellClass *klass) gtk_signal_new ("line_status_changed", GTK_RUN_LAST, GTK_CLASS_TYPE (object_class), - GTK_SIGNAL_OFFSET (EShellClass, line_status_changed), + G_STRUCT_OFFSET (EShellClass, line_status_changed), e_shell_marshal_NONE__INT, GTK_TYPE_NONE, 1, GTK_TYPE_INT); @@ -1195,7 +1195,7 @@ class_init (EShellClass *klass) gtk_signal_new ("new_view_created", GTK_RUN_LAST, GTK_CLASS_TYPE (object_class), - GTK_SIGNAL_OFFSET (EShellClass, new_view_created), + G_STRUCT_OFFSET (EShellClass, new_view_created), e_shell_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); @@ -1816,7 +1816,7 @@ e_shell_component_maybe_crashed (EShell *shell, else parent_window = GTK_WINDOW (shell_view); - e_notice (parent_window, GNOME_MESSAGE_BOX_ERROR, + e_notice (parent_window, GTK_MESSAGE_ERROR, _("The Evolution component that handles folders of type \"%s\"\n" "has unexpectedly quit. You will need to quit Evolution and restart\n" "in order to access that data again."), -- cgit