diff --git a/src/gui/calendar-management/gcal-edit-calendar-page.c b/src/gui/calendar-management/gcal-edit-calendar-page.c index 1a26414d..c2fb2a2a 100644 --- a/src/gui/calendar-management/gcal-edit-calendar-page.c +++ b/src/gui/calendar-management/gcal-edit-calendar-page.c @@ -158,9 +158,12 @@ setup_calendar (GcalEditCalendarPage *self, basename = g_file_get_basename (file); uri = g_file_get_uri (file); - text = g_strdup_printf ("%s", uri, basename); + text = g_strdup_printf ("%1$s", basename, uri); adw_action_row_set_subtitle (self->calendar_url_row, text); - gtk_widget_set_tooltip_text (GTK_WIDGET (self->calendar_url_row), basename); + + gtk_accessible_update_property (GTK_ACCESSIBLE (self->calendar_url_row), + GTK_ACCESSIBLE_PROPERTY_LABEL, basename, + -1); } /* If it's remote, build the uri */ @@ -175,9 +178,12 @@ setup_calendar (GcalEditCalendarPage *self, guri = e_source_webdav_dup_uri (webdav); uri = g_uri_to_string_partial (guri, G_URI_HIDE_PASSWORD); - text = g_strdup_printf ("%s", uri, uri); + text = g_strdup_printf ("%1$s", uri); adw_action_row_set_subtitle (self->calendar_url_row, text); - gtk_widget_set_tooltip_text (GTK_WIDGET (self->calendar_url_row), uri); + + gtk_accessible_update_property (GTK_ACCESSIBLE (self->calendar_url_row), + GTK_ACCESSIBLE_PROPERTY_LABEL, uri, + -1); } if (is_goa)