Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2013-07-29 23:41:01 +0400
committerYann Leboulanger <asterix@lagaule.org>2013-07-29 23:41:01 +0400
commitd1a6467d82037a9caba5b83d5ab80a577437e6a0 (patch)
treefc5687267c4f18baef4c1e87240596db23ff1745 /src/notify.py
parent134f87ced5656e4ad49ae03830037c696a82f3d8 (diff)
GObject -> GLib
Diffstat (limited to 'src/notify.py')
-rw-r--r--src/notify.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/notify.py b/src/notify.py
index 8095507dd..2e0d0e0f9 100644
--- a/src/notify.py
+++ b/src/notify.py
@@ -31,6 +31,7 @@ import os
import time
from dialogs import PopupNotificationWindow
from gi.repository import GObject
+from gi.repository import GLib
import gtkgui_helpers
from gi.repository import Gtk
@@ -89,7 +90,7 @@ text=None, timeout=-1):
if gajim.config.get('use_notif_daemon') and dbus_support.supported:
try:
DesktopNotification(event_type, jid, account, msg_type,
- path_to_image, title, GObject.markup_escape_text(text), timeout)
+ path_to_image, title, GLib.markup_escape_text(text), timeout)
return # sucessfully did D-Bus Notification procedure!
except dbus.DBusException as e:
# Connection to D-Bus failed
@@ -103,10 +104,10 @@ text=None, timeout=-1):
if not text and event_type == 'new_message':
# empty text for new_message means do_preview = False
# -> default value for text
- _text = GObject.markup_escape_text(
- gajim.get_name_from_jid(account, jid))
+ _text = GLib.markup_escape_text(gajim.get_name_from_jid(account,
+ jid))
else:
- _text = GObject.markup_escape_text(text)
+ _text = GLib.markup_escape_text(text)
if not title:
_title = ''