From 606f4e89c57e1b736c1a72ffe6fe75251f5916f4 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 21 Mar 2017 19:46:56 +0100 Subject: [PATCH] Add teardown debug message --- lexer/theme-lexer.l | 9 --------- source/rofi.c | 3 +++ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l index fb005919..b2c2914a 100644 --- a/lexer/theme-lexer.l +++ b/lexer/theme-lexer.l @@ -358,15 +358,6 @@ if ( queue == NULL ){ yylval->colorval.blue = val.b/255.0; return T_COLOR; } -argb:{HEX}{8} { - union { unsigned int val; struct { unsigned char b,g,r,a;};} val; - val.val = (unsigned int)strtoull ( &yytext[1], NULL, 16); - yylval->colorval.alpha = val.a/255.0; - yylval->colorval.red = val.r/255.0; - yylval->colorval.green = val.g/255.0; - yylval->colorval.blue = val.b/255.0; - return T_COLOR; -} #{HEX}{6} { union { unsigned int val; struct { unsigned char b,g,r,a;};} val; val.val = (unsigned int)g_ascii_strtoull ( &yytext[1], NULL, 16); diff --git a/source/rofi.c b/source/rofi.c index 67fa5fe6..56a03608 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -73,6 +73,8 @@ // TODO: move this check to mode.c #include "mode-private.h" +#define LOG_DOMAIN "Rofi" + // Pidfile. char *pidfile = NULL; const char *cache_dir = NULL; @@ -170,6 +172,7 @@ static int setup () */ static void teardown ( int pfd ) { + g_log ( LOG_DOMAIN , G_LOG_LEVEL_DEBUG, "Teardown"); // Cleanup font setup. textbox_cleanup ( );