Author: esr
Date: Sun Oct 12 21:52:50 2008
New Revision: 30100

URL: http://svn.gna.org/viewcvs/wesnoth?rev=30100&view=rev
Log:
trackplacer: cleaner coordinate display usung a label.

Modified:
    trunk/data/tools/trackplacer

Modified: trunk/data/tools/trackplacer
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/trackplacer?rev=30100&r1=30099&r2=30100&view=diff
==============================================================================
--- trunk/data/tools/trackplacer (original)
+++ trunk/data/tools/trackplacer Sun Oct 12 21:52:50 2008
@@ -258,9 +258,7 @@
         spacer.show()
 
         # The coordinate display in the middle
-        self.coordbuf = gtk.TextBuffer()
-        self.coordwin = gtk.TextView(self.coordbuf)
-        self.coordwin.set_editable(False)
+        self.coordwin = gtk.Label()
         hbox1.pack_start(self.coordwin, expand=True, fill=False, padding=0)
         self.coordwin.show()
 
@@ -391,7 +389,7 @@
         else:
             x = event.x
             y = event.y
-        self.coordbuf.set_text("(%d, %d)" % (x, y))
+        self.coordwin.set_text("(%d, %d)" % (x, y))
         state = event.state
 
         # Lets you draw pixels by dragging, not the effect we want.


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to