From 2b9f864daf03aa8e130385f082a9b9072fdd4349 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Wed, 22 May 2002 20:49:13 +0000 Subject: New callback for when the first created view in the shell gets mapped. * main.c (view_map_callback): New callback for when the first created view in the shell gets mapped. (new_view_created_callback): New callback for when the first view of the shell gets created. (show_development_warning): New function to display a warning about the fact that Evolution is unstable. (idle_cb): Call show_development_warning() here unless the EVOLVE_ME_HARDER environment variable is set. * e-shell.c (class_init): Add the "new_view_created" signal here. (create_view): Emit the signal here. * e-shell.h: New signal "new_view_created". svn path=/trunk/; revision=16977 --- shell/e-shell.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'shell/e-shell.c') diff --git a/shell/e-shell.c b/shell/e-shell.c index f2f41baa32..d16b449647 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -150,6 +150,7 @@ struct _EShellPrivate { enum { NO_VIEWS_LEFT, LINE_STATUS_CHANGED, + NEW_VIEW_CREATED, LAST_SIGNAL }; @@ -1027,6 +1028,8 @@ create_view (EShell *shell, e_shell_view_show_shortcut_bar (view, e_shell_view_shortcut_bar_shown (template_view)); } + gtk_signal_emit (GTK_OBJECT (shell), signals[NEW_VIEW_CREATED], view); + return view; } @@ -1142,6 +1145,15 @@ class_init (EShellClass *klass) GTK_TYPE_NONE, 1, GTK_TYPE_ENUM); + signals[NEW_VIEW_CREATED] = + gtk_signal_new ("new_view_created", + GTK_RUN_LAST, + object_class->type, + GTK_SIGNAL_OFFSET (EShellClass, new_view_created), + gtk_marshal_NONE__POINTER, + GTK_TYPE_NONE, 1, + GTK_TYPE_POINTER); + gtk_object_class_add_signals (object_class, signals, LAST_SIGNAL); epv = & klass->epv; -- cgit