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
eta
gajim
Commits
e9bb1a92
Commit
e9bb1a92
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
higing and marking for translation in popup notify
parent
646191d4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/dialogs.py
+4
-4
4 additions, 4 deletions
src/dialogs.py
src/gajim.py
+8
-8
8 additions, 8 deletions
src/gajim.py
with
12 additions
and
12 deletions
src/dialogs.py
+
4
−
4
View file @
e9bb1a92
...
@@ -689,16 +689,16 @@ class Popup_notification_window:
...
@@ -689,16 +689,16 @@ class Popup_notification_window:
# set colors [ http://www.w3schools.com/html/html_colornames.asp ]
# set colors [ http://www.w3schools.com/html/html_colornames.asp ]
self
.
window
.
modify_bg
(
gtk
.
STATE_NORMAL
,
gtk
.
gdk
.
color_parse
(
'
black
'
))
self
.
window
.
modify_bg
(
gtk
.
STATE_NORMAL
,
gtk
.
gdk
.
color_parse
(
'
black
'
))
if
event_type
==
'
Contact
s
igned
i
n
'
:
if
event_type
==
_
(
'
Contact
S
igned
I
n
'
)
:
close_button
.
modify_bg
(
gtk
.
STATE_NORMAL
,
gtk
.
gdk
.
color_parse
(
'
limegreen
'
))
close_button
.
modify_bg
(
gtk
.
STATE_NORMAL
,
gtk
.
gdk
.
color_parse
(
'
limegreen
'
))
eventbox
.
modify_bg
(
gtk
.
STATE_NORMAL
,
gtk
.
gdk
.
color_parse
(
'
limegreen
'
))
eventbox
.
modify_bg
(
gtk
.
STATE_NORMAL
,
gtk
.
gdk
.
color_parse
(
'
limegreen
'
))
elif
event_type
==
'
Contact
s
igned
o
ut
'
:
elif
event_type
==
_
(
'
Contact
S
igned
O
ut
'
)
:
close_button
.
modify_bg
(
gtk
.
STATE_NORMAL
,
gtk
.
gdk
.
color_parse
(
'
red
'
))
close_button
.
modify_bg
(
gtk
.
STATE_NORMAL
,
gtk
.
gdk
.
color_parse
(
'
red
'
))
eventbox
.
modify_bg
(
gtk
.
STATE_NORMAL
,
gtk
.
gdk
.
color_parse
(
'
red
'
))
eventbox
.
modify_bg
(
gtk
.
STATE_NORMAL
,
gtk
.
gdk
.
color_parse
(
'
red
'
))
elif
event_type
==
'
New Message
'
:
elif
event_type
==
_
(
'
New Message
'
)
:
close_button
.
modify_bg
(
gtk
.
STATE_NORMAL
,
gtk
.
gdk
.
color_parse
(
'
dodgerblue
'
))
close_button
.
modify_bg
(
gtk
.
STATE_NORMAL
,
gtk
.
gdk
.
color_parse
(
'
dodgerblue
'
))
eventbox
.
modify_bg
(
gtk
.
STATE_NORMAL
,
gtk
.
gdk
.
color_parse
(
'
dodgerblue
'
))
eventbox
.
modify_bg
(
gtk
.
STATE_NORMAL
,
gtk
.
gdk
.
color_parse
(
'
dodgerblue
'
))
txt
=
'
From
'
+
txt
txt
=
_
(
'
From
%s
'
)
%
txt
# position the window to bottom-right of screen
# position the window to bottom-right of screen
window_width
,
self
.
window_height
=
self
.
window
.
get_size
()
window_width
,
self
.
window_height
=
self
.
window
.
get_size
()
...
...
This diff is collapsed.
Click to expand it.
src/gajim.py
+
8
−
8
View file @
e9bb1a92
...
@@ -306,7 +306,7 @@ class Interface:
...
@@ -306,7 +306,7 @@ class Interface:
show_notification
=
True
show_notification
=
True
if
show_notification
:
if
show_notification
:
instance
=
dialogs
.
Popup_notification_window
(
self
,
instance
=
dialogs
.
Popup_notification_window
(
self
,
'
Contact
s
igned
i
n
'
,
jid
,
account
)
_
(
'
Contact
S
igned
I
n
'
)
,
jid
,
account
)
self
.
roster
.
popup_notification_windows
.
append
(
instance
)
self
.
roster
.
popup_notification_windows
.
append
(
instance
)
elif
old_show
>
1
and
new_show
<
2
:
elif
old_show
>
1
and
new_show
<
2
:
...
@@ -324,13 +324,13 @@ class Interface:
...
@@ -324,13 +324,13 @@ class Interface:
show_notification
=
True
show_notification
=
True
if
show_notification
:
if
show_notification
:
instance
=
dialogs
.
Popup_notification_window
(
self
,
instance
=
dialogs
.
Popup_notification_window
(
self
,
'
Contact
s
igned
o
ut
'
,
jid
,
account
)
_
(
'
Contact
S
igned
O
ut
'
)
,
jid
,
account
)
self
.
roster
.
popup_notification_windows
.
append
(
instance
)
self
.
roster
.
popup_notification_windows
.
append
(
instance
)
elif
self
.
windows
[
account
][
'
gc
'
].
has_key
(
ji
):
elif
self
.
windows
[
account
][
'
gc
'
].
has_key
(
ji
):
#it is a groupchat presence
#it is a groupchat presence
self
.
windows
[
account
][
'
gc
'
][
ji
].
chg_user_status
(
ji
,
resource
,
\
self
.
windows
[
account
][
'
gc
'
][
ji
].
chg_user_status
(
ji
,
resource
,
array
[
1
],
array
[
2
],
array
[
6
],
array
[
7
],
array
[
8
],
array
[
9
],
\
array
[
1
],
array
[
2
],
array
[
6
],
array
[
7
],
array
[
8
],
array
[
9
],
array
[
10
],
array
[
11
],
account
)
array
[
10
],
array
[
11
],
account
)
def
handle_event_msg
(
self
,
account
,
array
):
def
handle_event_msg
(
self
,
account
,
array
):
...
@@ -355,13 +355,13 @@ class Interface:
...
@@ -355,13 +355,13 @@ class Interface:
show_notification
=
True
show_notification
=
True
if
show_notification
:
if
show_notification
:
instance
=
dialogs
.
Popup_notification_window
(
self
,
instance
=
dialogs
.
Popup_notification_window
(
self
,
'
New Message
'
,
jid
,
account
)
_
(
'
New Message
'
)
,
jid
,
account
)
self
.
roster
.
popup_notification_windows
.
append
(
instance
)
self
.
roster
.
popup_notification_windows
.
append
(
instance
)
self
.
roster
.
on_message
(
jid
,
array
[
1
],
array
[
2
],
account
,
array
[
3
])
self
.
roster
.
on_message
(
jid
,
array
[
1
],
array
[
2
],
account
,
array
[
3
])
if
gajim
.
config
.
get_per
(
'
soundevents
'
,
'
first_message_received
'
,
\
if
gajim
.
config
.
get_per
(
'
soundevents
'
,
'
first_message_received
'
,
'
enabled
'
)
and
first
:
'
enabled
'
)
and
first
:
self
.
play_sound
(
'
first_message_received
'
)
self
.
play_sound
(
'
first_message_received
'
)
if
gajim
.
config
.
get_per
(
'
soundevents
'
,
'
next_message_received
'
,
\
if
gajim
.
config
.
get_per
(
'
soundevents
'
,
'
next_message_received
'
,
'
enabled
'
)
and
not
first
:
'
enabled
'
)
and
not
first
:
self
.
play_sound
(
'
next_message_received
'
)
self
.
play_sound
(
'
next_message_received
'
)
...
@@ -372,7 +372,7 @@ class Interface:
...
@@ -372,7 +372,7 @@ class Interface:
self
.
windows
[
account
][
'
gc
'
][
jid
].
print_conversation
(
'
Error %s: %s
'
%
\
self
.
windows
[
account
][
'
gc
'
][
jid
].
print_conversation
(
'
Error %s: %s
'
%
\
(
array
[
1
],
array
[
2
]),
jid
)
(
array
[
1
],
array
[
2
]),
jid
)
if
self
.
windows
[
account
][
'
gc
'
][
jid
].
get_active_jid
()
==
jid
:
if
self
.
windows
[
account
][
'
gc
'
][
jid
].
get_active_jid
()
==
jid
:
self
.
windows
[
account
][
'
gc
'
][
jid
].
set_subject
(
jid
,
\
self
.
windows
[
account
][
'
gc
'
][
jid
].
set_subject
(
jid
,
self
.
windows
[
account
][
'
gc
'
][
jid
].
subjects
[
jid
])
self
.
windows
[
account
][
'
gc
'
][
jid
].
subjects
[
jid
])
return
return
if
jid
.
find
(
'
@
'
)
<=
0
:
if
jid
.
find
(
'
@
'
)
<=
0
:
...
...
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