diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-05-23 04:49:13 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-05-23 04:49:13 +0800 |
commit | 2b9f864daf03aa8e130385f082a9b9072fdd4349 (patch) | |
tree | 7fb8a345a0382f00e5158dde55fb816baf8bd5f6 /shell/e-shell.c | |
parent | 3e2771669de2d3bd746704c62038771f734fed6b (diff) | |
download | gsoc2013-evolution-2b9f864daf03aa8e130385f082a9b9072fdd4349.tar.gz gsoc2013-evolution-2b9f864daf03aa8e130385f082a9b9072fdd4349.tar.zst gsoc2013-evolution-2b9f864daf03aa8e130385f082a9b9072fdd4349.zip |
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
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r-- | shell/e-shell.c | 12 |
1 files changed, 12 insertions, 0 deletions
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; |