diff options
Diffstat (limited to 'calendar/modules/e-cal-shell-view-taskpad.c')
-rw-r--r-- | calendar/modules/e-cal-shell-view-taskpad.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/calendar/modules/e-cal-shell-view-taskpad.c b/calendar/modules/e-cal-shell-view-taskpad.c index 082572b4c8..651cf1e878 100644 --- a/calendar/modules/e-cal-shell-view-taskpad.c +++ b/calendar/modules/e-cal-shell-view-taskpad.c @@ -233,14 +233,17 @@ static void action_calendar_taskpad_open_url_cb (GtkAction *action, ECalShellView *cal_shell_view) { + EShellView *shell_view; + EShellWindow *shell_window; ECalShellContent *cal_shell_content; ECalendarTable *task_table; ECalModelComponent *comp_data; icalproperty *prop; - GdkScreen *screen; const gchar *uri; GSList *list; - GError *error = NULL; + + shell_view = E_SHELL_VIEW (cal_shell_view); + shell_window = e_shell_view_get_shell_window (shell_view); cal_shell_content = cal_shell_view->priv->cal_shell_content; task_table = e_cal_shell_content_get_task_table (cal_shell_content); @@ -254,14 +257,8 @@ action_calendar_taskpad_open_url_cb (GtkAction *action, comp_data->icalcomp, ICAL_URL_PROPERTY); g_return_if_fail (prop == NULL); - screen = gtk_widget_get_screen (GTK_WIDGET (cal_shell_view)); uri = icalproperty_get_url (prop); - gtk_show_uri (screen, uri, GDK_CURRENT_TIME, &error); - - if (error != NULL) { - g_warning ("%s", error->message); - g_error_free (error); - } + e_show_uri (GTK_WINDOW (shell_window), uri); } static void |