[gucharmap] Use g_timeout_add_seconds instead g_timeout_add
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gucharmap] Use g_timeout_add_seconds instead g_timeout_add
- Date: Sat, 12 Feb 2011 17:51:33 +0000 (UTC)
commit 5a3083b213fd0e0ae131b6b838e69060a9519e2b
Author: Debarshi Ray <debarshir src gnome org>
Date: Sat Feb 12 18:57:46 2011 +0200
Use g_timeout_add_seconds instead g_timeout_add
Fixes: https://bugzilla.gnome.org/642180
gucharmap/gucharmap-settings.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gucharmap/gucharmap-settings.c b/gucharmap/gucharmap-settings.c
index 47cdb91..8f2b7fe 100644
--- a/gucharmap/gucharmap-settings.c
+++ b/gucharmap/gucharmap-settings.c
@@ -36,7 +36,7 @@ static GConfClient *client;
/* keep in sync with gucharmap-private.h! */
#define UNICHAR_MAX (0x0010FFFFUL)
-#define WINDOW_STATE_TIMEOUT 1000 /* ms */
+#define WINDOW_STATE_TIMEOUT 1 /* s */
#define GCONF_PREFIX "/apps/gucharmap"
@@ -332,9 +332,9 @@ window_configure_event_cb (GtkWidget *widget,
state->height = event->height;
if (state->timeout_id == 0) {
- state->timeout_id = g_timeout_add (WINDOW_STATE_TIMEOUT,
- (GSourceFunc) window_state_timeout_cb,
- state);
+ state->timeout_id = g_timeout_add_seconds (WINDOW_STATE_TIMEOUT,
+ (GSourceFunc) window_state_timeout_cb,
+ state);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]