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
l-n-s
gajim
Commits
bac6ec88
Commit
bac6ec88
authored
19 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
close the groupchat window when esc is pressed
parent
62e05c0c
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/groupchat_window.py
+3
-2
3 additions, 2 deletions
plugins/gtkgui/groupchat_window.py
plugins/gtkgui/gtkgui.glade
+1
-0
1 addition, 0 deletions
plugins/gtkgui/gtkgui.glade
with
4 additions
and
2 deletions
plugins/gtkgui/groupchat_window.py
+
3
−
2
View file @
bac6ec88
...
@@ -57,6 +57,8 @@ class Groupchat_window(Chat):
...
@@ -57,6 +57,8 @@ class Groupchat_window(Chat):
self
.
on_chat_notebook_switch_page
)
self
.
on_chat_notebook_switch_page
)
self
.
xml
.
signal_connect
(
'
on_set_button_clicked
'
,
\
self
.
xml
.
signal_connect
(
'
on_set_button_clicked
'
,
\
self
.
on_set_button_clicked
)
self
.
on_set_button_clicked
)
self
.
xml
.
signal_connect
(
'
on_groupchat_window_key_press_event
'
,
\
self
.
on_groupchat_window_key_press_event
)
def
on_groupchat_window_delete_event
(
self
,
widget
,
event
):
def
on_groupchat_window_delete_event
(
self
,
widget
,
event
):
"""
close window
"""
"""
close window
"""
...
@@ -486,8 +488,7 @@ class Groupchat_window(Chat):
...
@@ -486,8 +488,7 @@ class Groupchat_window(Chat):
self
.
redraw_tab
(
room_jid
)
self
.
redraw_tab
(
room_jid
)
self
.
show_title
()
self
.
show_title
()
def
on_join_groupchat_window_key_press_event
(
self
,
widget
,
event
):
def
on_groupchat_window_key_press_event
(
self
,
widget
,
event
):
print
'
called
'
if
event
.
keyval
==
gtk
.
keysyms
.
Escape
:
if
event
.
keyval
==
gtk
.
keysyms
.
Escape
:
widget
.
get_toplevel
().
destroy
()
widget
.
get_toplevel
().
destroy
()
...
...
This diff is collapsed.
Click to expand it.
plugins/gtkgui/gtkgui.glade
+
1
−
0
View file @
bac6ec88
...
@@ -7648,6 +7648,7 @@ Custom</property>
...
@@ -7648,6 +7648,7 @@ Custom</property>
<signal
name=
"focus_in_event"
handler=
"on_groupchat_window_focus_in_event"
last_modification_time=
"Sat, 05 Mar 2005 00:34:51 GMT"
/>
<signal
name=
"focus_in_event"
handler=
"on_groupchat_window_focus_in_event"
last_modification_time=
"Sat, 05 Mar 2005 00:34:51 GMT"
/>
<signal
name=
"delete_event"
handler=
"on_groupchat_window_delete_event"
last_modification_time=
"Mon, 07 Mar 2005 11:19:05 GMT"
/>
<signal
name=
"delete_event"
handler=
"on_groupchat_window_delete_event"
last_modification_time=
"Mon, 07 Mar 2005 11:19:05 GMT"
/>
<signal
name=
"destroy"
handler=
"on_groupchat_window_destroy"
last_modification_time=
"Mon, 07 Mar 2005 16:46:37 GMT"
/>
<signal
name=
"destroy"
handler=
"on_groupchat_window_destroy"
last_modification_time=
"Mon, 07 Mar 2005 16:46:37 GMT"
/>
<signal
name=
"key_press_event"
handler=
"on_groupchat_window_key_press_event"
last_modification_time=
"Wed, 06 Apr 2005 07:24:19 GMT"
/>
<child>
<child>
<widget
class=
"GtkVBox"
id=
"vbox27"
>
<widget
class=
"GtkVBox"
id=
"vbox27"
>
...
...
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