about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-05-04 23:08:09 +0100
committerJames Booth <boothj5@gmail.com>2015-05-04 23:08:09 +0100
commitdd386b4a4ed6cb732bd4aaf88131748d3697b441 (patch)
treea4d2ee103a38bcb3dc709d7d5d7f321d69a3552a
parentbf5646aee31864945c767eeb676c0de84756051a (diff)
downloadprofani-tty-dd386b4a4ed6cb732bd4aaf88131748d3697b441.tar.gz
Use null check convention in titlebar.c
-rw-r--r--src/ui/titlebar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/titlebar.c b/src/ui/titlebar.c
index 08c9a8e6..9bb84f9d 100644
--- a/src/ui/titlebar.c
+++ b/src/ui/titlebar.c
@@ -80,7 +80,7 @@ title_bar_update_virtual(void)
 {
     ProfWin *window = wins_get_current();
     if (window->type != WIN_CONSOLE) {
-        if (typing_elapsed != NULL) {
+        if (typing_elapsed) {
             gdouble seconds = g_timer_elapsed(typing_elapsed, NULL);
 
             if (seconds >= 10) {
@@ -128,7 +128,7 @@ title_bar_set_presence(contact_presence_t presence)
 void
 title_bar_switch(void)
 {
-    if (typing_elapsed != NULL) {
+    if (typing_elapsed) {
         g_timer_destroy(typing_elapsed);
         typing_elapsed = NULL;
         typing = FALSE;
@@ -141,7 +141,7 @@ void
 title_bar_set_typing(gboolean is_typing)
 {
     if (is_typing) {
-        if (typing_elapsed != NULL) {
+        if (typing_elapsed) {
             g_timer_start(typing_elapsed);
         } else {
             typing_elapsed = g_timer_new();