mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
Merge pull request #174 from ailin-nemui/entry-prompt-colours
reimplement format and length logic for the entry prompt
This commit is contained in:
commit
229c600e99
5 changed files with 54 additions and 2 deletions
|
|
@ -413,6 +413,18 @@ void printtext_gui(const char *text)
|
|||
g_free(str);
|
||||
}
|
||||
|
||||
/* Like printtext_gui(), but don't expand % codes. */
|
||||
void printtext_gui_internal(const char *str)
|
||||
{
|
||||
TEXT_DEST_REC dest;
|
||||
|
||||
g_return_if_fail(str != NULL);
|
||||
|
||||
memset(&dest, 0, sizeof(dest));
|
||||
|
||||
format_send_to_gui(&dest, str);
|
||||
}
|
||||
|
||||
static void msg_beep_check(TEXT_DEST_REC *dest)
|
||||
{
|
||||
if (dest->level != 0 && (dest->level & MSGLEVEL_NO_ACT) == 0 &&
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ void printtext_dest(TEXT_DEST_REC *dest, const char *text, ...);
|
|||
/* only GUI should call these - used for printing text to somewhere else
|
||||
than windows */
|
||||
void printtext_gui(const char *text);
|
||||
void printtext_gui_internal(const char *str);
|
||||
void printformat_module_gui(const char *module, int formatnum, ...);
|
||||
void printformat_module_gui_args(const char *module, int formatnum, va_list va);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue