GNOME Bugzilla – Bug 709889
Topic can't be selected and copied
Last modified: 2013-10-14 17:58:53 UTC
Created attachment 256977 [details] topic screenshoot It's very useful to copy the URL from topic or make it clickable like in chatzilla: https://addons.cdn.mozilla.net/img/uploads/previews/full/41/41015.png?modified=1331247702 Also it'd cool to change Topic in this way if you have permissions.
(In reply to comment #0) > It's very useful to copy the URL from topic or make it clickable I don't think making it selectable is a good idea - it is part of the titlebar, so we should leave some space for dragging the window. Making URLs clickable sounds like a good idea to me though. > Also it'd cool to change Topic in this way if you have permissions. If you have permissions, you can already change the topic using /topic - not sure it's a feature that needs more prominent exposure, I'll leave that to the designers to judge :-)
Created attachment 257137 [details] [review] ui: Use a custom title widget in header bar GtkHeaderBar's title/subtitle behavior is very close to what we want, except that it does not allow markup for either property. However as channel topics frequently contain URLs, this is something we depend on in order to display URLs as clickable links, so replace GtkHeaderBar's default title with a custom widget which replicates the built-in behavior, but parses markup in subtitles.
Created attachment 257138 [details] [review] ui: Use a custom title widget in header bar GtkHeaderBar's title/subtitle behavior is very close to what we want, except that it does not allow markup for either property. However as channel topics frequently contain URLs, this is something we depend on in order to display URLs as clickable links, so replace GtkHeaderBar's default title with a custom widget which replicates the built-in behavior, but parses markup in subtitles.
Created attachment 257139 [details] [review] chatView: Move findUrls() to utils We will use it to identify links in topics.
Created attachment 257140 [details] [review] mainWindow: Turn URLs in topics into clickable links Channel topics commonly contain URLs, which we currently display as plain (and as part of the window decoration: unselectable) text. Turn them into proper links instead to allow users to easily follow them.
Attachment 257138 [details] pushed as 37116a8 - ui: Use a custom title widget in header bar Attachment 257139 [details] pushed as c45096c - chatView: Move findUrls() to utils Attachment 257140 [details] pushed as 6dfbe3c - mainWindow: Turn URLs in topics into clickable links