diff options
author | ERDI Gergo <cactus@cactus.rulez.org> | 2004-01-07 22:29:08 +0800 |
---|---|---|
committer | ÉRDI Gergo <cactus@src.gnome.org> | 2004-01-07 22:29:08 +0800 |
commit | e2b0897d8088cb4c118f4564e9f6de2845de3176 (patch) | |
tree | 23af259b80ece4d26fe94085123f326e7f60582b /mail/mail-component.c | |
parent | 79373d6650bfb2f10b91772e10aafcd52badfb26 (diff) | |
download | gsoc2013-evolution-e2b0897d8088cb4c118f4564e9f6de2845de3176.tar gsoc2013-evolution-e2b0897d8088cb4c118f4564e9f6de2845de3176.tar.gz gsoc2013-evolution-e2b0897d8088cb4c118f4564e9f6de2845de3176.tar.bz2 gsoc2013-evolution-e2b0897d8088cb4c118f4564e9f6de2845de3176.tar.lz gsoc2013-evolution-e2b0897d8088cb4c118f4564e9f6de2845de3176.tar.xz gsoc2013-evolution-e2b0897d8088cb4c118f4564e9f6de2845de3176.tar.zst gsoc2013-evolution-e2b0897d8088cb4c118f4564e9f6de2845de3176.zip |
Emit a hover-url signal when the user mouses over a URL, ...
2004-01-04 ERDI Gergo <cactus@cactus.rulez.org>
* 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 <cactus@cactus.rulez.org>
* 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
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r-- | mail/mail-component.c | 10 |
1 files changed, 10 insertions, 0 deletions
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)); |