BUGFIX : wrong arguments for hildon TextView creation
authorjaviplx <javiplx@gmail.com>
Sun, 15 May 2011 18:55:10 +0000 (18:55 +0000)
committerjaviplx <javiplx@gmail.com>
Sun, 15 May 2011 18:55:10 +0000 (18:55 +0000)
git-svn-id: file:///svnroot/wifihood/trunk@193 c51dfc6a-5949-4919-9c8e-f207a149c383

wifiscanner/hildongtk/hildon.py
wifiscanner/wifiscanner

index 70c0c51..587d279 100644 (file)
@@ -45,10 +45,8 @@ class Entry ( gtk.Entry ) :
         gtk.Entry.__init__( self )
 
 class TextView ( gtk.TextView ) :
-    def __init__ ( self , placeholder=None ) :
+    def __init__ ( self ) :
         gtk.TextView.__init__( self )
-        if placeholder :
-            self.set_placeholder( placeholder )
     def set_placeholder( self , text ) :
         self.get_buffer().set_text( text )
 
index 5dcfe79..5aff530 100755 (executable)
@@ -114,7 +114,8 @@ class Wifiscanner ( hildon.StackableWindow ) :
         buttons = gtk.VBox(homogeneous=False, spacing=0)
         hbox.pack_end(buttons, expand=False)
 
-        textview = hildon.TextView( "Scan results ..." )
+        textview = hildon.TextView()
+        textview.set_placeholder( "Scan results ..." )
         textview.set_editable( False )
         textview.set_cursor_visible( False )
         textview.modify_font( pango.FontDescription("Courier 12") )