mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
notifier: Use glib function
This commit is contained in:
parent
0a8d69dc46
commit
8c4ce7a939
@ -77,10 +77,9 @@ notifier_uninit(void)
|
|||||||
void
|
void
|
||||||
notify_typing(const char* const name)
|
notify_typing(const char* const name)
|
||||||
{
|
{
|
||||||
char message[strlen(name) + 1 + 11];
|
gchar *message = g_strdup_printf("%s: typing...", name);
|
||||||
sprintf(message, "%s: typing...", name);
|
|
||||||
|
|
||||||
notify(message, 10000, "Incoming message");
|
notify(message, 10000, "Incoming message");
|
||||||
|
g_free(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user