Skip to content

Commit

Permalink
2008-03-20 Martin Schaaf <mascha@ma-scha.de>
Browse files Browse the repository at this point in the history
       * src/MMapArea.py
       o check for attribute transform on coord transformation
       * src/MainWindow.py
       o fix color update if a thought is selected that doesn't have background or foreground colors



git-svn-id: https://labyrinth.googlecode.com/svn/trunk@187 8f060a39-251c-0410-b1f3-431655927647
  • Loading branch information
mascha@ma-scha.de committed Mar 20, 2008
1 parent 277c34a commit 67050ff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
@@ -1,3 +1,10 @@
2008-03-20 Martin Schaaf <mascha@ma-scha.de>

* src/MMapArea.py
o check for attribute transform on coord transformation
* src/MainWindow.py
o fix color update if a thought is selected that doesn't have background or foreground colors

2008-03-18 Martin Schaaf <mascha@ma-scha.de>

* src/MMapArea.py
Expand Down
3 changes: 2 additions & 1 deletion src/MMapArea.py
Expand Up @@ -166,7 +166,8 @@ def __init__(self, undo):
self.foreground_color = gtk.gdk.color_parse("black")

def transform_coords(self, loc_x, loc_y):
return self.transform.transform_point(loc_x, loc_y)
if hasattr(self, "transform"):
return self.transform.transform_point(loc_x, loc_y)

def button_down (self, widget, event):
coords = self.transform_coords (event.get_coords()[0], event.get_coords()[1])
Expand Down
6 changes: 4 additions & 2 deletions src/MainWindow.py
Expand Up @@ -426,8 +426,10 @@ def switch_buffer_cb (self, arg, new_buffer):
self.extended.set_editable (False)

def thought_selected_cb (self, arg, background_color, foreground_color):
self.background_widget.set_color(background_color)
self.foreground_widget.set_color(foreground_color)
if background_color:
self.background_widget.set_color(background_color)
if foreground_color:
self.foreground_widget.set_color(foreground_color)

def main_area_focus_cb (self, arg, event, extended = False):
if not extended:
Expand Down

0 comments on commit 67050ff

Please sign in to comment.