From e2b0897d8088cb4c118f4564e9f6de2845de3176 Mon Sep 17 00:00:00 2001 From: ERDI Gergo Date: Wed, 7 Jan 2004 14:29:08 +0000 Subject: Emit a hover-url signal when the user mouses over a URL, ... 2004-01-04 ERDI Gergo * em-folder-view.c (emfv_on_url_cb): Emit a hover-url signal when the user mouses over a URL, ... (emfv_hover_url_impl): ... and use BonoboUI to change the status bar message... (em_folder_view_set_statusbar): ... unless we are asked not to, ... * mail-component.c (impl_createControls): ... like in the case of the mail component, ... (view_hover_url_cb): ... that uses the ActivityHandler to do the same Add these together, and #127536 is neatly solved. 2004-01-05 ERDI Gergo * e-task-bar.c (init): Create a separate label to the left of the progress messages... (e_task_bar_message): ...and allow components to set it... * e-activity-handler.c (e_activity_handler_message): ...through this new ActivityHandler method svn path=/trunk/; revision=24086 --- mail/mail-component.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mail/mail-component.c') diff --git a/mail/mail-component.c b/mail/mail-component.c index 442b17e9ac..a764e1b7c6 100644 --- a/mail/mail-component.c +++ b/mail/mail-component.c @@ -319,6 +319,13 @@ impl_finalize (GObject *object) (* G_OBJECT_CLASS (parent_class)->finalize) (object); } +static void +view_on_url (GObject *emitter, const char *url, const char *nice_url, MailComponent *mail_component) +{ + MailComponentPrivate *priv = mail_component->priv; + + e_activity_handler_set_message (priv->activity_handler, nice_url); +} /* Evolution::Component CORBA methods. */ @@ -342,6 +349,9 @@ impl_createControls (PortableServer_Servant servant, tree_widget = (GtkWidget *) em_folder_tree_new_with_model (priv->model); em_folder_tree_enable_drag_and_drop ((EMFolderTree *) tree_widget); em_format_set_session ((EMFormat *) ((EMFolderView *) view_widget)->preview, session); + + g_signal_connect (view_widget, "on-url", G_CALLBACK (view_on_url), mail_component); + em_folder_view_set_statusbar ((EMFolderView*)view_widget, FALSE); statusbar_widget = e_task_bar_new (); e_activity_handler_attach_task_bar (priv->activity_handler, E_TASK_BAR (statusbar_widget)); -- cgit v1.2.3