add "print format" signal to perl

fix syntax in signals.txt with regards to GLists

simplify signal emit code
This commit is contained in:
ailin-nemui 2020-05-11 17:46:45 +02:00
commit 4330dbec62
8 changed files with 229 additions and 176 deletions

View file

@ -570,10 +570,10 @@ static void sig_print_format(THEME_REC *theme, const char *module,
str = format_get_text_theme_charargs(log_theme, module, dest,
GPOINTER_TO_INT(formatnum), args);
skip_next_printtext = TRUE;
if (str != NULL && *str != '\0') {
skip_next_printtext = TRUE;
if (*str != '\0') {
/* add the line start format */
/* add the line start format */
linestart = format_get_level_tag(log_theme, dest);
tmp = str;
str = format_add_linestart(tmp, linestart);

View file

@ -650,6 +650,9 @@ char *format_get_text_theme_charargs(THEME_REC *theme, const char *module,
MODULE_THEME_REC *module_theme;
char *text;
if (module == NULL)
return NULL;
module_theme = g_hash_table_lookup(theme->modules, module);
if (module_theme == NULL)
return NULL;