mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Removed ui_titlebar_presence
This commit is contained in:
parent
1c3eadbf1c
commit
2ea0e1e938
@ -227,7 +227,7 @@ _check_autoaway(void)
|
||||
}
|
||||
prefs_free_string(message);
|
||||
|
||||
ui_titlebar_presence(CONTACT_AWAY);
|
||||
title_bar_set_presence(CONTACT_AWAY);
|
||||
}
|
||||
} else if (g_strcmp0(mode, "idle") == 0) {
|
||||
activity_state = ACTIVITY_ST_IDLE;
|
||||
@ -267,7 +267,7 @@ _check_autoaway(void)
|
||||
}
|
||||
prefs_free_string(message);
|
||||
|
||||
ui_titlebar_presence(CONTACT_XA);
|
||||
title_bar_set_presence(CONTACT_XA);
|
||||
} else if (check && (idle_ms < away_time_ms)) {
|
||||
activity_state = ACTIVITY_ST_ACTIVE;
|
||||
|
||||
@ -276,7 +276,7 @@ _check_autoaway(void)
|
||||
// send saved presence without last activity
|
||||
cl_ev_presence_send(saved_presence, saved_status, 0);
|
||||
contact_presence_t contact_pres = contact_presence_from_resource_presence(saved_presence);
|
||||
ui_titlebar_presence(contact_pres);
|
||||
title_bar_set_presence(contact_pres);
|
||||
}
|
||||
break;
|
||||
case ACTIVITY_ST_XA:
|
||||
@ -288,7 +288,7 @@ _check_autoaway(void)
|
||||
// send saved presence without last activity
|
||||
cl_ev_presence_send(saved_presence, saved_status, 0);
|
||||
contact_presence_t contact_pres = contact_presence_from_resource_presence(saved_presence);
|
||||
ui_titlebar_presence(contact_pres);
|
||||
title_bar_set_presence(contact_pres);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -394,12 +394,6 @@ ui_group_removed(const char *const contact, const char *const group)
|
||||
rosterwin_roster();
|
||||
}
|
||||
|
||||
void
|
||||
ui_titlebar_presence(contact_presence_t presence)
|
||||
{
|
||||
title_bar_set_presence(presence);
|
||||
}
|
||||
|
||||
void
|
||||
ui_handle_login_account_success(ProfAccount *account, int secured)
|
||||
{
|
||||
|
@ -39,7 +39,6 @@ void create_title_bar(void);
|
||||
void title_bar_update_virtual(void);
|
||||
void title_bar_resize(void);
|
||||
void title_bar_console(void);
|
||||
void title_bar_set_presence(contact_presence_t presence);
|
||||
void title_bar_set_connected(gboolean connected);
|
||||
void title_bar_set_tls(gboolean secured);
|
||||
void title_bar_switch(void);
|
||||
|
@ -132,7 +132,6 @@ void ui_prune_wins(void);
|
||||
gboolean ui_swap_wins(int source_win, int target_win);
|
||||
void ui_clear_win(ProfWin *window);
|
||||
void ui_auto_away(char *message, gint time, resource_presence_t res_presence);
|
||||
void ui_titlebar_presence(contact_presence_t presence);
|
||||
void ui_handle_login_account_success(ProfAccount *account, int secured);
|
||||
void ui_update_presence(const resource_presence_t resource_presence, const char *const message, const char *const show);
|
||||
void ui_statusbar_new(const int win);
|
||||
@ -300,6 +299,9 @@ void cons_show_contact_online(PContact contact, Resource *resource, GDateTime *l
|
||||
void cons_show_contact_offline(PContact contact, char *resource, char *status);
|
||||
void cons_theme_colours(void);
|
||||
|
||||
// title bar
|
||||
void title_bar_set_presence(contact_presence_t presence);
|
||||
|
||||
// status bar
|
||||
void status_bar_inactive(const int win);
|
||||
void status_bar_active(const int win);
|
||||
|
@ -294,7 +294,6 @@ gboolean ui_swap_wins(int source_win, int target_win)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void ui_titlebar_presence(contact_presence_t presence) {}
|
||||
void ui_handle_login_account_success(ProfAccount *account, int secured) {}
|
||||
void ui_update_presence(const resource_presence_t resource_presence,
|
||||
const char * const message, const char * const show) {}
|
||||
@ -465,6 +464,9 @@ void cons_show_contact_online(PContact contact, Resource *resource, GDateTime *l
|
||||
void cons_show_contact_offline(PContact contact, char *resource, char *status) {}
|
||||
void cons_theme_colours(void) {}
|
||||
|
||||
// title bar
|
||||
void title_bar_set_presence(contact_presence_t presence) {}
|
||||
|
||||
// status bar
|
||||
void status_bar_inactive(const int win) {}
|
||||
void status_bar_active(const int win) {}
|
||||
|
Loading…
Reference in New Issue
Block a user