[gedit-plugins] Use glib instead of GLib.



commit a079e4edac90e6bbab6f444fdebb04bc991921ca
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu Jan 20 11:56:40 2011 +0100

    Use glib instead of GLib.

 plugins/multiedit/multiedit/documenthelper.py |   12 ++++++------
 plugins/terminal/terminal.py                  |    6 +++---
 2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/plugins/multiedit/multiedit/documenthelper.py b/plugins/multiedit/multiedit/documenthelper.py
index dc8e45f..fbd5c36 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 GLib, Pango, Gdk, Gtk, Gedit
+from gi.repository import Pango, Gdk, Gtk, Gedit
 from signals import Signals
 import constants
 import gettext
@@ -141,11 +141,11 @@ class DocumentHelper(Signals):
         self._view = None
 
         if self._status_timeout != 0:
-            GLib.source_remove(self._status_timeout)
+            GObject.source_remove(self._status_timeout)
             self._status_timeout = 0
 
         if self._delete_mode_id != 0:
-            GLib.source_remove(self._delete_mode_id)
+            GObject.source_remove(self._delete_mode_id)
             self._delete_mode_id = 0
 
     def initialize_event_handlers(self):
@@ -348,9 +348,9 @@ class DocumentHelper(Signals):
         self._invalidate_status()
 
         if self._status_timeout != 0:
-            glib.source_remove(self._status_timeout)
+            GObject.source_remove(self._status_timeout)
 
-        self._status_timeout = glib.timeout_add(3000, self._remove_status)
+        self._status_timeout = GObject.timeout_add(3000, self._remove_status)
 
     def _apply_column_mode(self):
         mode = self._column_mode
@@ -859,7 +859,7 @@ class DocumentHelper(Signals):
             # Ooooh, what a hack to be able to work with the undo manager
             self._view.set_editable(False)
             mark = buf.create_mark(None, start, True)
-            self._delete_mode_id = glib.timeout_add(0, self.handle_column_mode_delete, mark)
+            self._delete_mode_id = GObject.timeout_add(0, self.handle_column_mode_delete, mark)
         elif self._edit_points:
             if start.equal(buf.get_iter_at_mark(buf.get_insert())):
                 self.block_signal(buf, 'delete-range')
diff --git a/plugins/terminal/terminal.py b/plugins/terminal/terminal.py
index 7719f92..5e732ca 100644
--- a/plugins/terminal/terminal.py
+++ b/plugins/terminal/terminal.py
@@ -20,7 +20,7 @@
 # Foundation, Inc., 51 Franklin St, Fifth Floor,
 # Boston, MA  02110-1301  USA
 
-from gi.repository import GObject, GLib, Gio, Pango, Gdk, Gtk, Gedit, Vte
+from gi.repository import GObject, Gio, Pango, Gdk, Gtk, Gedit, Vte
 import os
 import gettext
 from gpdefs import *
@@ -88,11 +88,11 @@ class GeditTerminal(Gtk.Box):
                  Gtk.AccelMap.add_entry(path, self._accels[name][0], self._accels[name][1])
 
         #FIXME
-        #self._vte.fork_command_full(Vte.PtyFlags.DEFAULT, None, [], None, GLib.SpawnFlags.CHILD_INHERITS_STDIN | GLib.SpawnFlags.SEARCH_PATH, None, None)
+        #self._vte.fork_command_full(Vte.PtyFlags.DEFAULT, None, [], None, glib.SpawnFlags.CHILD_INHERITS_STDIN | glib.SpawnFlags.SEARCH_PATH, None, None)
 
     def on_child_exited(self):
         return None
-        #self._vte.fork_command_full(Vte.PtyFlags.DEFAULT, None, [], None, GLib.SpawnFlags.CHILD_INHERITS_STDIN | GLib.SpawnFlags.SEARCH_PATH, None, None)
+        #self._vte.fork_command_full(Vte.PtyFlags.DEFAULT, None, [], None, glib.SpawnFlags.CHILD_INHERITS_STDIN | glib.SpawnFlags.SEARCH_PATH, None, None)
 
     def do_grab_focus(self):
         self._vte.grab_focus()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]