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
bcee7c21
Commit
bcee7c21
authored
14 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
indicator API changes too much, remove it's support. Fixes #5694
parent
f8ab01b4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/common/gajim.py
+0
-6
0 additions, 6 deletions
src/common/gajim.py
src/gui_interface.py
+0
-4
0 additions, 4 deletions
src/gui_interface.py
src/notify.py
+0
-30
0 additions, 30 deletions
src/notify.py
with
0 additions
and
40 deletions
src/common/gajim.py
+
0
−
6
View file @
bcee7c21
...
...
@@ -181,12 +181,6 @@ else:
# read.
HAVE_LATEX
=
False
HAVE_INDICATOR
=
True
try
:
import
indicate
except
ImportError
:
HAVE_INDICATOR
=
False
HAVE_FARSIGHT
=
True
try
:
import
farsight
,
gst
...
...
This diff is collapsed.
Click to expand it.
src/gui_interface.py
+
0
−
4
View file @
bcee7c21
...
...
@@ -3260,10 +3260,6 @@ class Interface:
if
resolver
.
USE_LIBASYNCNS
:
gobject
.
timeout_add
(
200
,
gajim
.
resolver
.
process
)
# setup the indicator
if
gajim
.
HAVE_INDICATOR
:
notify
.
setup_indicator_server
()
def
remote_init
():
if
gajim
.
config
.
get
(
'
remote_control
'
):
try
:
...
...
This diff is collapsed.
Click to expand it.
src/notify.py
+
0
−
30
View file @
bcee7c21
...
...
@@ -50,24 +50,6 @@ try:
except
ImportError
:
USER_HAS_PYNOTIFY
=
False
if
gajim
.
HAVE_INDICATOR
:
import
indicate
def
setup_indicator_server
():
server
=
indicate
.
indicate_server_ref_default
()
server
.
set_type
(
'
message.im
'
)
server
.
set_desktop_file
(
'
/usr/share/applications/gajim.desktop
'
)
server
.
connect
(
'
server-display
'
,
server_display
)
server
.
show
()
def
display
(
indicator
,
account
,
jid
,
msg_type
):
gajim
.
interface
.
handle_event
(
account
,
jid
,
msg_type
)
indicator
.
hide
()
def
server_display
(
server
):
win
=
gajim
.
interface
.
roster
.
window
win
.
present
()
def
get_show_in_roster
(
event
,
account
,
contact
,
session
=
None
):
"""
Return True if this event must be shown in roster, else False
...
...
@@ -344,18 +326,6 @@ text=None):
if
not
path_to_image
:
path_to_image
=
gtkgui_helpers
.
get_icon_path
(
'
gajim-chat_msg_recv
'
,
48
)
if
gajim
.
HAVE_INDICATOR
and
event_type
in
(
_
(
'
New Message
'
),
_
(
'
New Single Message
'
),
_
(
'
New Private Message
'
)):
indicator
=
indicate
.
Indicator
()
indicator
.
set_property
(
'
subtype
'
,
'
im
'
)
indicator
.
set_property
(
'
sender
'
,
jid
)
indicator
.
set_property
(
'
body
'
,
text
)
indicator
.
set_property_time
(
'
time
'
,
time
.
time
())
pixbuf
=
gtk
.
gdk
.
pixbuf_new_from_file
(
path_to_image
)
indicator
.
set_property_icon
(
'
icon
'
,
pixbuf
)
indicator
.
connect
(
'
user-display
'
,
display
,
account
,
jid
,
msg_type
)
indicator
.
show
()
# Try to show our popup via D-Bus and notification daemon
if
gajim
.
config
.
get
(
'
use_notif_daemon
'
)
and
dbus_support
.
supported
:
try
:
...
...
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