Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gajim
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
208
Issues
208
List
Boards
Labels
Service Desk
Milestones
Merge Requests
21
Merge Requests
21
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim
Commits
9d6fac69
Commit
9d6fac69
authored
Nov 20, 2018
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix opening links in MUC subject
The default GTK link handler does not work on Windows and Mac Fixes
#9453
parent
e1773e20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
gajim/groupchat_control.py
gajim/groupchat_control.py
+9
-0
No files found.
gajim/groupchat_control.py
View file @
9d6fac69
...
...
@@ -54,6 +54,7 @@
from
gajim.common
import
events
from
gajim.common
import
app
from
gajim.common
import
helpers
from
gajim.common.helpers
import
launch_browser_mailer
from
gajim.common.modules
import
dataforms
from
gajim.common
import
ged
from
gajim.common
import
i18n
...
...
@@ -3050,6 +3051,7 @@ def __init__(self):
self
.
label
.
set_line_wrap
(
True
)
self
.
label
.
set_line_wrap_mode
(
Pango
.
WrapMode
.
WORD_CHAR
)
self
.
label
.
set_max_width_chars
(
80
)
self
.
label
.
connect
(
'activate-link'
,
self
.
_on_activate_link
)
scrolledwindow
.
add
(
self
.
label
)
...
...
@@ -3069,3 +3071,10 @@ def _after_show(self, *args):
# So we switch after show to False and again to True
self
.
label
.
set_selectable
(
False
)
self
.
label
.
set_selectable
(
True
)
@
staticmethod
def
_on_activate_link
(
_label
,
uri
):
# We have to use this, because the default GTK handler
# is not cross-platform compatible
launch_browser_mailer
(
None
,
uri
)
return
Gdk
.
EVENT_STOP
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment