Fixed buttons by handling clicked instead of activate
This commit is contained in:
parent
55546a9a5e
commit
ed223ad860
|
@ -133,7 +133,7 @@
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<property name="focus_on_click">True</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>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="padding">0</property>
|
<property name="padding">0</property>
|
||||||
|
@ -203,7 +203,7 @@
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="relief">GTK_RELIEF_NORMAL</property>
|
<property name="relief">GTK_RELIEF_NORMAL</property>
|
||||||
<property name="focus_on_click">True</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>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="padding">0</property>
|
<property name="padding">0</property>
|
||||||
|
|
|
@ -69,12 +69,10 @@ class MyTwitter():
|
||||||
|
|
||||||
# Timer to update periodically
|
# Timer to update periodically
|
||||||
self.update_window()
|
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):
|
def update_window(self):
|
||||||
print "debug: update_window()"
|
|
||||||
|
|
||||||
timezone = dateutil.tz.gettz()
|
timezone = dateutil.tz.gettz()
|
||||||
time_format = "%Y.%m.%d %H:%M:%S %Z"
|
time_format = "%Y.%m.%d %H:%M:%S %Z"
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user