=== modified file 'gtk/details.c'
|
|
|
28 | 28 | #include "hig.h" |
29 | 29 | #include "util.h" |
30 | 30 | |
31 | | #define UPDATE_INTERVAL_MSEC 2000 |
| 31 | #define UPDATE_INTERVAL_SEC 2 |
32 | 32 | |
33 | 33 | /**** |
34 | 34 | ***** PIECES VIEW |
… |
… |
|
1533 | 1533 | |
1534 | 1534 | gtk_box_pack_start( GTK_BOX( GTK_DIALOG( d )->vbox ), n, TRUE, TRUE, 0 ); |
1535 | 1535 | |
1536 | | tag = g_timeout_add ( UPDATE_INTERVAL_MSEC, periodic_refresh, d ); |
| 1536 | tag = g_timeout_add_seconds ( UPDATE_INTERVAL_SEC, periodic_refresh, d ); |
1537 | 1537 | g_object_set_data_full ( G_OBJECT( d ), "tag", |
1538 | 1538 | GUINT_TO_POINTER( tag ), remove_tag ); |
1539 | 1539 | |
=== modified file 'gtk/file-list.c'
|
|
|
483 | 483 | |
484 | 484 | refresh( data ); |
485 | 485 | |
486 | | data->timeout_tag = g_timeout_add( 2500, refreshModel, data ); |
| 486 | data->timeout_tag = g_timeout_add_seconds( 2.5, refreshModel, data ); |
487 | 487 | } |
488 | 488 | |
489 | 489 | gtk_tree_view_set_model( GTK_TREE_VIEW( data->view ), |
=== modified file 'gtk/main.c'
|
|
|
68 | 68 | #include <libtransmission/version.h> |
69 | 69 | |
70 | 70 | /* interval in milliseconds to update the torrent list display */ |
71 | | #define UPDATE_INTERVAL 1666 |
| 71 | #define UPDATE_INTERVAL 1.666 |
72 | 72 | |
73 | 73 | /* interval in milliseconds to check for stopped torrents and update display */ |
74 | 74 | #define EXIT_CHECK_INTERVAL 500 |
… |
… |
|
647 | 647 | prefschanged( cbdata->core, PREF_KEY_SHOW_TRAY_ICON, cbdata ); |
648 | 648 | |
649 | 649 | /* start model update timer */ |
650 | | cbdata->timer = g_timeout_add( UPDATE_INTERVAL, updatemodel, cbdata ); |
| 650 | cbdata->timer = g_timeout_add_seconds( UPDATE_INTERVAL, updatemodel, cbdata ); |
651 | 651 | updatemodel( cbdata ); |
652 | 652 | |
653 | 653 | /* start scheduled rate timer */ |
654 | 654 | updateScheduledLimits ( tr_core_session( cbdata->core ) ); |
655 | | g_timeout_add( 60 * 1000, updateScheduledLimits, |
| 655 | g_timeout_add_seconds( 60 , updateScheduledLimits, |
656 | 656 | tr_core_session( cbdata->core ) ); |
657 | 657 | |
658 | 658 | /* either show the window or iconify it */ |
… |
… |
|
730 | 730 | gtk_window_get_position( window, &x, &y ); |
731 | 731 | clearTag( &cbdata->idle_hide_mainwindow_tag ); |
732 | 732 | hideMainWindow( cbdata ); |
733 | | cbdata->idle_hide_mainwindow_tag = g_timeout_add( |
734 | | 100, idle_hide_mainwindow, window ); |
| 733 | cbdata->idle_hide_mainwindow_tag = g_timeout_add_seconds( |
| 734 | .1, idle_hide_mainwindow, window ); |
735 | 735 | } |
736 | 736 | else |
737 | 737 | { |
=== modified file 'gtk/msgwin.c'
|
|
|
543 | 543 | gtk_box_pack_start( GTK_BOX( vbox ), w, TRUE, TRUE, 0 ); |
544 | 544 | gtk_container_add( GTK_CONTAINER( win ), vbox ); |
545 | 545 | |
546 | | data->refresh_tag = g_timeout_add( 1666, onRefresh, data ); |
| 546 | data->refresh_tag = g_timeout_add_seconds( 1.666, onRefresh, data ); |
547 | 547 | g_object_weak_ref( G_OBJECT( win ), onWindowDestroyed, data ); |
548 | 548 | |
549 | 549 | gtk_widget_show_all( win ); |
=== modified file 'gtk/stats.c'
|
|
|
169 | 169 | updateStats( ui ); |
170 | 170 | g_object_set_data_full( G_OBJECT( d ), "data", ui, g_free ); |
171 | 171 | g_signal_connect( d, "response", G_CALLBACK( dialogResponse ), ui ); |
172 | | i = g_timeout_add( 1000, updateStats, ui ); |
| 172 | i = g_timeout_add_seconds( 1, updateStats, ui ); |
173 | 173 | g_object_weak_ref( G_OBJECT( d ), dialogDestroyed, GUINT_TO_POINTER( i ) ); |
174 | 174 | return d; |
175 | 175 | } |
=== modified file 'gtk/tr-core.c'
|
|
|
499 | 499 | p->monitor_files = |
500 | 500 | g_slist_append( p->monitor_files, g_strdup( filename ) ); |
501 | 501 | if( !p->monitor_idle_tag ) |
502 | | p->monitor_idle_tag = g_timeout_add( 1000, watchFolderIdle, |
| 502 | p->monitor_idle_tag = g_timeout_add_seconds( 1, watchFolderIdle, |
503 | 503 | core ); |
504 | 504 | } |
505 | 505 | } |
=== modified file 'gtk/tr-icon.c'
|
|
|
26 | 26 | |
27 | 27 | #else |
28 | 28 | |
29 | | #define UPDATE_INTERVAL 2500 |
| 29 | #define UPDATE_INTERVAL 2.5 |
30 | 30 | |
31 | 31 | static void |
32 | 32 | activated( GtkStatusIcon * self UNUSED, |
… |
… |
|
90 | 90 | |
91 | 91 | g_signal_connect( icon, "activate", G_CALLBACK( activated ), NULL ); |
92 | 92 | g_signal_connect( icon, "popup-menu", G_CALLBACK( popup ), NULL ); |
93 | | id = g_timeout_add( UPDATE_INTERVAL, refresh_tooltip_cb, icon ); |
| 93 | id = g_timeout_add_seconds( UPDATE_INTERVAL, refresh_tooltip_cb, icon ); |
94 | 94 | g_object_set_data( G_OBJECT( icon ), "tr-core", core ); |
95 | 95 | g_object_set_data_full( G_OBJECT( |
96 | 96 | icon ), "update-tag", GUINT_TO_POINTER( |
=== modified file 'gtk/tr-prefs.c'
|
|
|
251 | 251 | data->last_change = g_timer_new( ); |
252 | 252 | g_object_set_data_full( o, IDLE_DATA, data, spin_idle_data_free ); |
253 | 253 | g_object_ref( G_OBJECT( o ) ); |
254 | | g_timeout_add( 100, spun_cb_idle, w ); |
| 254 | g_timeout_add_seconds( .1, spun_cb_idle, w ); |
255 | 255 | } |
256 | 256 | g_timer_start( data->last_change ); |
257 | 257 | } |
… |
… |
|
1310 | 1310 | data = g_new0( struct test_port_data, 1 ); |
1311 | 1311 | data->label = ndata->label; |
1312 | 1312 | data->alive = ndata->alive; |
1313 | | g_timeout_add( 3000, testing_port_begin, data ); |
| 1313 | g_timeout_add_seconds( 3, testing_port_begin, data ); |
1314 | 1314 | } |
1315 | 1315 | } |
1316 | 1316 | |