Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Huelsmann
gajim
Commits
971e71c3
Commit
971e71c3
authored
20 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
nothing special
parent
6b820391
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/gtkgui/gtkgui.glade
+1
-1
1 addition, 1 deletion
plugins/gtkgui/gtkgui.glade
plugins/gtkgui/tabbed_chat_window.py
+10
-2
10 additions, 2 deletions
plugins/gtkgui/tabbed_chat_window.py
with
11 additions
and
3 deletions
plugins/gtkgui/gtkgui.glade
+
1
−
1
View file @
971e71c3
...
...
@@ -8360,7 +8360,7 @@ Custom</property>
<widget
class=
"GtkHBox"
id=
"tab_hbox"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"homogeneous"
>
False
</property>
<property
name=
"spacing"
>
0
</property>
<property
name=
"spacing"
>
3
</property>
<child>
<widget
class=
"GtkLabel"
id=
"label221"
>
...
...
This diff is collapsed.
Click to expand it.
plugins/gtkgui/tabbed_chat_window.py
+
10
−
2
View file @
971e71c3
...
...
@@ -143,7 +143,7 @@ class tabbed_chat_window:
"""
close window
"""
for
jid
in
self
.
users
:
if
time
.
time
()
-
self
.
last_message_time
[
jid
]
<
2
:
# 2 seconds
dialog
=
Confirmation_dialog
(
_
(
'
You received a message from %s in the last two seconds.
\n
Do you still want to close this window
?
'
)
%
jid
)
dialog
=
Confirmation_dialog
(
_
(
'
You received a message from %s in the last two seconds.
\n
Do you still want to close this window?
'
)
%
jid
)
if
dialog
.
get_response
()
!=
gtk
.
RESPONSE_YES
:
return
True
#stop the propagation of the event
...
...
@@ -233,7 +233,7 @@ class tabbed_chat_window:
def
remove_tab
(
self
,
jid
):
if
time
.
time
()
-
self
.
last_message_time
[
jid
]
<
2
:
dialog
=
Confirmation_dialog
(
_
(
'
You received a message from %s in the last two seconds.
\n
Do you still want to close this tab
?
'
)
%
jid
)
dialog
=
Confirmation_dialog
(
_
(
'
You received a message from %s in the last two seconds.
\n
Do you still want to close this tab?
'
)
%
jid
)
if
dialog
.
get_response
()
!=
gtk
.
RESPONSE_YES
:
return
...
...
@@ -533,6 +533,14 @@ class tabbed_chat_window:
def
hyperlink_handler
(
self
,
texttag
,
widget
,
event
,
iter
,
kind
):
if
event
.
type
==
gtk
.
gdk
.
BUTTON_RELEASE
:
#FIXME (nk to yann):
# can we know if that button release had also before selected text?
# let's say we have http://be this is nice
# and I start to select (with my mouse) the text from right to left
# starting with nice. SO I go nice is this eb//:ptth and just stop pressing the mouse button
# then we will launch the mailer/browser which is not what the user want
# is there sth you do to fix this?
# maybe check before launching if we have a selection with non empty text in it?
begin_iter
=
iter
.
copy
()
#we get the begining of the tag
while
not
begin_iter
.
begins_tag
(
texttag
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment