From 9fac3c0c5a4767111349101730a520bf921abed1 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 5 Jun 2007 16:55:01 +0000 Subject: Bump glib requirement to 2.13, for the ~second-accurate timers. 2007-06-05 Ross Burton * configure.in: Bump glib requirement to 2.13, for the ~second-accurate timers. 2007-06-05 Ross Burton * 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 --- typing-break/drw-break-window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'typing-break/drw-break-window.c') 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 ()); -- cgit v1.2.1