summaryrefslogtreecommitdiff
path: root/typing-break/drw-break-window.c
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2007-06-05 16:55:01 +0000
committerRoss Burton <rburton@src.gnome.org>2007-06-05 16:55:01 +0000
commit9fac3c0c5a4767111349101730a520bf921abed1 (patch)
tree672441672f3c02f963f2fbdd25e6715f97b325ae /typing-break/drw-break-window.c
parent759c98a60836f83b10dd4c0fe3dbd46e97577564 (diff)
downloadgnome-control-center-9fac3c0c5a4767111349101730a520bf921abed1.tar.gz
Bump glib requirement to 2.13, for the ~second-accurate timers.
2007-06-05 Ross Burton <ross@openedhand.com> * configure.in: Bump glib requirement to 2.13, for the ~second-accurate timers. 2007-06-05 Ross Burton <ross@openedhand.com> * drw-monitor.c: * drw-break-window.c: * drwright.c: Use the second-accurate timers instead of the millisecond timers, in an attempt to use less processor time (#443547). svn path=/trunk/; revision=7692
Diffstat (limited to 'typing-break/drw-break-window.c')
-rw-r--r--typing-break/drw-break-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/typing-break/drw-break-window.c b/typing-break/drw-break-window.c
index f4c438041..d3d631fd2 100644
--- a/typing-break/drw-break-window.c
+++ b/typing-break/drw-break-window.c
@@ -51,7 +51,7 @@ struct _DrwBreakWindowPrivate {
#define DRW_BREAK_WINDOW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DRW_TYPE_BREAK_WINDOW, DrwBreakWindowPrivate))
-#define POSTPONE_CANCEL 30*1000
+#define POSTPONE_CANCEL 30
/* Signals */
enum {
@@ -483,7 +483,7 @@ postpone_entry_key_press_event_cb (GtkEntry *entry,
g_source_remove (priv->postpone_timeout_id);
- priv->postpone_timeout_id = g_timeout_add (POSTPONE_CANCEL, (GSourceFunc) postpone_cancel_cb, window);
+ priv->postpone_timeout_id = g_timeout_add_seconds (POSTPONE_CANCEL, (GSourceFunc) postpone_cancel_cb, window);
return FALSE;
}
@@ -513,7 +513,7 @@ postpone_clicked_cb (GtkWidget *button,
gtk_widget_show (priv->postpone_entry);
- priv->postpone_timeout_id = g_timeout_add (POSTPONE_CANCEL, (GSourceFunc) postpone_cancel_cb, bw);
+ priv->postpone_timeout_id = g_timeout_add_seconds (POSTPONE_CANCEL, (GSourceFunc) postpone_cancel_cb, bw);
grab_on_window (priv->postpone_entry->window, gtk_get_current_event_time ());