[gedit-plugins/wip/python3] multiedit: fix deprecations
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins/wip/python3] multiedit: fix deprecations
- Date: Mon, 5 Nov 2012 19:29:34 +0000 (UTC)
commit ffe437f57a9c93665d73fdc39d46e2dccf5755ff
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Nov 5 20:29:18 2012 +0100
multiedit: fix deprecations
plugins/multiedit/multiedit/documenthelper.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/multiedit/multiedit/documenthelper.py b/plugins/multiedit/multiedit/documenthelper.py
index 846c026..f7caf4a 100644
--- a/plugins/multiedit/multiedit/documenthelper.py
+++ b/plugins/multiedit/multiedit/documenthelper.py
@@ -22,7 +22,7 @@
import re
import time
import xml.sax.saxutils
-from gi.repository import GObject, Pango, PangoCairo, Gdk, Gtk, Gedit
+from gi.repository import GLib, GObject, Pango, PangoCairo, Gdk, Gtk, Gedit
from .signals import Signals
import gettext
from gpdefs import *
@@ -354,9 +354,9 @@ class DocumentHelper(Signals):
self._invalidate_status()
if self._status_timeout != 0:
- GObject.source_remove(self._status_timeout)
+ GLib.source_remove(self._status_timeout)
- self._status_timeout = GObject.timeout_add(3000, self._remove_status)
+ self._status_timeout = GLib.timeout_add(3000, self._remove_status)
def _apply_column_mode(self):
mode = self._column_mode
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]