Fixed buttons by handling clicked instead of activate

This commit is contained in:
Anna 2010-04-08 17:19:45 -04:00
parent 55546a9a5e
commit ed223ad860
2 changed files with 3 additions and 5 deletions

View File

@ -133,7 +133,7 @@
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="activate" handler="update_window_callback" last_modification_time="Thu, 08 Apr 2010 21:02:59 GMT"/>
<signal name="clicked" handler="update_window_callback" last_modification_time="Thu, 08 Apr 2010 21:18:02 GMT"/>
</widget>
<packing>
<property name="padding">0</property>
@ -203,7 +203,7 @@
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
<signal name="activate" handler="update_status_callback" last_modification_time="Thu, 08 Apr 2010 21:03:06 GMT"/>
<signal name="clicked" handler="update_status_callback" last_modification_time="Thu, 08 Apr 2010 21:18:09 GMT"/>
</widget>
<packing>
<property name="padding">0</property>

View File

@ -69,12 +69,10 @@ class MyTwitter():
# Timer to update periodically
self.update_window()
gobject.timeout_add(self.refresh_time * 100, self.update_window)
gobject.timeout_add(self.refresh_time * 1000, self.update_window)
def update_window(self):
print "debug: update_window()"
timezone = dateutil.tz.gettz()
time_format = "%Y.%m.%d %H:%M:%S %Z"