From: javiplx Date: Sun, 15 May 2011 20:17:52 +0000 (+0000) Subject: BUGFIX : reintroduce the fixes from commits 168 & 169, lost in the hildon-wrapper... X-Git-Url: http://vcs.maemo.org/git/?p=wifihood;a=commitdiff_plain;h=36bc3c89ad1cf1ad26fb4453c9757ffd03d5f836 BUGFIX : reintroduce the fixes from commits 168 & 169, lost in the hildon-wrapper merge git-svn-id: file:///svnroot/wifihood/trunk@195 c51dfc6a-5949-4919-9c8e-f207a149c383 --- diff --git a/wifiscanner/debian/changelog b/wifiscanner/debian/changelog index c6ea0af..a5c029d 100644 --- a/wifiscanner/debian/changelog +++ b/wifiscanner/debian/changelog @@ -1,10 +1,10 @@ -wifihood (1.9.0) fremantle; urgency=low +wifihood (1.9.1-194) fremantle; urgency=low * Added tabbed window with map & scan info * Plot scan progression over the map * View application improved - -- Javier Palacios Fri, 6 May 2011 14:21:34 +0200 + -- Javier Palacios Sun, 15 May 2011 22:47:55 +0200 wifihood (1.0) fremantle; urgency=low diff --git a/wifiscanner/wifimap/config.py b/wifiscanner/wifimap/config.py index d380eaf..d5067c8 100644 --- a/wifiscanner/wifimap/config.py +++ b/wifiscanner/wifimap/config.py @@ -57,7 +57,7 @@ class Configuration : client.set_int( "/apps/wifihood/%s-zoom" % self._type , zoom ) self.zoom = zoom - def save ( self , widget=None ) : + def save ( self , widget=None , event=None ) : """Saves all the editable configuration elements""" client = gconf.client_get_default() @@ -78,6 +78,8 @@ class SettingsWindow ( hildon.StackableWindow ) : hildon.StackableWindow.__init__( self ) self.set_title( "Wifihood Settings" ) + self.connect_object("delete_event", config.save , self ) + scrollwin = hildon.PannableArea() scrollwin.show() self.add(scrollwin) @@ -119,7 +121,7 @@ class SettingsWindow ( hildon.StackableWindow ) : dbvalue = hildon.Entry( gtk.HILDON_SIZE_FINGER_HEIGHT ) dbvalue.set_width_chars(15) - dbvalue.connect( "changed" , self.entry_cb , config , "basedir" ) + dbvalue.connect( "changed" , self.entry_cb , config , "homedir" ) dbvalue.set_text( config.homedir ) dbvalue.show() database.attach(dbvalue, 1, 2, 0, 1, gtk.EXPAND|gtk.FILL, 0, 0, 5) @@ -190,7 +192,7 @@ class SettingsWindow ( hildon.StackableWindow ) : scanvalue = hildon.Entry( gtk.HILDON_SIZE_FINGER_HEIGHT ) scanvalue.set_width_chars(5) - scanvalue.connect( "changed" , self.float_cb , config , "scan-period" ) + scanvalue.connect( "changed" , self.float_cb , config , "scan_period" ) scanvalue.set_text( "%s" % config.scan_period ) scanvalue.show() datatable.attach(scanvalue, 2, 3, 0, 1, gtk.FILL)