[meld] Remove unneeded gdk alias
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Remove unneeded gdk alias
- Date: Sat, 6 Mar 2010 07:07:31 +0000 (UTC)
commit 21087dc859d45c071fa779248f208ba532086217
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Mar 6 10:30:50 2010 +1000
Remove unneeded gdk alias
meld/filediff.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 53b630a..5b7a7df 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -37,8 +37,6 @@ import cairo
from util.sourceviewer import srcviewer
-gdk = gtk.gdk
-
class CachedSequenceMatcher(object):
"""Simple class for caching diff results, with LRU-based eviction
@@ -161,7 +159,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
foreground = self.prefs.color_inline_fg)
def parse_to_cairo(color_spec):
- color = gdk.color_parse(color_spec)
+ color = gtk.gdk.color_parse(color_spec)
return [x / 65535. for x in (color.red, color.green, color.blue)]
self.fill_colors = {"insert" : parse_to_cairo(self.prefs.color_delete_bg),
@@ -771,7 +769,7 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
self.cursor.next = chunk
if self.cursor.next is None:
self.cursor.next = next
- self.scheduler.add_task(lambda: self.next_diff(gdk.SCROLL_DOWN), True)
+ self.scheduler.add_task(lambda: self.next_diff(gtk.gdk.SCROLL_DOWN), True)
self.queue_draw()
self.scheduler.add_task(self._update_highlighting().next)
self._connect_buffer_handlers()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]