Changeset 9327
- Timestamp:
- 02/14/08 20:18:07 (9 months ago)
- Location:
- trunk/src
- Files:
-
- 8 modified
-
chat_control.py (modified) (1 diff)
-
common/zeroconf/connection_zeroconf.py (modified) (1 diff)
-
dialogs.py (modified) (1 diff)
-
disco.py (modified) (2 diffs)
-
gajim.py (modified) (6 diffs)
-
music_track_listener.py (modified) (2 diffs)
-
profile_window.py (modified) (2 diffs)
-
roster_window.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/chat_control.py
r9325 r9327 1135 1135 1136 1136 def _schedule_activity_timers(self): 1137 self.possible_paused_timeout_id = gobject.timeout_add (5000,1137 self.possible_paused_timeout_id = gobject.timeout_add_seconds(5, 1138 1138 self.check_for_possible_paused_chatstate, None) 1139 self.possible_inactive_timeout_id = gobject.timeout_add (30000,1139 self.possible_inactive_timeout_id = gobject.timeout_add_seconds(30, 1140 1140 self.check_for_possible_inactive_chatstate, None) 1141 1141 -
trunk/src/common/zeroconf/connection_zeroconf.py
r9325 r9327 278 278 # refresh all contacts data every five seconds 279 279 self.call_resolve_timeout = True 280 gobject.timeout_add (5000, self._on_resolve_timeout)280 gobject.timeout_add_seconds(5, self._on_resolve_timeout) 281 281 return True 282 282 -
trunk/src/dialogs.py
r9325 r9327 1943 1943 xml.signal_autoconnect(self) 1944 1944 self.window.show_all() 1945 timeout = gajim.config.get('notification_timeout') * 1000 # make it ms1946 gobject.timeout_add (timeout, self.on_timeout)1945 timeout = gajim.config.get('notification_timeout') 1946 gobject.timeout_add_seconds(timeout, self.on_timeout) 1947 1947 1948 1948 def on_close_button_clicked(self, widget): -
trunk/src/disco.py
r9325 r9327 153 153 gobject.source_remove(item.source) 154 154 if self.lifetime: 155 source = gobject.timeout_add (self.lifetime, self._expire_timeout, key)155 source = gobject.timeout_add_seconds(self.lifetime/1000, self._expire_timeout, key) 156 156 item.source = source 157 157 … … 1365 1365 if self._progress >= self._total_items: 1366 1366 # We show the progressbar for just a bit before hiding it. 1367 id = gobject.timeout_add (1500, self._hide_progressbar_cb)1367 id = gobject.timeout_add_seconds(2, self._hide_progressbar_cb) 1368 1368 self._progressbar_sourceid = id 1369 1369 else: 1370 1370 self.window.progressbar.show() 1371 1371 # Hide the progressbar if we're timing out anyways. (20 secs) 1372 id = gobject.timeout_add (20000, self._hide_progressbar_cb)1372 id = gobject.timeout_add_seconds(20, self._hide_progressbar_cb) 1373 1373 self._progressbar_sourceid = id 1374 1374 self.window.progressbar.set_fraction(fraction) -
trunk/src/gajim.py
r9325 r9327 219 219 220 220 import gobject 221 if not hasattr(gobject, 'timeout_add_seconds'): 222 def timeout_add_seconds_fake(time_sec, *args): 223 return gobject.timeout_add(time_sec * 1000, *args) 224 gobject.timeout_add_seconds = timeout_add_seconds_fake 221 225 222 226 import re … … 534 538 # this prevents from getting the roster items as 'just signed in' 535 539 # contacts. 30 seconds should be enough time 536 gobject.timeout_add (30000, self.unblock_signed_in_notifications, account)540 gobject.timeout_add_seconds(30, self.unblock_signed_in_notifications, account) 537 541 # sensitivity for this menuitem 538 542 model[self.roster.status_message_menuitem_iter][3] = True … … 649 653 if contact1.jid in gajim.to_be_removed[account]: 650 654 gajim.to_be_removed[account].remove(contact1.jid) 651 gobject.timeout_add (5000, self.roster.remove_newly_added,655 gobject.timeout_add_seconds(5, self.roster.remove_newly_added, 652 656 contact1.jid, account) 653 657 elif old_show > 1 and new_show == 0 and gajim.connections[account].\ … … 658 662 gajim.newly_added[account].remove(contact1.jid) 659 663 self.roster.draw_contact(contact1.jid, account) 660 gobject.timeout_add (5000, self.roster.really_remove_contact,664 gobject.timeout_add_seconds(5, self.roster.really_remove_contact, 661 665 contact1, account) 662 666 contact1.show = array[1] … … 685 689 account_ji = account + '/' + ji 686 690 gajim.block_signed_in_notifications[account_ji] = True 687 gobject.timeout_add (30000, self.unblock_signed_in_notifications,691 gobject.timeout_add_seconds(30, self.unblock_signed_in_notifications, 688 692 account_ji) 689 693 locations = (self.instances, self.instances[account]) … … 2949 2953 gobject.timeout_add(200, self.process_connections) 2950 2954 else: 2951 gobject.timeout_add (2000, self.process_connections)2952 gobject.timeout_add (10000, self.read_sleepy)2955 gobject.timeout_add_seconds(2, self.process_connections) 2956 gobject.timeout_add_seconds(10, self.read_sleepy) 2953 2957 2954 2958 if __name__ == '__main__': -
trunk/src/music_track_listener.py
r9325 r9327 88 88 self.banshee_paused_before = False 89 89 self.banshee_is_here = False 90 gobject.timeout_add (10000, self._check_if_banshee_bus)90 gobject.timeout_add_seconds(10, self._check_if_banshee_bus) 91 91 if self.dubus_methods.NameHasOwner('org.gnome.Banshee'): 92 92 self._get_banshee_bus() … … 94 94 # Otherwise, it opens Banshee! 95 95 self.banshee_props ={} 96 gobject.timeout_add (1000, self._banshee_check_track_status)96 gobject.timeout_add_seconds(1, self._banshee_check_track_status) 97 97 98 98 def _check_if_banshee_bus(self): -
trunk/src/profile_window.py
r9325 r9327 249 249 self.message_id = self.statusbar.push(self.context_id, 250 250 _('Information received')) 251 self.remove_statusbar_timeout_id = gobject.timeout_add (3000,251 self.remove_statusbar_timeout_id = gobject.timeout_add_seconds(3, 252 252 self.remove_statusbar, self.message_id) 253 253 gobject.source_remove(self.update_progressbar_timeout_id) … … 345 345 self.message_id = self.statusbar.push(self.context_id, 346 346 _('Information NOT published')) 347 self.remove_statusbar_timeout_id = gobject.timeout_add (3000,347 self.remove_statusbar_timeout_id = gobject.timeout_add_seconds(3, 348 348 self.remove_statusbar, self.message_id) 349 349 if self.update_progressbar_timeout_id is not None: -
trunk/src/roster_window.py
r9325 r9327 5621 5621 st = gajim.config.get('set_status_msg_from_current_music_track') 5622 5622 if st: 5623 gobject.timeout_add (1000,5623 gobject.timeout_add_seconds(1, 5624 5624 self.enable_syncing_status_msg_from_current_music_track, st) 5625 5625 else: 5626 gobject.timeout_add (1000,5626 gobject.timeout_add_seconds(1, 5627 5627 self.enable_syncing_status_msg_from_lastfm, 5628 5628 gajim.config.get('set_status_msg_from_lastfm'))
