diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/command/cmd_funcs.c | 14 | ||||
-rw-r--r-- | src/event/server_events.c | 2 | ||||
-rw-r--r-- | src/ui/console.c | 36 | ||||
-rw-r--r-- | src/ui/core.c | 6 | ||||
-rw-r--r-- | src/ui/mucconfwin.c | 2 |
5 files changed, 30 insertions, 30 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 8aa1fceb..b4b802b9 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -3124,7 +3124,7 @@ cmd_status(ProfWin *window, const char *const command, gchar **args) if (pcontact) { win_show_contact(window, pcontact); } else { - win_println(window, 0, "Error getting contact info."); + win_printf_line(window, THEME_DEFAULT, '-', "Error getting contact info."); } } break; @@ -3139,7 +3139,7 @@ cmd_status(ProfWin *window, const char *const command, gchar **args) if (occupant) { win_show_occupant(window, occupant); } else { - win_println(window, 0, "Error getting contact info."); + win_printf_line(window, THEME_DEFAULT, '-', "Error getting contact info."); } jid_destroy(jid); } @@ -3204,7 +3204,7 @@ cmd_info(ProfWin *window, const char *const command, gchar **args) if (pcontact) { win_show_info(window, pcontact); } else { - win_println(window, 0, "Error getting contact info."); + win_printf_line(window, THEME_DEFAULT, '-', "Error getting contact info."); } } break; @@ -3219,7 +3219,7 @@ cmd_info(ProfWin *window, const char *const command, gchar **args) if (occupant) { win_show_occupant_info(window, jid->barejid, occupant); } else { - win_println(window, 0, "Error getting contact info."); + win_printf_line(window, THEME_DEFAULT, '-', "Error getting contact info."); } jid_destroy(jid); } @@ -3372,7 +3372,7 @@ cmd_software(ProfWin *window, const char *const command, gchar **args) iq_send_software_version(fulljid->str); g_string_free(fulljid, TRUE); } else { - win_println(window, 0, "Unknown resource for /software command."); + win_printf_line(window, THEME_DEFAULT, '-', "Unknown resource for /software command."); } } break; @@ -5137,7 +5137,7 @@ cmd_notify(ProfWin *window, const char *const command, gchar **args) if (!args[0]) { ProfWin *current = wins_get_current(); if (current->type == WIN_MUC) { - win_println(current, 0, ""); + win_printf_line(current, THEME_DEFAULT, '-', ""); ProfMucWin *mucwin = (ProfMucWin *)current; win_vprintln_ch(window, '!', "Notification settings for %s:", mucwin->roomjid); @@ -5180,7 +5180,7 @@ cmd_notify(ProfWin *window, const char *const command, gchar **args) win_vprintln_ch(window, '!', " Triggers : OFF (global setting)"); } } - win_println(current, 0, ""); + win_printf_line(current, THEME_DEFAULT, '-', ""); } else { cons_show(""); cons_notify_setting(); diff --git a/src/event/server_events.c b/src/event/server_events.c index d271ec55..d6589bca 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -442,7 +442,7 @@ sv_ev_incoming_message(char *barejid, char *resource, char *message, char *pgp_m #ifdef HAVE_LIBGPGME if (pgp_message) { if (chatwin->is_otr) { - win_println((ProfWin*)chatwin, 0, "PGP encrypted message received whilst in OTR session."); + win_printf_line((ProfWin*)chatwin, THEME_DEFAULT, '-', "PGP encrypted message received whilst in OTR session."); } else { // PROF_ENC_NONE, PROF_ENC_PGP _sv_ev_incoming_pgp(chatwin, new_win, barejid, resource, message, pgp_message, timestamp); } diff --git a/src/ui/console.c b/src/ui/console.c index 61c07b37..09946d5a 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -86,7 +86,7 @@ cons_debug(const char *const msg, ...) va_start(arg, msg); GString *fmt_msg = g_string_new(NULL); g_string_vprintf(fmt_msg, msg, arg); - win_println(console, 0, fmt_msg->str); + win_printf_line(console, THEME_DEFAULT, '-', "%s", fmt_msg->str); g_string_free(fmt_msg, TRUE); va_end(arg); } @@ -100,7 +100,7 @@ cons_show(const char *const msg, ...) va_start(arg, msg); GString *fmt_msg = g_string_new(NULL); g_string_vprintf(fmt_msg, msg, arg); - win_println(console, 0, fmt_msg->str); + win_printf_line(console, THEME_DEFAULT, '-', "%s", fmt_msg->str); g_string_free(fmt_msg, TRUE); va_end(arg); } @@ -138,7 +138,7 @@ cons_show_help(const char *const cmd, CommandHelp *help) cons_show(""); win_printf_line(console, THEME_WHITE_BOLD, '-', "Description"); - win_println(console, 0, help->desc); + win_printf_line(console, THEME_DEFAULT, '-', "%s", help->desc); int maxlen = 0; for (i = 0; help->args[i][0] != NULL; i++) { @@ -427,13 +427,13 @@ cons_about(void) } win_printf_line(console, THEME_DEFAULT, '-', "Copyright (C) 2012 - 2016 James Booth <%s>.", PACKAGE_BUGREPORT); - win_println(console, 0, "License GPLv3+: GNU GPL version 3 or later <https://www.gnu.org/licenses/gpl.html>"); - win_println(console, 0, ""); - win_println(console, 0, "This is free software; you are free to change and redistribute it."); - win_println(console, 0, "There is NO WARRANTY, to the extent permitted by law."); - win_println(console, 0, ""); - win_println(console, 0, "Type '/help' to show complete help."); - win_println(console, 0, ""); + win_printf_line(console, THEME_DEFAULT, '-', "License GPLv3+: GNU GPL version 3 or later <https://www.gnu.org/licenses/gpl.html>"); + win_printf_line(console, THEME_DEFAULT, '-', ""); + win_printf_line(console, THEME_DEFAULT, '-', "This is free software; you are free to change and redistribute it."); + win_printf_line(console, THEME_DEFAULT, '-', "There is NO WARRANTY, to the extent permitted by law."); + win_printf_line(console, THEME_DEFAULT, '-', ""); + win_printf_line(console, THEME_DEFAULT, '-', "Type '/help' to show complete help."); + win_printf_line(console, THEME_DEFAULT, '-', ""); if (prefs_get_boolean(PREF_VERCHECK)) { cons_check_version(FALSE); @@ -456,12 +456,12 @@ cons_check_version(gboolean not_available_msg) if (relase_valid) { if (release_is_new(latest_release)) { win_printf_line(console, THEME_DEFAULT, '-', "A new version of Profanity is available: %s", latest_release); - win_println(console, 0, "Check <http://www.profanity.im> for details."); - win_println(console, 0, ""); + win_printf_line(console, THEME_DEFAULT, '-', "Check <http://www.profanity.im> for details."); + win_printf_line(console, THEME_DEFAULT, '-', ""); } else { if (not_available_msg) { - win_println(console, 0, "No new version available."); - win_println(console, 0, ""); + win_printf_line(console, THEME_DEFAULT, '-', "No new version available."); + win_printf_line(console, THEME_DEFAULT, '-', ""); } } @@ -509,7 +509,7 @@ cons_show_wins(gboolean unread) GSList *curr = window_strings; while (curr) { - win_println(console, 0, curr->data); + win_printf_line(console, THEME_DEFAULT, '-', "%s", curr->data); curr = g_slist_next(curr); } g_slist_free_full(window_strings, free); @@ -602,7 +602,7 @@ cons_show_caps(const char *const fulljid, resource_presence_t presence) } if (caps->features) { - win_println(console, 0, "Features:"); + win_printf_line(console, THEME_DEFAULT, '-', "Features:"); GSList *feature = caps->features; while (feature) { win_printf_line(console, THEME_DEFAULT, '-', " %s", feature->data); @@ -982,7 +982,7 @@ cons_show_account(ProfAccount *account) GList *curr = resources; if (curr) { - win_println(console, 0, "Resources:"); + win_printf_line(console, THEME_DEFAULT, '-', "Resources:"); // sort in order of availability while (curr) { @@ -2348,7 +2348,7 @@ static void _cons_splash_logo(void) { ProfWin *console = wins_get_console(); - win_println(console, 0, "Welcome to"); + win_printf_line(console, THEME_DEFAULT, '-', "Welcome to"); win_printf_line(console, THEME_SPLASH, '-', " ___ _ "); win_printf_line(console, THEME_SPLASH, '-', " / __) (_)_ "); diff --git a/src/ui/core.c b/src/ui/core.c index 42881d30..9347ca66 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -739,7 +739,7 @@ ui_current_print_line(const char *const msg, ...) va_start(arg, msg); GString *fmt_msg = g_string_new(NULL); g_string_vprintf(fmt_msg, msg, arg); - win_println(window, 0, fmt_msg->str); + win_printf_line(window, THEME_DEFAULT, '-', "%s", fmt_msg->str); va_end(arg); g_string_free(fmt_msg, TRUE); } @@ -1025,7 +1025,7 @@ ui_ask_pgp_passphrase(const char *hint, int prev_fail) { ProfWin *current = wins_get_current(); - win_println(current, 0, ""); + win_printf_line(current, THEME_DEFAULT, '-', ""); if (prev_fail) { win_printf_line(current, THEME_DEFAULT, '!', "Incorrect passphrase"); @@ -1314,7 +1314,7 @@ ui_show_software_version(const char *const jid, const char *const presence, } if (name || version || os) { - win_println(window, 0, ""); + win_printf_line(window, THEME_DEFAULT, '-', ""); theme_item_t presence_colour = theme_main_presence_attrs(presence); win_printf(window, '-', 0, NULL, NO_EOL, presence_colour, "", "%s", jid); win_printf(window, '-', 0, NULL, NO_DATE, 0, "", ":"); diff --git a/src/ui/mucconfwin.c b/src/ui/mucconfwin.c index 5bba3bfd..16a6bb2a 100644 --- a/src/ui/mucconfwin.c +++ b/src/ui/mucconfwin.c @@ -83,7 +83,7 @@ mucconfwin_show_form_field(ProfMucConfWin *confwin, DataForm *form, char *tag) FormField *field = form_get_field_by_tag(form, tag); ProfWin *window = (ProfWin*)confwin; _mucconfwin_form_field(window, tag, field); - win_println(window, 0, ""); + win_printf_line(window, THEME_DEFAULT, '-', ""); } void |