mirror of
https://github.com/irssi/irssi.git
synced 2025-04-26 13:01:11 -05:00
"gui print text" signal changed, last parameter is now TEXT_DEST_REC, not
level. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2694 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
1ab2cfc1b1
commit
970b49df1a
@ -70,6 +70,7 @@ queries.c:
|
|||||||
"query created", QUERY_REC, int automatic
|
"query created", QUERY_REC, int automatic
|
||||||
"query destroyed", QUERY_REC
|
"query destroyed", QUERY_REC
|
||||||
"query nick changed", QUERY_REC, char *orignick
|
"query nick changed", QUERY_REC, char *orignick
|
||||||
|
"window item name changed", WI_ITEM_REC
|
||||||
"query address changed", QUERY_REC
|
"query address changed", QUERY_REC
|
||||||
"query server changed", QUERY_REC, SERVER_REC
|
"query server changed", QUERY_REC, SERVER_REC
|
||||||
|
|
||||||
@ -225,7 +226,7 @@ FE common
|
|||||||
|
|
||||||
* Requires to work properly:
|
* Requires to work properly:
|
||||||
|
|
||||||
"gui print text", WINDOW_REC, int fg, int bg, int flags, char *text, int level
|
"gui print text", WINDOW_REC, int fg, int bg, int flags, char *text, TEXT_DEST_REC
|
||||||
|
|
||||||
(Can be used to determine when all "gui print text"s are sent (not required))
|
(Can be used to determine when all "gui print text"s are sent (not required))
|
||||||
"gui print text finished", WINDOW_REC
|
"gui print text finished", WINDOW_REC
|
||||||
|
@ -703,7 +703,7 @@ void format_newline(WINDOW_REC *window)
|
|||||||
signal_emit_id(signal_gui_print_text, 6, window,
|
signal_emit_id(signal_gui_print_text, 6, window,
|
||||||
GINT_TO_POINTER(-1), GINT_TO_POINTER(-1),
|
GINT_TO_POINTER(-1), GINT_TO_POINTER(-1),
|
||||||
GINT_TO_POINTER(GUI_PRINT_FLAG_NEWLINE),
|
GINT_TO_POINTER(GUI_PRINT_FLAG_NEWLINE),
|
||||||
"", GINT_TO_POINTER(-1));
|
"", NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* parse ANSI color string */
|
/* parse ANSI color string */
|
||||||
@ -956,7 +956,7 @@ void format_send_to_gui(TEXT_DEST_REC *dest, const char *text)
|
|||||||
GINT_TO_POINTER(fgcolor),
|
GINT_TO_POINTER(fgcolor),
|
||||||
GINT_TO_POINTER(bgcolor),
|
GINT_TO_POINTER(bgcolor),
|
||||||
GINT_TO_POINTER(flags), str,
|
GINT_TO_POINTER(flags), str,
|
||||||
dest->level);
|
dest);
|
||||||
flags &= ~(GUI_PRINT_FLAG_INDENT|GUI_PRINT_FLAG_CLRTOEOL);
|
flags &= ~(GUI_PRINT_FLAG_INDENT|GUI_PRINT_FLAG_CLRTOEOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1009,7 +1009,7 @@ void format_send_to_gui(TEXT_DEST_REC *dest, const char *text)
|
|||||||
signal_emit_id(signal_gui_print_text, 6,
|
signal_emit_id(signal_gui_print_text, 6,
|
||||||
dest->window, NULL, NULL,
|
dest->window, NULL, NULL,
|
||||||
GINT_TO_POINTER(GUI_PRINT_FLAG_INDENT_FUNC),
|
GINT_TO_POINTER(GUI_PRINT_FLAG_INDENT_FUNC),
|
||||||
str, start, dest->level);
|
str, start, dest);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case FORMAT_STYLE_DEFAULTS:
|
case FORMAT_STYLE_DEFAULTS:
|
||||||
|
@ -231,7 +231,7 @@ static void view_add_eol(TEXT_BUFFER_VIEW_REC *view, LINE_REC **line)
|
|||||||
|
|
||||||
static void sig_gui_print_text(WINDOW_REC *window, void *fgcolor,
|
static void sig_gui_print_text(WINDOW_REC *window, void *fgcolor,
|
||||||
void *bgcolor, void *pflags,
|
void *bgcolor, void *pflags,
|
||||||
char *str, void *level)
|
char *str, TEXT_DEST_REC *dest)
|
||||||
{
|
{
|
||||||
GUI_WINDOW_REC *gui;
|
GUI_WINDOW_REC *gui;
|
||||||
TEXT_BUFFER_VIEW_REC *view;
|
TEXT_BUFFER_VIEW_REC *view;
|
||||||
@ -259,7 +259,7 @@ static void sig_gui_print_text(WINDOW_REC *window, void *fgcolor,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
lineinfo.level = GPOINTER_TO_INT(level);
|
lineinfo.level = GPOINTER_TO_INT(dest->level);
|
||||||
lineinfo.time = time(NULL);
|
lineinfo.time = time(NULL);
|
||||||
|
|
||||||
gui = WINDOW_GUI(window);
|
gui = WINDOW_GUI(window);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user