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
637f35b2
Commit
637f35b2
authored
19 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
we now launch gajim.py instead of gtkgui.py
parent
85217c33
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/gajim.py
+24
-28
24 additions, 28 deletions
src/gajim.py
with
24 additions
and
28 deletions
src/g
tkgui
.py
→
src/g
ajim
.py
+
24
−
28
View file @
637f35b2
## gtkgui.py
#!/bin/sh
'''
:
'
exec python -OOtt
"
$0
"
${1+
"
$@
"
}
'
'''
## gajim.py
##
## Gajim Team:
## - Yann Le Boulanger <asterix@lagaule.org>
...
...
@@ -313,31 +317,25 @@ class interface:
elif
self
.
roster
.
contacts
[
account
].
has_key
(
ji
):
#It isn't an agent
self
.
roster
.
chg_user_status
(
user1
,
array
[
1
],
array
[
2
],
account
)
#inform the user about new contact online
if
old_show
<
2
and
new_show
>
1
:
if
gajim
.
config
.
get_per
(
'
soundevents
'
,
'
contact_connected
'
,
\
'
enabled
'
):
self
.
play_sound
(
'
contact_connected
'
)
#play sound
if
old_show
<
2
and
new_show
>
1
and
gajim
.
config
.
get_per
(
\
'
soundevents
'
,
'
contact_connected
'
,
'
enabled
'
):
self
.
play_sound
(
'
contact_connected
'
)
if
not
self
.
windows
[
account
][
'
chats
'
].
has_key
(
jid
)
and
\
not
self
.
queues
[
account
].
has_key
(
jid
)
and
\
gajim
.
config
.
get
(
'
notify_on_online
'
):
#FIXME: check what is OUR STATUS and do the rest
if
gajim
.
config
.
get
(
'
autopopupaway
'
):
instance
=
dialogs
.
Popup_window
(
self
,
'
Contact Online
'
,
jid
,
\
account
)
self
.
roster
.
popup_windows
.
append
(
instance
)
elif
old_show
>
1
and
new_show
<
2
:
if
gajim
.
config
.
get_per
(
'
soundevents
'
,
'
contact_disconnected
'
,
\
'
enabled
'
):
self
.
play_sound
(
'
contact_disconnected
'
)
if
not
self
.
windows
[
account
][
'
chats
'
].
has_key
(
jid
)
and
\
not
self
.
queues
[
account
].
has_key
(
jid
)
and
\
gajim
.
config
.
get
(
'
notify_on_offline
'
):
#FIXME: check what is OUR STATUS and do the rest
if
gajim
.
config
.
get
(
'
autopopupaway
'
):
instance
=
dialogs
.
Popup_window
(
self
,
'
Contact Offline
'
,
jid
,
\
account
)
self
.
roster
.
popup_windows
.
append
(
instance
)
instance
=
dialogs
.
Popup_window
(
self
,
'
Contact Online
'
,
jid
,
\
account
)
self
.
roster
.
popup_windows
.
append
(
instance
)
elif
old_show
>
1
and
new_show
<
2
and
gajim
.
config
.
get_per
(
\
'
soundevents
'
,
'
contact_disconnected
'
,
'
enabled
'
):
self
.
play_sound
(
'
contact_disconnected
'
)
if
not
self
.
windows
[
account
][
'
chats
'
].
has_key
(
jid
)
and
\
not
self
.
queues
[
account
].
has_key
(
jid
)
and
\
gajim
.
config
.
get
(
'
notify_on_offline
'
):
instance
=
dialogs
.
Popup_window
(
self
,
'
Contact Offline
'
,
jid
,
\
account
)
self
.
roster
.
popup_windows
.
append
(
instance
)
elif
self
.
windows
[
account
][
'
gc
'
].
has_key
(
ji
):
#it is a groupchat presence
...
...
@@ -359,10 +357,8 @@ class interface:
not
self
.
queues
[
account
].
has_key
(
jid
):
first
=
True
if
gajim
.
config
.
get
(
'
notify_on_new_message
'
):
#FIXME: check what is OUR STATUS (if we're online) and do the rest
if
gajim
.
config
.
get
(
'
autopopupaway
'
):
instance
=
dialogs
.
Popup_window
(
self
,
'
New Message
'
,
jid
,
account
)
self
.
roster
.
popup_windows
.
append
(
instance
)
instance
=
dialogs
.
Popup_window
(
self
,
'
New Message
'
,
jid
,
account
)
self
.
roster
.
popup_windows
.
append
(
instance
)
self
.
roster
.
on_message
(
jid
,
array
[
1
],
array
[
2
],
account
)
if
gajim
.
config
.
get_per
(
'
soundevents
'
,
'
first_message_received
'
,
\
'
enabled
'
)
and
first
:
...
...
@@ -748,7 +744,7 @@ class interface:
# get instances for windows/dialogs that will show_all()/hide()
self
.
windows
[
'
preferences
'
]
=
config
.
Preferences_window
(
self
)
self
.
windows
[
'
add_remove_emoticons
'
]
=
\
self
.
windows
[
'
add_remove_emoticons
_window
'
]
=
\
config
.
Add_remove_emoticons_window
(
self
)
self
.
windows
[
'
roster
'
]
=
self
.
roster
...
...
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