diff options
author | James Booth <boothj5@gmail.com> | 2016-05-06 02:18:31 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-05-06 02:18:31 +0100 |
commit | 81e95966cfd4313606d9b45ec1565f1e1a63a497 (patch) | |
tree | b6635f7f8cafe6a22ea1d0cab24037be234f7d30 /src/ui | |
parent | c009144b3d08d263e8e7f4090474470bd40dce90 (diff) | |
download | profani-tty-81e95966cfd4313606d9b45ec1565f1e1a63a497.tar.gz |
Remove redundant tls secured function
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/console.c | 2 | ||||
-rw-r--r-- | src/ui/core.c | 4 | ||||
-rw-r--r-- | src/ui/ui.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index d7db79c7..472cd587 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -472,7 +472,7 @@ cons_check_version(gboolean not_available_msg) } void -cons_show_login_success(ProfAccount *account, int secured) +cons_show_login_success(ProfAccount *account, gboolean secured) { ProfWin *console = wins_get_console(); win_vprint(console, '-', 0, NULL, NO_EOL, 0, "", "%s logged in successfully, ", account->jid); diff --git a/src/ui/core.c b/src/ui/core.c index aa7fdc09..0b761274 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -352,7 +352,7 @@ ui_group_removed(const char *const contact, const char *const group) } void -ui_handle_login_account_success(ProfAccount *account, int secured) +ui_handle_login_account_success(ProfAccount *account, gboolean secured) { if (account->theme) { if (theme_load(account->theme)) { @@ -378,7 +378,7 @@ ui_handle_login_account_success(ProfAccount *account, int secured) cons_show_login_success(account, secured); title_bar_set_presence(contact_presence); title_bar_set_connected(TRUE); - title_bar_set_tls(secured ? TRUE : FALSE); + title_bar_set_tls(secured); GString *fulljid = g_string_new(account->jid); g_string_append(fulljid, "/"); diff --git a/src/ui/ui.h b/src/ui/ui.h index 36a70618..a4b9e8ec 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -118,7 +118,7 @@ void ui_show_software_version(const char *const jid, const char *const presence const char *const version, const char *const os); void ui_prune_wins(void); void ui_auto_away(char *message, gint time, resource_presence_t res_presence); -void ui_handle_login_account_success(ProfAccount *account, int secured); +void ui_handle_login_account_success(ProfAccount *account, gboolean secured); void ui_update_presence(const resource_presence_t resource_presence, const char *const message, const char *const show); void ui_write(char *line, int offset); void ui_invalid_command_usage(const char *const cmd, void (*setting_func)(void)); @@ -260,7 +260,7 @@ void cons_show_themes(GSList *themes); void cons_show_scripts(GSList *scripts); void cons_show_script(const char *const script, GSList *commands); void cons_show_aliases(GList *aliases); -void cons_show_login_success(ProfAccount *account, int secured); +void cons_show_login_success(ProfAccount *account, gboolean secured); void cons_show_software_version(const char *const jid, const char *const presence, const char *const name, const char *const version, const char *const os); void cons_show_account_list(gchar **accounts); |