diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2004-01-16 08:46:01 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-01-16 08:46:01 +0800 |
commit | 8cfbc8ec2dfb219b67608b38f58130dd67310c04 (patch) | |
tree | dece3ca5a52adb1e9328b23e034f12375bdf5a60 /calendar/gui/e-tasks.c | |
parent | 0ff3f18cf40dd18e7f54f20cf9b780852af650b3 (diff) | |
download | gsoc2013-evolution-8cfbc8ec2dfb219b67608b38f58130dd67310c04.tar.gz gsoc2013-evolution-8cfbc8ec2dfb219b67608b38f58130dd67310c04.tar.zst gsoc2013-evolution-8cfbc8ec2dfb219b67608b38f58130dd67310c04.zip |
new function. (impl_createControls): create a task bar also for the tasks
2004-01-16 Rodrigo Moya <rodrigo@ximian.com>
* gui/tasks-component.[ch]
(tasks_component_peek_activity_handler): new function.
(impl_createControls): create a task bar also for the tasks
component. We can't rely on the calendar component's one.
(tasks_component_init): create the private activity handler.
* gui/e-calendar-table.c (e_calendar_table_set_status_message):
use the tasks component's activity handler.
* gui/e-tasks.c (on_url_cb): new callback to display status
bar messages when mousing over links.
(setup_widgets): connect to "on_url" signal on the HTML widget.
svn path=/trunk/; revision=24262
Diffstat (limited to 'calendar/gui/e-tasks.c')
-rw-r--r-- | calendar/gui/e-tasks.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c index 085751c1da..7b5abba0c9 100644 --- a/calendar/gui/e-tasks.c +++ b/calendar/gui/e-tasks.c @@ -303,6 +303,20 @@ on_link_clicked (GtkHTML *html, const char *url, gpointer data) } } +static void +on_url_cb (GtkHTML *html, const char *url, gpointer data) +{ + char *msg; + ETasks *tasks = data; + + if (url && *url) { + msg = g_strdup_printf (_("Click to open %s"), url); + e_calendar_table_set_status_message (e_tasks_get_calendar_table (tasks), msg); + g_free (msg); + } else + e_calendar_table_set_status_message (e_tasks_get_calendar_table (tasks), NULL); +} + /* Callback used when the cursor changes in the table */ static void table_cursor_change_cb (ETable *etable, int row, gpointer data) @@ -557,6 +571,8 @@ setup_widgets (ETasks *tasks) G_CALLBACK (url_requested_cb), NULL); g_signal_connect (G_OBJECT (priv->html), "link_clicked", G_CALLBACK (on_link_clicked), tasks); + g_signal_connect (G_OBJECT (priv->html), "on_url", + G_CALLBACK (on_url_cb), tasks); gtk_widget_pop_colormap (); scroll = gtk_scrolled_window_new (NULL, NULL); |