Changeset 7464
- Timestamp:
- Dec 22, 2008, 5:39:03 AM (14 years ago)
- Location:
- trunk/gtk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gtk/details.c
r7404 r7464 29 29 #include "util.h" 30 30 31 #define UPDATE_INTERVAL_ MSEC 200031 #define UPDATE_INTERVAL_SECONDS 2 32 32 33 33 /**** … … 1530 1530 gtk_box_pack_start( GTK_BOX( GTK_DIALOG( d )->vbox ), n, TRUE, TRUE, 0 ); 1531 1531 1532 tag = g _timeout_add ( UPDATE_INTERVAL_MSEC, periodic_refresh, d );1532 tag = gtr_timeout_add_seconds( UPDATE_INTERVAL_SECONDS, periodic_refresh, d ); 1533 1533 g_object_set_data_full ( G_OBJECT( d ), "tag", 1534 1534 GUINT_TO_POINTER( tag ), remove_tag ); -
trunk/gtk/file-list.c
r7259 r7464 484 484 refresh( data ); 485 485 486 data->timeout_tag = g _timeout_add( 2500, refreshModel, data );486 data->timeout_tag = gtr_timeout_add_seconds( 2, refreshModel, data ); 487 487 } 488 488 -
trunk/gtk/main.c
r7396 r7464 613 613 /* start scheduled rate timer */ 614 614 updateScheduledLimits ( tr_core_session( cbdata->core ) ); 615 g_timeout_add( 60 * 1000, updateScheduledLimits, 616 tr_core_session( cbdata->core ) ); 615 gtr_timeout_add_seconds( 60, updateScheduledLimits, tr_core_session( cbdata->core ) ); 617 616 618 617 /* either show the window or iconify it */ -
trunk/gtk/msgwin.c
r7404 r7464 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 = gtr_timeout_add_seconds( 2, onRefresh, data ); 547 547 g_object_weak_ref( G_OBJECT( win ), onWindowDestroyed, data ); 548 548 -
trunk/gtk/stats.c
r7404 r7464 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 = gtr_timeout_add_seconds( 1, updateStats, ui ); 173 173 g_object_weak_ref( G_OBJECT( d ), dialogDestroyed, GUINT_TO_POINTER( i ) ); 174 174 return d; -
trunk/gtk/tr-core.c
r7393 r7464 499 499 g_slist_append( p->monitor_files, g_strdup( filename ) ); 500 500 if( !p->monitor_idle_tag ) 501 p->monitor_idle_tag = g_timeout_add( 1000, watchFolderIdle, 502 core ); 501 p->monitor_idle_tag = gtr_timeout_add_seconds( 1, watchFolderIdle, core ); 503 502 } 504 503 } -
trunk/gtk/tr-icon.c
r7404 r7464 27 27 #else 28 28 29 #define UPDATE_INTERVAL 2500 29 #define UPDATE_INTERVAL_SECONDS 2 30 30 31 31 static void … … 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 = gtr_timeout_add_seconds( UPDATE_INTERVAL_SECONDS, 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( -
trunk/gtk/tr-prefs.c
r7404 r7464 1243 1243 data->label = ndata->label; 1244 1244 data->alive = ndata->alive; 1245 g _timeout_add( 3000, testing_port_begin, data );1245 gtr_timeout_add_seconds( 3, testing_port_begin, data ); 1246 1246 } 1247 1247 } -
trunk/gtk/tracker-list.c
r7404 r7464 29 29 #include "util.h" 30 30 31 #define UPDATE_INTERVAL_MSEC 200032 31 #define PAGE_KEY "page" 33 32 -
trunk/gtk/util.c
r6873 r7464 642 642 } 643 643 644 /*** 645 **** 646 ***/ 647 648 guint 649 gtr_timeout_add_seconds( guint interval, 650 GSourceFunc function, 651 gpointer data ) 652 { 653 #if GLIB_CHECK_VERSION( 2,14,0 ) 654 return g_timeout_add_seconds( interval, function, data ); 655 #else 656 return g_timeout_add( interval*1000, function, data ); 657 #endif 658 } -
trunk/gtk/util.h
r7271 r7464 96 96 const char * mnemonic ); 97 97 98 guint gtr_timeout_add_seconds( guint interval, 99 GSourceFunc function, 100 gpointer data ); 101 98 102 void addTorrentErrorDialog( GtkWidget * window_or_child, 99 103 int err,
Note: See TracChangeset
for help on using the changeset viewer.