aboutsummaryrefslogtreecommitdiffstats
path: root/shell/main.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-02-04 18:55:25 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-02-04 18:55:25 +0800
commit3a96d74c2bcd6c646c8176d88e82836aeab5d9bf (patch)
tree4022204d16d752ae1b16c17f4ee951c9385b44cb /shell/main.c
parentef8a0762ac9e07a36e8d39d2948c8acd065aa350 (diff)
downloadgsoc2013-evolution-3a96d74c2bcd6c646c8176d88e82836aeab5d9bf.tar
gsoc2013-evolution-3a96d74c2bcd6c646c8176d88e82836aeab5d9bf.tar.gz
gsoc2013-evolution-3a96d74c2bcd6c646c8176d88e82836aeab5d9bf.tar.bz2
gsoc2013-evolution-3a96d74c2bcd6c646c8176d88e82836aeab5d9bf.tar.lz
gsoc2013-evolution-3a96d74c2bcd6c646c8176d88e82836aeab5d9bf.tar.xz
gsoc2013-evolution-3a96d74c2bcd6c646c8176d88e82836aeab5d9bf.tar.zst
gsoc2013-evolution-3a96d74c2bcd6c646c8176d88e82836aeab5d9bf.zip
** See bug #53683.
2004-02-04 Not Zed <NotZed@Ximian.com> ** See bug #53683. * Evolution-Component.idl: added EvolutionComponent::quit() call. * main.c (quit_box_new): removed, dont show quit box anymore at the end, we've already shutdown by now with the new shutdown sequence. * e-shell-window-commands.c (command_quit): call e_shell_quit to quit. * e-shell.c (e_shell_prepare_for_quit): renamed es_run_quit, now internal, and a gtktimeout function, so return code inverted. (e_shell_quit): new public entry, find out if we can shutdown, if so, then trigger a shutdown. (e_shell_request_close_window): just call e_shell_quit to exit when we've run out of windows. (e_shell_quit): desensitise all of the app windows before running shutdown. looks a bit weird, but not doing so looks worse. svn path=/trunk/; revision=24609
Diffstat (limited to 'shell/main.c')
-rw-r--r--shell/main.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/shell/main.c b/shell/main.c
index eb0af46f70..18762df621 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -97,68 +97,10 @@ static gboolean force_migrate = FALSE;
static char *default_component_id = NULL;
static char *evolution_debug_log = NULL;
-
-static GtkWidget *
-quit_box_new (void)
-{
- GtkWidget *window;
- GtkWidget *label;
- GtkWidget *frame;
-
- window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
- gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER);
-
- /* (Just to prevent smart-ass window managers like Sawfish from setting
- the make the dialog as big as the standard Evolution window). */
- gtk_window_set_wmclass (GTK_WINDOW (window), "evolution-quit", "Evolution:quit");
-
- e_make_widget_backing_stored (window);
-
- gtk_window_set_title (GTK_WINDOW (window), _("Evolution"));
-
- frame = gtk_frame_new (NULL);
- gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_OUT);
- gtk_container_add (GTK_CONTAINER (window), frame);
-
- label = gtk_label_new (_("Evolution is now exiting ..."));
- gtk_misc_set_padding (GTK_MISC (label), 30, 25);
-
- gtk_container_add (GTK_CONTAINER (frame), label);
-
- gtk_widget_show_now (frame);
- gtk_widget_show_now (label);
- gtk_widget_show_now (window);
-
- /* For some reason, the window fails to update without this
- sometimes. */
- gtk_widget_queue_draw (window);
- gtk_widget_queue_draw (label);
- gtk_widget_queue_draw (frame);
-
- gdk_flush ();
-
- while (gtk_events_pending ())
- gtk_main_iteration ();
-
- gdk_flush ();
-
- return window;
-}
-
static void
no_windows_left_cb (EShell *shell, gpointer data)
{
- GtkWidget *quit_box;
-
- quit_box = quit_box_new ();
- g_object_add_weak_pointer (G_OBJECT (quit_box), (void **) &quit_box);
-
bonobo_object_unref (BONOBO_OBJECT (shell));
-
- if (quit_box != NULL)
- gtk_widget_destroy (quit_box);
-
bonobo_main_quit ();
}