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
Weblate
gajim
Commits
3c2481fc
Commit
3c2481fc
authored
14 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
Give focus to message textview when we open a new chat. Fixes #5740
parent
18f03edd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/message_window.py
+4
-2
4 additions, 2 deletions
src/message_window.py
with
4 additions
and
2 deletions
src/message_window.py
+
4
−
2
View file @
3c2481fc
...
...
@@ -298,9 +298,10 @@ _('Do you really want to close them all?'),
self
.
notebook
.
show_all
()
else
:
self
.
window
.
show_all
()
# NOTE: we do not call set_control_active(True) since we don't know
whether
# the tab is the active one.
# NOTE: we do not call set_control_active(True) since we don't know
#
whether
the tab is the active one.
self
.
show_title
()
gobject
.
idle_add
(
control
.
msg_textview
.
grab_focus
)
def
on_tab_eventbox_button_press_event
(
self
,
widget
,
event
,
child
):
if
event
.
button
==
3
:
# right click
...
...
@@ -511,6 +512,7 @@ _('Do you really want to close them all?'),
ctrl_page
=
self
.
notebook
.
page_num
(
ctrl
.
widget
)
self
.
notebook
.
set_current_page
(
ctrl_page
)
self
.
window
.
present
()
gobject
.
idle_add
(
ctrl
.
msg_textview
.
grab_focus
)
def
remove_tab
(
self
,
ctrl
,
method
,
reason
=
None
,
force
=
False
):
"""
...
...
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