diff options
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r-- | shell/e-shell-view.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index f580b1aa4e..0bfa17c0cc 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -401,6 +401,12 @@ shell_view_constructed (GObject *object) /* Invoke factory methods. */ + /* Create the taskbar widget first so the content and + * sidebar widgets can access it during construction. */ + widget = shell_view_class->new_shell_taskbar (shell_view); + shell_view->priv->shell_taskbar = g_object_ref_sink (widget); + gtk_widget_show (widget); + widget = shell_view_class->new_shell_content (shell_view); shell_view->priv->shell_content = g_object_ref_sink (widget); gtk_widget_show (widget); @@ -409,10 +415,6 @@ shell_view_constructed (GObject *object) shell_view->priv->shell_sidebar = g_object_ref_sink (widget); gtk_widget_show (widget); - widget = shell_view_class->new_shell_taskbar (shell_view); - shell_view->priv->shell_taskbar = g_object_ref_sink (widget); - gtk_widget_show (widget); - /* Size group should be safe to unreference now. */ g_object_unref (shell_view->priv->size_group); shell_view->priv->size_group = NULL; |