mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 22:36:22 +00:00
Added focus param to ui_room_join, not set for bookmark autojoin
Issue #194
This commit is contained in:
@@ -1663,7 +1663,7 @@ cmd_join(gchar **args, struct cmd_help_t help)
|
||||
if (!muc_room_is_active(room)) {
|
||||
presence_join_room(room, nick, passwd);
|
||||
}
|
||||
ui_room_join(room);
|
||||
ui_room_join(room, TRUE);
|
||||
muc_remove_invite(room);
|
||||
|
||||
jid_destroy(room_arg);
|
||||
|
||||
@@ -502,5 +502,6 @@ handle_autoping_cancel(void)
|
||||
void
|
||||
handle_bookmark_autojoin(char *jid)
|
||||
{
|
||||
ui_room_join(jid);
|
||||
ui_room_join(jid, FALSE);
|
||||
muc_remove_invite(jid);
|
||||
}
|
||||
|
||||
@@ -1219,7 +1219,7 @@ _ui_outgoing_msg(const char * const from, const char * const to,
|
||||
}
|
||||
|
||||
static void
|
||||
_ui_room_join(char *room)
|
||||
_ui_room_join(char *room, gboolean focus)
|
||||
{
|
||||
ProfWin *window = wins_get_by_recipient(room);
|
||||
int num = 0;
|
||||
@@ -1230,7 +1230,12 @@ _ui_room_join(char *room)
|
||||
}
|
||||
|
||||
num = wins_get_num(window);
|
||||
ui_switch_win(num);
|
||||
|
||||
if (focus) {
|
||||
ui_switch_win(num);
|
||||
} else {
|
||||
status_bar_active(num);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@@ -100,7 +100,7 @@ void (*ui_disconnected)(void);
|
||||
void (*ui_recipient_gone)(const char * const barejid);
|
||||
void (*ui_outgoing_msg)(const char * const from, const char * const to,
|
||||
const char * const message);
|
||||
void (*ui_room_join)(char *room);
|
||||
void (*ui_room_join)(char *room, gboolean focus);
|
||||
void (*ui_room_roster)(const char * const room, GList *roster, const char * const presence);
|
||||
void (*ui_room_history)(const char * const room_jid, const char * const nick,
|
||||
GTimeVal tv_stamp, const char * const message);
|
||||
|
||||
Reference in New Issue
Block a user