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
Erik Huelsmann
gajim
Commits
0393a34a
Commit
0393a34a
authored
19 years ago
by
nkour
Browse files
Options
Downloads
Patches
Plain Diff
removing unnecessary arg in make_menu
parent
8b68b11d
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/systray.py
+5
-5
5 additions, 5 deletions
src/systray.py
with
5 additions
and
5 deletions
src/systray.py
+
5
−
5
View file @
0393a34a
...
...
@@ -103,7 +103,7 @@ class Systray:
call the New_message_dialog class
"""
dialogs
.
New_message_dialog
(
self
.
plugin
,
account
)
def
make_menu
(
self
,
event
):
def
make_menu
(
self
):
"""
create chat with and new message (sub) menus/menuitems
"""
chat_with_menuitem
=
self
.
xml
.
get_widget
(
'
chat_with_menuitem
'
)
...
...
@@ -115,7 +115,7 @@ class Systray:
chat_with_menuitem
.
set_sensitive
(
iskey
)
new_message_menuitem
.
set_sensitive
(
iskey
)
if
len
(
gajim
.
connections
.
keys
())
>=
2
:
# 2 or more
account
s? make submenus
if
len
(
gajim
.
connections
.
keys
())
>=
2
:
# 2 or more
connection
s? make submenus
account_menu_for_chat_with
=
gtk
.
Menu
()
chat_with_menuitem
.
set_submenu
(
account_menu_for_chat_with
)
...
...
@@ -145,7 +145,7 @@ class Systray:
chat_with_menuitem
.
set_submenu
(
group_menu
)
#for new message
self
.
new_message_handler_id
=
new_message_menuitem
.
connect
(
\
self
.
new_message_handler_id
=
new_message_menuitem
.
connect
(
'
activate
'
,
self
.
on_new_message_menuitem_activate
,
account
)
self
.
systray_context_menu
.
popup
(
None
,
None
,
None
,
event
.
button
,
event
.
time
)
...
...
@@ -211,7 +211,7 @@ class Systray:
acc
[
'
chats
'
][
jid
].
set_active_tab
(
jid
)
acc
[
'
chats
'
][
jid
].
window
.
present
()
if
event
.
button
==
3
:
# right click
self
.
make_menu
(
event
)
self
.
make_menu
()
def
on_online_menuitem_activate
(
self
,
widget
):
self
.
plugin
.
roster
.
status_combobox
.
set_active
(
0
)
# 0 is online
...
...
@@ -265,4 +265,4 @@ class Systray:
try
:
import
egg.trayicon
as
trayicon
# gnomepythonextras trayicon
except
:
import
trayicon
#
yann's
trayicon
import
trayicon
#
our
trayicon
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