Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/TextThought.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2009-11-01 18:03:21 (GMT)
committer Gary Martin <gary@garycmartin.com>2009-11-01 18:03:21 (GMT)
commitb988dde66c953bae0ac3b21cdeb95ef61833dafc (patch)
tree4ac14b1d507845ff4e8cf04b6914347f7b17fa03 /src/TextThought.py
parentee2930fcae31c3fb6fca1dc3e62015a742c1f88a (diff)
Make copy button state change based on text selection.
Diffstat (limited to 'src/TextThought.py')
-rw-r--r--src/TextThought.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/TextThought.py b/src/TextThought.py
index 59fb914..d5d5c1f 100644
--- a/src/TextThought.py
+++ b/src/TextThought.py
@@ -717,7 +717,6 @@ class TextThought (ResizableThought):
elif event.type == gtk.gdk._2BUTTON_PRESS:
self.index = len(self.text)
self.end_index = 0 # and mark all
- self.selection_changed ()
self.double_click = True
elif event.button == 2:
x = int ((coords[0] - self.min_x)*pango.SCALE)
@@ -737,6 +736,8 @@ class TextThought (ResizableThought):
self.recalc_edges()
self.emit ("update_view")
+ self.selection_changed()
+
def process_button_release (self, event, transformed):
if self.orig_size:
if self.creating: