aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorMichael Meeks <michael@helixcode.com>2000-10-05 15:10:04 +0800
committerMichael Meeks <mmeeks@src.gnome.org>2000-10-05 15:10:04 +0800
commitd5a93f01c1a20edf80be106993f64fc0385a7a59 (patch)
treed4cc42300219571c4b1865bb9c42d5d7a0ff87fa /shell/e-shell-view.c
parent83b5ac87fca211734b8712b1bbe3247ab89f98fc (diff)
downloadgsoc2013-evolution-d5a93f01c1a20edf80be106993f64fc0385a7a59.tar
gsoc2013-evolution-d5a93f01c1a20edf80be106993f64fc0385a7a59.tar.gz
gsoc2013-evolution-d5a93f01c1a20edf80be106993f64fc0385a7a59.tar.bz2
gsoc2013-evolution-d5a93f01c1a20edf80be106993f64fc0385a7a59.tar.lz
gsoc2013-evolution-d5a93f01c1a20edf80be106993f64fc0385a7a59.tar.xz
gsoc2013-evolution-d5a93f01c1a20edf80be106993f64fc0385a7a59.tar.zst
gsoc2013-evolution-d5a93f01c1a20edf80be106993f64fc0385a7a59.zip
Disable summary stuff, it appears to be badly broken.
2000-10-05 Michael Meeks <michael@helixcode.com> * component-factory.c (summary_fn, component_factory_init): Disable summary stuff, it appears to be badly broken. * Makefile.am (evolution_mail_SOURCES): add mail-summary.[ch] * subscribe-dialog.c (update_pixmaps): upd. (set_pixmap): upd. (subscribe_dialog_gui_init): upd. remove redundant and annoying forward definitions. * folder-browser-factory.c (control_deactivate): upd. (control_activate_cb): upd. (control_activate): upd. (set_pixmap): upd. (update_pixmaps): upd. (register_ondemand): upd. (create_ondemand_hooks): upd. 2000-10-05 Michael Meeks <michael@helixcode.com> * e-shell-view-menu.c (shortcut_bar_mode_changed_cb): upd. (folder_bar_mode_changed_cb): upd. (command_xml_dump): clobber. (e_shell_view_menu_setup): upd. * e-shell-view.c (shell_view_interface_set_message_cb): upd. (shell_view_interface_unset_message_cb): upd. (e_shell_view_construct): upd. (get_control_for_uri): upd. (e_shell_view_get_bonobo_ui_component): upd. 2000-10-05 Michael Meeks <michael@helixcode.com> * contact-editor/e-contact-editor.c (create_ui): upd. (e_contact_editor_init): upd. * gui/component/addressbook.c (control_activate_cb): upd. (control_deactivate): kill. (control_activate): upd. 2000-10-05 Michael Meeks <michael@helixcode.com> * gui/calendar-commands.c: upd. (calendar_control_activate): upd. (calendar_control_deactivate): upd. 2000-10-05 Michael Meeks <michael@helixcode.com> * component/e-summary-factory.c (control_activate): upd. (set_pixmap): upd. (update_pixmaps): upd. (control_activate_cb): upd. (control_deactivate): upd. svn path=/trunk/; revision=5742
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c58
1 files changed, 26 insertions, 32 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 2b56a91317..6802e2008a 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -60,7 +60,7 @@ struct _EShellViewPrivate {
EShell *shell;
/* The UI handler. */
- BonoboUIHandler *uih;
+ BonoboUIComponent *ui_component;
/* Currently displayed URI. */
char *uri;
@@ -442,9 +442,8 @@ setup_progress_bar (EShellViewPrivate *priv)
control = bonobo_control_new (priv->progress_bar);
g_return_if_fail (control != NULL);
- bonobo_ui_container_object_set (
- bonobo_ui_compat_get_container (priv->uih),
- "/status/Progress",
+ bonobo_ui_component_object_set (
+ priv->ui_component, "/status/Progress",
bonobo_object_corba_objref (BONOBO_OBJECT (control)),
NULL);
}
@@ -555,7 +554,7 @@ destroy (GtkObject *object)
g_hash_table_foreach (priv->uri_to_control, hash_forall_destroy_control, NULL);
g_hash_table_destroy (priv->uri_to_control);
- bonobo_object_unref (BONOBO_OBJECT (priv->uih));
+ bonobo_object_unref (BONOBO_OBJECT (priv->ui_component));
g_free (priv->uri);
@@ -605,7 +604,7 @@ class_init (EShellViewClass *klass)
object_class->destroy = destroy;
- parent_class = gtk_type_class (BONOBO_WIN_TYPE);
+ parent_class = gtk_type_class (BONOBO_TYPE_WIN);
signals[SHORTCUT_BAR_MODE_CHANGED]
= gtk_signal_new ("shortcut_bar_mode_changed",
@@ -636,7 +635,7 @@ init (EShellView *shell_view)
priv = g_new (EShellViewPrivate, 1);
priv->shell = NULL;
- priv->uih = NULL;
+ priv->ui_component = NULL;
priv->uri = NULL;
priv->delayed_selection = NULL;
@@ -754,9 +753,8 @@ shell_view_interface_set_message_cb (EvolutionShellView *shell_view,
} else
status = g_strdup ("");
- bonobo_ui_container_set_status (
- bonobo_ui_compat_get_container (view->priv->uih),
- status, NULL);
+ bonobo_ui_component_set_status (
+ view->priv->ui_component, status, NULL);
g_free (status);
@@ -776,9 +774,8 @@ shell_view_interface_unset_message_cb (EvolutionShellView *shell_view,
g_return_if_fail (view != NULL);
- bonobo_ui_container_set_status (
- bonobo_ui_compat_get_container (view->priv->uih),
- "", NULL);
+ bonobo_ui_component_set_status (
+ view->priv->ui_component, "", NULL);
stop_progress_bar (E_SHELL_VIEW (data));
}
@@ -791,8 +788,7 @@ e_shell_view_construct (EShellView *shell_view,
EShellViewPrivate *priv;
EShellView *view;
GtkObject *window;
- Bonobo_UIContainer container;
- BonoboUIComponent *component;
+ BonoboUIContainer *container;
g_return_val_if_fail (shell != NULL, NULL);
g_return_val_if_fail (shell_view != NULL, NULL);
@@ -818,18 +814,18 @@ e_shell_view_construct (EShellView *shell_view,
priv->shell = shell;
- priv->uih = bonobo_ui_handler_new ();
- bonobo_ui_handler_set_app (priv->uih, BONOBO_WIN (shell_view));
+ container = bonobo_ui_container_new ();
+ bonobo_ui_container_set_win (container, BONOBO_WIN (shell_view));
- component = bonobo_ui_compat_get_component (priv->uih);
- container = bonobo_ui_compat_get_container (priv->uih);
- g_return_val_if_fail (container != CORBA_OBJECT_NIL, 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_ui_container_freeze (container, NULL);
+ bonobo_ui_component_freeze (priv->ui_component, NULL);
- bonobo_ui_util_set_ui (component, container,
- EVOLUTION_DATADIR, "evolution.xml",
- "evolution");
+ bonobo_ui_util_set_ui (priv->ui_component, EVOLUTION_DATADIR,
+ "evolution.xml", "evolution");
setup_widgets (shell_view);
@@ -837,7 +833,7 @@ e_shell_view_construct (EShellView *shell_view,
e_shell_view_set_folder_bar_mode (shell_view, E_SHELL_VIEW_SUBWINDOW_HIDDEN);
- bonobo_ui_container_thaw (container, NULL);
+ bonobo_ui_component_thaw (priv->ui_component, NULL);
return view;
}
@@ -1122,7 +1118,7 @@ get_control_for_uri (EShellView *shell_view,
control = bonobo_widget_new_control_from_objref (
corba_control,
- bonobo_ui_compat_get_container (priv->uih));
+ bonobo_ui_component_get_container (priv->ui_component));
setup_evolution_shell_view_interface (shell_view, control);
@@ -1148,10 +1144,8 @@ show_existing_view (EShellView *shell_view,
control is dead; if it's zombie, we have to recreate it. */
if (bonobo_widget_is_dead (BONOBO_WIDGET (control))) {
GtkWidget *parent;
- Bonobo_UIContainer uih;
parent = control->parent;
- uih = bonobo_object_corba_objref (BONOBO_OBJECT (priv->uih));
/* Out with the old. */
gtk_container_remove (GTK_CONTAINER (parent), control);
@@ -1375,13 +1369,13 @@ e_shell_view_get_shell (EShellView *shell_view)
return shell_view->priv->shell;
}
-BonoboUIHandler *
-e_shell_view_get_bonobo_ui_handler (EShellView *shell_view)
+BonoboUIComponent *
+e_shell_view_get_bonobo_ui_component (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->uih;
+ return shell_view->priv->ui_component;
}
GtkWidget *
@@ -1491,4 +1485,4 @@ e_shell_view_load_settings (EShellView *shell_view,
}
-E_MAKE_TYPE (e_shell_view, "EShellView", EShellView, class_init, init, BONOBO_WIN_TYPE)
+E_MAKE_TYPE (e_shell_view, "EShellView", EShellView, class_init, init, BONOBO_TYPE_WIN)