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
Dicson
gajim
Commits
0acafbb1
Commit
0acafbb1
authored
17 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
fix single message behaviour
parent
51c9c190
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
data/glade/single_message_window.glade
+1
-1
1 addition, 1 deletion
data/glade/single_message_window.glade
src/dialogs.py
+6
-0
6 additions, 0 deletions
src/dialogs.py
with
7 additions
and
1 deletion
data/glade/single_message_window.glade
+
1
−
1
View file @
0acafbb1
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
<property
name=
"focus_on_map"
>
True
</property>
<property
name=
"focus_on_map"
>
True
</property>
<signal
name=
"key_press_event"
handler=
"on_single_message_window_key_press_event"
last_modification_time=
"Tue, 05 Jul 2005 22:02:15 GMT"
/>
<signal
name=
"key_press_event"
handler=
"on_single_message_window_key_press_event"
last_modification_time=
"Tue, 05 Jul 2005 22:02:15 GMT"
/>
<signal
name=
"delete_event"
handler=
"on_single_message_window_delete_event"
last_modification_time=
"Mon, 17 Oct 2005 15:32:50 GMT"
/>
<signal
name=
"delete_event"
handler=
"on_single_message_window_delete_event"
last_modification_time=
"Mon, 17 Oct 2005 15:32:50 GMT"
/>
<signal
name=
"destroy"
handler=
"on_single_message_window_destroy"
/>
<child>
<child>
<widget
class=
"GtkVBox"
id=
"vbox97"
>
<widget
class=
"GtkVBox"
id=
"vbox97"
>
...
@@ -544,5 +545,4 @@
...
@@ -544,5 +545,4 @@
</widget>
</widget>
</child>
</child>
</widget>
</widget>
</glade-interface>
</glade-interface>
This diff is collapsed.
Click to expand it.
src/dialogs.py
+
6
−
0
View file @
0acafbb1
...
@@ -1481,8 +1481,11 @@ class SingleMessageWindow:
...
@@ -1481,8 +1481,11 @@ class SingleMessageWindow:
singled message depending on action argument which can be
'
send
'
singled message depending on action argument which can be
'
send
'
or
'
receive
'
.
or
'
receive
'
.
'''
'''
# Keep a reference on windows so garbage collector don't restroy them
instances
=
[]
def
__init__
(
self
,
account
,
to
=
''
,
action
=
''
,
from_whom
=
''
,
def
__init__
(
self
,
account
,
to
=
''
,
action
=
''
,
from_whom
=
''
,
subject
=
''
,
message
=
''
,
resource
=
''
):
subject
=
''
,
message
=
''
,
resource
=
''
):
self
.
instances
.
append
(
self
)
self
.
account
=
account
self
.
account
=
account
self
.
action
=
action
self
.
action
=
action
...
@@ -1581,6 +1584,9 @@ class SingleMessageWindow:
...
@@ -1581,6 +1584,9 @@ class SingleMessageWindow:
gajim
.
config
.
get
(
'
single-msg-height
'
))
gajim
.
config
.
get
(
'
single-msg-height
'
))
self
.
window
.
show_all
()
self
.
window
.
show_all
()
def
on_single_message_window_destroy
(
self
,
widget
):
self
.
instances
.
remove
(
self
)
def
set_cursor_to_end
(
self
):
def
set_cursor_to_end
(
self
):
end_iter
=
self
.
message_tv_buffer
.
get_end_iter
()
end_iter
=
self
.
message_tv_buffer
.
get_end_iter
()
self
.
message_tv_buffer
.
place_cursor
(
end_iter
)
self
.
message_tv_buffer
.
place_cursor
(
end_iter
)
...
...
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