Code

use g_timeout_add_seconds() where appropriate
[ncmpc.git] / src / screen.c
index 0a056a866ec29ba266711eea5bc4c7044ac44885..781b68f22eb9e99c2d06b2590dce1990548041a6 100644 (file)
@@ -277,8 +277,8 @@ screen_init(struct mpdclient *c)
 #ifndef NCMPC_MINI
        if (options.welcome_screen_list)
                screen.welcome_source_id =
-                       g_timeout_add(SCREEN_WELCOME_TIME * 1000,
-                                     welcome_timer_callback, c);
+                       g_timeout_add_seconds(SCREEN_WELCOME_TIME,
+                                             welcome_timer_callback, c);
 #endif
 
        /* create top window */