Commit 4dcc79c1 authored by Philipp Hörist's avatar Philipp Hörist

GroupchatInfo: Use open_uri() for subject links

parent f6df6ec5
Pipeline #4013 passed with stages
in 2 minutes and 50 seconds
......@@ -298,6 +298,7 @@
<property name="wrap_mode">word-char</property>
<property name="selectable">True</property>
<property name="xalign">0</property>
<signal name="activate-link" handler="_on_activate_subject_link" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>
......
......@@ -223,6 +223,13 @@ class GroupChatInfoScrolled(Gtk.ScrolledWindow):
open_uri('xmpp:%s?message' % button.get_uri(), account=self._account)
return Gdk.EVENT_STOP
@staticmethod
def _on_activate_subject_link(_label, uri):
# We have to use this, because the default GTK handler
# is not cross-platform compatible
open_uri(uri)
return Gdk.EVENT_STOP
@staticmethod
def _get_feature_icon(icon, tooltip):
image = Gtk.Image.new_from_icon_name(icon, Gtk.IconSize.MENU)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment