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
4bedeec9
Commit
4bedeec9
authored
17 years ago
by
nicfit
Browse files
Options
Downloads
Patches
Plain Diff
MessageWindow reconfig bug fixes for deleted roster
parent
1a7b1672
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
src/chat_control.py
+1
-1
1 addition, 1 deletion
src/chat_control.py
src/message_window.py
+18
-6
18 additions, 6 deletions
src/message_window.py
with
19 additions
and
7 deletions
src/chat_control.py
+
1
−
1
View file @
4bedeec9
...
...
@@ -643,7 +643,7 @@ class ChatControlBase(MessageControl):
self
.
orig_msg
=
None
def
print_conversation_line
(
self
,
text
,
kind
,
name
,
tim
,
other_tags_for_name
=
[],
other_tags_for_time
=
[],
other_tags_for_name
=
[],
other_tags_for_time
=
[],
other_tags_for_text
=
[],
count_as_new
=
True
,
subject
=
None
,
old_kind
=
None
,
xhtml
=
None
):
'''
prints
'
chat
'
type messages
'''
...
...
This diff is collapsed.
Click to expand it.
src/message_window.py
+
18
−
6
View file @
4bedeec9
...
...
@@ -238,7 +238,10 @@ class MessageWindow(object):
self
.
setup_tab_dnd
(
control
.
widget
)
self
.
redraw_tab
(
control
)
self
.
notebook
.
show_all
()
if
self
.
parent_paned
:
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.
self
.
show_title
()
...
...
@@ -437,7 +440,6 @@ class MessageWindow(object):
# Don't close parent window, just remove the child
child
=
self
.
parent_paned
.
get_child2
()
self
.
parent_paned
.
remove
(
child
)
# FIXME: restore preferred roster size
else
:
self
.
window
.
destroy
()
return
# don't show_title, we are dead
...
...
@@ -925,8 +927,10 @@ class MessageWindowMgr(gobject.GObject):
def
shutdown
(
self
,
width_adjust
=
0
):
for
w
in
self
.
windows
():
self
.
save_state
(
w
,
width_adjust
)
w
.
window
.
hide
()
w
.
window
.
destroy
()
if
not
w
.
parent_paned
:
w
.
window
.
hide
()
w
.
window
.
destroy
()
gajim
.
interface
.
save_config
()
def
save_state
(
self
,
msg_win
,
width_adjust
=
0
):
...
...
@@ -993,7 +997,10 @@ class MessageWindowMgr(gobject.GObject):
controls
=
[]
for
w
in
self
.
windows
():
w
.
window
.
hide
()
# Note, we are taking care not to hide/delete the roster window when the
# MessageWindow is embedded.
if
not
w
.
parent_paned
:
w
.
window
.
hide
()
while
w
.
notebook
.
get_n_pages
():
page
=
w
.
notebook
.
get_nth_page
(
0
)
ctrl
=
w
.
_widget_to_control
(
page
)
...
...
@@ -1002,7 +1009,12 @@ class MessageWindowMgr(gobject.GObject):
controls
.
append
(
ctrl
)
# Must clear _controls from window to prevent MessageControl.shutdown calls
w
.
_controls
=
{}
w
.
window
.
destroy
()
if
not
w
.
parent_paned
:
w
.
window
.
destroy
()
else
:
# Don't close parent window, just remove the child
child
=
w
.
parent_paned
.
get_child2
()
w
.
parent_paned
.
remove
(
child
)
self
.
_windows
=
{}
...
...
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