[gedit] Fix some warning in the pythonconsole plugin.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix some warning in the pythonconsole plugin.
- Date: Sat, 3 Jul 2010 13:47:42 +0000 (UTC)
commit a9d2ea047401124537e49ef6a2bf9c0f6c4a4f22
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat Jul 3 15:47:21 2010 +0200
Fix some warning in the pythonconsole plugin.
plugins/pythonconsole/pythonconsole/console.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/pythonconsole/pythonconsole/console.py b/plugins/pythonconsole/pythonconsole/console.py
index 8907915..5e852b0 100755
--- a/plugins/pythonconsole/pythonconsole/console.py
+++ b/plugins/pythonconsole/pythonconsole/console.py
@@ -154,9 +154,9 @@ class PythonConsole(Gtk.ScrolledWindow):
# Get the command
buf = view.get_buffer()
inp_mark = buf.get_mark("input")
- inp = buf.get_it_at_mark(inp_mark)
+ inp = buf.get_iter_at_mark(inp_mark)
cur = buf.get_end_iter()
- line = buf.get_text(inp, cur)
+ line = buf.get_text(inp, cur, False)
self.current_command = self.current_command + line + "\n"
self.history_add(line)
@@ -224,7 +224,7 @@ class PythonConsole(Gtk.ScrolledWindow):
# Next entry from history
view.emit_stop_by_name("key_press_event")
self.history_down()
- gobject.idle_add(self.scroll_to_end)
+ GObject.idle_add(self.scroll_to_end)
return True
elif event.key.keyval == Gdk.KP_Up or event.key.keyval == Gdk.Up:
@@ -299,7 +299,7 @@ class PythonConsole(Gtk.ScrolledWindow):
buf = self.view.get_buffer()
inp = buf.get_iter_at_mark(buf.get_mark("input"))
cur = buf.get_end_iter()
- return buf.get_text(inp, cur)
+ return buf.get_text(inp, cur, False)
def set_command_line(self, command):
buf = self.view.get_buffer()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]