Remote calendar setting "location" URL LinkButton label is too long, preventing the dialog from shrinking its width and fitting on mobile
In version 43, if you have some remote calendars (such as Google calendars, in particular) configured manually through EDS (Evolution Data Server, using Evolution's GUI for example) instead of GOA (GNOME Online Accounts), and in GNOME Calendar you go into the "Manage Calendars..." dialog, and click one of your Google calendars, you will get this very wide window:
As you can see, the Gtk LinkButton widget (named calendar_url_button
) does not wrap nor ellipsize its text label, and since the label is the URL, it can be way too long.
Solutions I can imagine are either ellipsizing the label, allowing to wrap, or simply actually setting the label to a short string instead of letting the URI determine the label. Probably the latter is the best option, using gtk_link_button_new_with_label ()
instead of gtk_link_button_new ()
, and setting the label text to be some standardized translatable string that we could use everywhere such a situation is likely to occur... maybe just a label that says "Online"? You would also need to set the halign
property to on that widget to GTK_ALIGN_START
so that it doesn't look ugly floating in the middle of nowhere in the center. It would look something like this:
This would make the dialog usable even on mobile screens.