[gnome-system-monitor] Use g_timeout_add_seconds where possible. Fixes #581099.



commit 0f6cebe95176b2a642e2ed0281e2cd8295d41050
Author: Debarshi Ray <rishi gnu org>
Date:   Sat May 2 21:07:17 2009 +0530

    Use g_timeout_add_seconds where possible. Fixes #581099.
    
    Signed-off-by: Benoît Dejean <benoit placenet org>
---
 src/memmaps.cpp   |    2 +-
 src/openfiles.cpp |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/memmaps.cpp b/src/memmaps.cpp
index 8cde6c6..9a6fcae 100644
--- a/src/memmaps.cpp
+++ b/src/memmaps.cpp
@@ -648,7 +648,7 @@ create_single_memmaps_dialog (GtkTreeModel *model, GtkTreePath *path,
 	g_signal_connect(G_OBJECT(memmapsdialog), "delete-event",
 			 G_CALLBACK(window_delete_event), mmdata);
 
-	mmdata->timer = g_timeout_add (5000, memmaps_timer, mmdata);
+	mmdata->timer = g_timeout_add_seconds (5, memmaps_timer, mmdata);
 
 	update_memmaps_dialog (mmdata);
 }
diff --git a/src/openfiles.cpp b/src/openfiles.cpp
index ff4166c..500b42a 100644
--- a/src/openfiles.cpp
+++ b/src/openfiles.cpp
@@ -378,7 +378,7 @@ create_single_openfiles_dialog (GtkTreeModel *model, GtkTreePath *path,
 
 	gtk_widget_show_all (openfilesdialog);
 
-	timer = g_timeout_add (5000, openfiles_timer, tree);
+	timer = g_timeout_add_seconds (5, openfiles_timer, tree);
 	g_object_set_data (G_OBJECT (tree), "timer", GUINT_TO_POINTER (timer));
 
 	update_openfiles_dialog (tree);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]