From 35162bcd8728297bff435a5592328051fd1df211 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Thu, 2 Nov 2000 00:31:17 +0000 Subject: Moving the executive summarys now :) Added a way to change the window title and the current view from Components mail-summary now has clickable names to change to that view executive summary remembers what components are running when you close. Selections are not cleared by ES updates. svn path=/trunk/; revision=6329 --- shell/e-shell-view.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'shell/e-shell-view.c') diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index d75ba021d0..45f4fa0ef7 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -797,6 +797,34 @@ shell_view_interface_unset_message_cb (EvolutionShellView *shell_view, stop_progress_bar (E_SHELL_VIEW (data)); } +static void +shell_view_interface_change_current_view_cb (EvolutionShellView *shell_view, + const char *uri, + void *data) +{ + EShellView *view; + + view = E_SHELL_VIEW (data); + + g_return_if_fail (view != NULL); + + e_shell_view_display_uri (view, uri); +} + +static void +shell_view_interface_set_title (EvolutionShellView *shell_view, + const char *title, + void *data) +{ + EShellView *view; + + view = E_SHELL_VIEW (data); + + g_return_if_fail (view != NULL); + + gtk_window_set_title (GTK_WINDOW (view), title); +} + EShellView * e_shell_view_construct (EShellView *shell_view, @@ -1066,6 +1094,12 @@ setup_evolution_shell_view_interface (EShellView *shell_view, gtk_signal_connect_while_alive (GTK_OBJECT (shell_view_interface), "unset_message", GTK_SIGNAL_FUNC (shell_view_interface_unset_message_cb), shell_view, GTK_OBJECT (shell_view)); + gtk_signal_connect_while_alive (GTK_OBJECT (shell_view_interface), "change_current_view", + GTK_SIGNAL_FUNC (shell_view_interface_change_current_view_cb), + shell_view, GTK_OBJECT (shell_view)); + gtk_signal_connect_while_alive (GTK_OBJECT (shell_view_interface), "set_title", + GTK_SIGNAL_FUNC (shell_view_interface_set_title), + shell_view, GTK_OBJECT (shell_view)); bonobo_object_add_interface (BONOBO_OBJECT (control_frame), BONOBO_OBJECT (shell_view_interface)); -- cgit