[gedit] Do not use deprecated GObject calls.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Do not use deprecated GObject calls.
- Date: Tue, 27 Nov 2012 09:09:30 +0000 (UTC)
commit 534308cbdaa48965cdc8b8be3c86d02fd5e814cc
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Nov 26 12:39:42 2012 +0100
Do not use deprecated GObject calls.
plugins/snippets/snippets/document.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/snippets/snippets/document.py b/plugins/snippets/snippets/document.py
index 63283b3..d63afdf 100644
--- a/plugins/snippets/snippets/document.py
+++ b/plugins/snippets/snippets/document.py
@@ -82,7 +82,7 @@ class Document(GObject.Object, Gedit.ViewActivatable, Signals):
def do_deactivate(self):
if self.timeout_update_id != 0:
- GObject.source_remove(self.timeout_update_id)
+ GLib.source_remove(self.timeout_update_id)
self.timeout_update_id = 0
del self.update_placeholders[:]
@@ -765,7 +765,7 @@ class Document(GObject.Object, Gedit.ViewActivatable, Signals):
self.jump_placeholders.append((self.active_placeholder, current))
if self.timeout_update_id == 0:
- self.timeout_update_id = GObject.timeout_add(0,
+ self.timeout_update_id = GLib.timeout_add(0,
self.update_snippet_contents)
def on_buffer_changed(self, buf):
@@ -776,7 +776,7 @@ class Document(GObject.Object, Gedit.ViewActivatable, Signals):
self.update_placeholders.append(current)
if self.timeout_update_id == 0:
- self.timeout_update_id = GObject.timeout_add(0, \
+ self.timeout_update_id = GLib.timeout_add(0, \
self.update_snippet_contents)
def on_buffer_insert_text(self, buf, piter, text, length):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]