diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-04-18 08:24:09 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-04-18 08:24:09 +0200 |
commit | 8c11b48532a133ec60bc7c41e6436c84ab57668c (patch) | |
tree | f46e54fc95ac1e8d4ef1d006beff488980263fe5 /source/rofi.c | |
parent | 6250e39e311e6a9edc522cbdab7c9581f3435a81 (diff) |
Print message about disabled mode to stderr using fprintf.
g_warning breaks the colour output.
Diffstat (limited to 'source/rofi.c')
-rw-r--r-- | source/rofi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rofi.c b/source/rofi.c index c994c36a..a9db81ce 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -367,9 +367,9 @@ static void help_print_disabled_mode ( const char *mode ) int is_term = isatty ( fileno ( stdout ) ); // Only output to terminal if ( is_term ) { - g_warning ( "Mode %s%s%s is not enabled. I have enabled it for now.", + fprintf ( stderr, "Mode %s%s%s is not enabled. I have enabled it for now.\n", color_red, mode, color_reset ); - g_warning ( "Please consider adding %s%s%s to the list of enabled modi: %smodi: %s%s%s,%s%s.", + fprintf ( stderr, "Please consider adding %s%s%s to the list of enabled modi: %smodi: %s%s%s,%s%s.\n", color_red, mode, color_reset, color_green, config.modi, color_reset, color_red, mode, color_reset |