about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-01-15 00:26:59 +0000
committerJames Booth <boothj5@gmail.com>2015-01-15 00:26:59 +0000
commita1bbe07b4b4bf7f6a8e3800f128333cef8b0b759 (patch)
tree62b18193d6844531b8097e984823c7486b9fd820
parent97aebb6113a7d9683a9d3258f2ac5b1e7b98cc61 (diff)
downloadprofani-tty-a1bbe07b4b4bf7f6a8e3800f128333cef8b0b759.tar.gz
Renamed notify remind timer
-rw-r--r--src/profanity.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/profanity.c b/src/profanity.c
index 9924fb91..4b7ea4b9 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -77,7 +77,7 @@ prof_run(const int disable_tls, char *log_level, char *account_name)
     _init(disable_tls, log_level);
     log_info("Starting main event loop");
     ui_input_nonblocking(TRUE);
-    GTimer *timer = g_timer_new();
+    GTimer *remind_timer = g_timer_new();
     gboolean cmd_result = TRUE;
     jabber_conn_status_t conn_status = jabber_get_connection_status();
 
@@ -107,12 +107,12 @@ prof_run(const int disable_tls, char *log_level, char *account_name)
                 _handle_idle_time();
             }
 
-            gdouble elapsed = g_timer_elapsed(timer, NULL);
+            gdouble elapsed = g_timer_elapsed(remind_timer, NULL);
 
             gint remind_period = prefs_get_notify_remind();
             if (remind_period > 0 && elapsed >= remind_period) {
                 notify_remind();
-                g_timer_start(timer);
+                g_timer_start(remind_timer);
             }
 
             ch = ui_get_char(inp, &size);
@@ -127,7 +127,7 @@ prof_run(const int disable_tls, char *log_level, char *account_name)
         cmd_result = process_input(inp);
     }
 
-    g_timer_destroy(timer);
+    g_timer_destroy(remind_timer);
 }
 
 void
+0200 Update README.md' href='/danisanti/profani-tty/commit/README.md?id=5709f5a257a1e941273e0fb4ed698240a62bf4b5'>5709f5a2 ^
23d79e6e ^
4484c2b0 ^
23d79e6e ^
63b996a3 ^
00fc0e2e ^

c4d3f19d ^
447d19aa ^

d4892b29 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25