diff options
author | Chris Toshok <toshok@ximian.com> | 2001-05-11 19:14:45 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-05-11 19:14:45 +0800 |
commit | 7da5a58462520d93415418c258acf0cb73972977 (patch) | |
tree | 622ff65e2a4a476014e463955fe6ccd33502316d /shell/e-shell-view.c | |
parent | cbac81dad3f47593214799048830aec547154409 (diff) | |
download | gsoc2013-evolution-7da5a58462520d93415418c258acf0cb73972977.tar.gz gsoc2013-evolution-7da5a58462520d93415418c258acf0cb73972977.tar.zst gsoc2013-evolution-7da5a58462520d93415418c258acf0cb73972977.zip |
the only problematic area - pass NULL for now in as the BonoboUIContainer.
2001-05-11 Chris Toshok <toshok@ximian.com>
* evolution-storage-set-view-factory.c
(evolution_storage_set_view_factory_new_view): the only
problematic area - pass NULL for now in as the BonoboUIContainer.
how do we pass this container to the control?
* e-storage-set-view.c (folder_context_menu_activate): un-#if 0
this function.
(populate_folder_context_menu_with_common_items): build our popup
using the new xml bonobo stuffs.
(popup_folder_menu): convert to using the new xml bonobo stuffs.
(right_click): only do the popup menu if we have a
BonoboUIContainer.
(e_storage_set_view_new): add BonoboUIContainer* arg.
(e_storage_set_view_construct): same.
* e-storage-set-view.h: add BonoboUIContainer* args to
e_storage_set_view_new and e_storage_set_view_construct.
* e-shell-folder-creation-dialog.c (add_storage_set_view): pass
NULL for the BonoboUIContainer, since we shouldn't (?) have a
popup in this dialog.
* e-shell-folder-selection-dialog.c
(e_shell_folder_selection_dialog_construct): pass NULL for the
BonoboUIContainer, since we shouldn't (?) have a popup in this
dialog.
* e-storage-set.h: add BonoboUIContainer* arg to
e_storage_set_new_view.
* e-storage-set.c (e_storage_set_new_view): add arg, and track
change to e_storage_set_view_new.
* e-shell-view.h: add prototype for
e_shell_view_get_bonobo_ui_container.
* e-shell-view.c (setup_storage_set_subwindow): track change to
e_storage_set_view_new.
(e_shell_view_construct): the BonoboUIContainer is now part of our
private structure.
(e_shell_view_get_bonobo_ui_container): new function.
svn path=/trunk/; revision=9756
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r-- | shell/e-shell-view.c | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index f96daac3dc..f6e2a28dc1 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -71,8 +71,9 @@ struct _EShellViewPrivate { Evolution::ShellView interface. */ EvolutionShellView *corba_interface; - /* The UI handler. */ + /* The UI handler & container. */ BonoboUIComponent *ui_component; + BonoboUIContainer *ui_container; /* Currently displayed URI. */ char *uri; @@ -535,7 +536,7 @@ setup_storage_set_subwindow (EShellView *shell_view) priv = shell_view->priv; - storage_set_view = e_storage_set_view_new (e_shell_get_storage_set (priv->shell)); + storage_set_view = e_storage_set_view_new (e_shell_get_storage_set (priv->shell), priv->ui_container); gtk_signal_connect (GTK_OBJECT (storage_set_view), "folder_selected", GTK_SIGNAL_FUNC (folder_selected_cb), shell_view); gtk_signal_connect (GTK_OBJECT (storage_set_view), "storage_selected", @@ -996,7 +997,6 @@ e_shell_view_construct (EShellView *shell_view, EShellViewPrivate *priv; EShellView *view; GtkObject *window; - BonoboUIContainer *container; g_return_val_if_fail (shell != NULL, NULL); g_return_val_if_fail (shell_view != NULL, NULL); @@ -1021,13 +1021,14 @@ e_shell_view_construct (EShellView *shell_view, gtk_signal_connect_while_alive (GTK_OBJECT (e_shell_get_storage_set (priv->shell)), "updated_folder", updated_folder_cb, shell_view, GTK_OBJECT (shell_view)); - container = bonobo_ui_container_new (); - bonobo_ui_container_set_win (container, BONOBO_WINDOW (shell_view)); - gtk_signal_connect (GTK_OBJECT (container), "system_exception", GTK_SIGNAL_FUNC (unmerge_on_error), NULL); + priv->ui_container = bonobo_ui_container_new (); + bonobo_ui_container_set_win (priv->ui_container, BONOBO_WINDOW (shell_view)); + gtk_signal_connect (GTK_OBJECT (priv->ui_container), + "system_exception", GTK_SIGNAL_FUNC (unmerge_on_error), NULL); priv->ui_component = bonobo_ui_component_new ("evolution"); bonobo_ui_component_set_container (priv->ui_component, - bonobo_object_corba_objref (BONOBO_OBJECT (container))); + bonobo_object_corba_objref (BONOBO_OBJECT (priv->ui_container))); bonobo_ui_component_freeze (priv->ui_component, NULL); @@ -1752,6 +1753,15 @@ e_shell_view_get_bonobo_ui_component (EShellView *shell_view) return shell_view->priv->ui_component; } +BonoboUIContainer * +e_shell_view_get_bonobo_ui_container (EShellView *shell_view) +{ + g_return_val_if_fail (shell_view != NULL, NULL); + g_return_val_if_fail (E_IS_SHELL_VIEW (shell_view), NULL); + + return shell_view->priv->ui_container; +} + GtkWidget * e_shell_view_get_appbar (EShellView *shell_view) { |