mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05:00
Merge branch 'master' into pgp
This commit is contained in:
commit
a3a4b6267b
@ -82,7 +82,6 @@ tests_sources = \
|
|||||||
tests/test_cmd_roster.c tests/test_cmd_roster.h \
|
tests/test_cmd_roster.c tests/test_cmd_roster.h \
|
||||||
tests/test_cmd_statuses.c tests/test_cmd_statuses.h \
|
tests/test_cmd_statuses.c tests/test_cmd_statuses.h \
|
||||||
tests/test_cmd_sub.c tests/test_cmd_sub.h \
|
tests/test_cmd_sub.c tests/test_cmd_sub.h \
|
||||||
tests/test_cmd_win.c tests/test_cmd_win.h \
|
|
||||||
tests/test_cmd_disconnect.c tests/test_cmd_disconnect.h \
|
tests/test_cmd_disconnect.c tests/test_cmd_disconnect.h \
|
||||||
tests/test_common.c tests/test_common.h \
|
tests/test_common.c tests/test_common.h \
|
||||||
tests/test_contact.c tests/test_contact.h \
|
tests/test_contact.c tests/test_contact.h \
|
||||||
|
@ -733,10 +733,16 @@ gboolean
|
|||||||
cmd_win(gchar **args, struct cmd_help_t help)
|
cmd_win(gchar **args, struct cmd_help_t help)
|
||||||
{
|
{
|
||||||
int num = atoi(args[0]);
|
int num = atoi(args[0]);
|
||||||
gboolean switched = ui_switch_win_num(num);
|
|
||||||
if (switched == FALSE) {
|
ProfWin *window = wins_get_by_num(num);
|
||||||
|
if (!window) {
|
||||||
cons_show("Window %d does not exist.", num);
|
cons_show("Window %d does not exist.", num);
|
||||||
|
} else {
|
||||||
|
if (!wins_is_current(window)) {
|
||||||
|
ui_ev_focus_win(window);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2464,12 +2470,11 @@ cmd_form(gchar **args, struct cmd_help_t help)
|
|||||||
cmd_autocomplete_remove_form_fields(confwin->form);
|
cmd_autocomplete_remove_form_fields(confwin->form);
|
||||||
}
|
}
|
||||||
wins_close_current();
|
wins_close_current();
|
||||||
ProfWin *current = (ProfWin*)wins_get_muc(confwin->roomjid);
|
ProfWin *new_current = (ProfWin*)wins_get_muc(confwin->roomjid);
|
||||||
if (current == NULL) {
|
if (!new_current) {
|
||||||
current = wins_get_console();
|
new_current = wins_get_console();
|
||||||
}
|
}
|
||||||
int num = wins_get_num(current);
|
ui_ev_focus_win(new_current);
|
||||||
ui_switch_win_num(num);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@ -2775,9 +2780,8 @@ cmd_room(gchar **args, struct cmd_help_t help)
|
|||||||
if (g_strcmp0(args[0], "config") == 0) {
|
if (g_strcmp0(args[0], "config") == 0) {
|
||||||
ProfMucConfWin *confwin = wins_get_muc_conf(mucwin->roomjid);
|
ProfMucConfWin *confwin = wins_get_muc_conf(mucwin->roomjid);
|
||||||
|
|
||||||
if (confwin != NULL) {
|
if (confwin) {
|
||||||
num = wins_get_num(window);
|
ui_ev_focus_win((ProfWin*)confwin);
|
||||||
ui_switch_win_num(num);
|
|
||||||
} else {
|
} else {
|
||||||
iq_request_room_config_form(mucwin->roomjid);
|
iq_request_room_config_form(mucwin->roomjid);
|
||||||
}
|
}
|
||||||
|
@ -865,46 +865,33 @@ ui_win_has_unsaved_form(int num)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
void
|
||||||
ui_switch_win(ProfWin *win)
|
ui_switch_win(ProfWin *window)
|
||||||
{
|
{
|
||||||
int num = wins_get_num(win);
|
assert(window != NULL);
|
||||||
return ui_switch_win_num(num);
|
|
||||||
}
|
|
||||||
|
|
||||||
gboolean
|
|
||||||
ui_switch_win_num(const int i)
|
|
||||||
{
|
|
||||||
ProfWin *window = wins_get_by_num(i);
|
|
||||||
if (window) {
|
|
||||||
ProfWin *old_current = wins_get_current();
|
ProfWin *old_current = wins_get_current();
|
||||||
if (old_current->type == WIN_MUC_CONFIG) {
|
if (old_current->type == WIN_MUC_CONFIG) {
|
||||||
ProfMucConfWin *confwin = (ProfMucConfWin*)old_current;
|
ProfMucConfWin *confwin = (ProfMucConfWin*)old_current;
|
||||||
cmd_autocomplete_remove_form_fields(confwin->form);
|
cmd_autocomplete_remove_form_fields(confwin->form);
|
||||||
}
|
}
|
||||||
|
|
||||||
ProfWin *new_current = wins_get_by_num(i);
|
if (window->type == WIN_MUC_CONFIG) {
|
||||||
if (new_current->type == WIN_MUC_CONFIG) {
|
ProfMucConfWin *confwin = (ProfMucConfWin*)window;
|
||||||
ProfMucConfWin *confwin = (ProfMucConfWin*)new_current;
|
|
||||||
cmd_autocomplete_add_form_fields(confwin->form);
|
cmd_autocomplete_add_form_fields(confwin->form);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int i = wins_get_num(window);
|
||||||
wins_set_current_by_num(i);
|
wins_set_current_by_num(i);
|
||||||
|
|
||||||
if (i == 1) {
|
if (i == 1) {
|
||||||
title_bar_console();
|
title_bar_console();
|
||||||
status_bar_current(1);
|
|
||||||
status_bar_active(1);
|
|
||||||
} else {
|
} else {
|
||||||
title_bar_switch();
|
title_bar_switch();
|
||||||
|
}
|
||||||
status_bar_current(i);
|
status_bar_current(i);
|
||||||
status_bar_active(i);
|
status_bar_active(i);
|
||||||
}
|
}
|
||||||
return TRUE;
|
|
||||||
} else {
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ui_previous_win(void)
|
ui_previous_win(void)
|
||||||
@ -1358,34 +1345,25 @@ void
|
|||||||
ui_new_private_win(const char * const fulljid)
|
ui_new_private_win(const char * const fulljid)
|
||||||
{
|
{
|
||||||
ProfWin *window = (ProfWin*)wins_get_private(fulljid);
|
ProfWin *window = (ProfWin*)wins_get_private(fulljid);
|
||||||
int num = 0;
|
if (!window) {
|
||||||
|
|
||||||
// create new window
|
|
||||||
if (window == NULL) {
|
|
||||||
window = wins_new_private(fulljid);
|
window = wins_new_private(fulljid);
|
||||||
num = wins_get_num(window);
|
|
||||||
} else {
|
|
||||||
num = wins_get_num(window);
|
|
||||||
}
|
}
|
||||||
|
ui_switch_win(window);
|
||||||
ui_switch_win_num(num);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ui_create_xmlconsole_win(void)
|
ui_create_xmlconsole_win(void)
|
||||||
{
|
{
|
||||||
ProfWin *window = wins_new_xmlconsole();
|
ProfWin *window = wins_new_xmlconsole();
|
||||||
int num = wins_get_num(window);
|
ui_switch_win(window);
|
||||||
ui_switch_win_num(num);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ui_open_xmlconsole_win(void)
|
ui_open_xmlconsole_win(void)
|
||||||
{
|
{
|
||||||
ProfXMLWin *xmlwin = wins_get_xmlconsole();
|
ProfXMLWin *xmlwin = wins_get_xmlconsole();
|
||||||
if (xmlwin != NULL) {
|
if (xmlwin) {
|
||||||
int num = wins_get_num((ProfWin*)xmlwin);
|
ui_switch_win((ProfWin*)xmlwin);
|
||||||
ui_switch_win_num(num);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1452,30 +1430,19 @@ void
|
|||||||
ui_outgoing_private_msg(const char * const fulljid, const char * const message)
|
ui_outgoing_private_msg(const char * const fulljid, const char * const message)
|
||||||
{
|
{
|
||||||
ProfWin *window = (ProfWin*)wins_get_private(fulljid);
|
ProfWin *window = (ProfWin*)wins_get_private(fulljid);
|
||||||
int num = 0;
|
if (!window) {
|
||||||
|
|
||||||
// create new window
|
|
||||||
if (window == NULL) {
|
|
||||||
window = wins_new_private(fulljid);
|
window = wins_new_private(fulljid);
|
||||||
num = wins_get_num(window);
|
|
||||||
|
|
||||||
// use existing window
|
|
||||||
} else {
|
|
||||||
num = wins_get_num(window);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
win_print(window, '-', NULL, 0, THEME_TEXT_ME, "me", message);
|
win_print(window, '-', NULL, 0, THEME_TEXT_ME, "me", message);
|
||||||
ui_switch_win_num(num);
|
ui_switch_win(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ui_room_join(const char * const roomjid, gboolean focus)
|
ui_room_join(const char * const roomjid, gboolean focus)
|
||||||
{
|
{
|
||||||
ProfWin *window = (ProfWin*)wins_get_muc(roomjid);
|
ProfWin *window = (ProfWin*)wins_get_muc(roomjid);
|
||||||
int num = 0;
|
if (!window) {
|
||||||
|
|
||||||
// create new window
|
|
||||||
if (window == NULL) {
|
|
||||||
window = wins_new_muc(roomjid);
|
window = wins_new_muc(roomjid);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1493,11 +1460,11 @@ ui_room_join(const char * const roomjid, gboolean focus)
|
|||||||
}
|
}
|
||||||
win_print(window, '!', NULL, NO_DATE, THEME_ROOMINFO, "", "");
|
win_print(window, '!', NULL, NO_DATE, THEME_ROOMINFO, "", "");
|
||||||
|
|
||||||
num = wins_get_num(window);
|
|
||||||
|
|
||||||
if (focus) {
|
if (focus) {
|
||||||
ui_switch_win_num(num);
|
ui_switch_win(window);
|
||||||
} else {
|
} else {
|
||||||
|
int num = wins_get_num(window);
|
||||||
status_bar_active(num);
|
status_bar_active(num);
|
||||||
ProfWin *console = wins_get_console();
|
ProfWin *console = wins_get_console();
|
||||||
char *nick = muc_nick(roomjid);
|
char *nick = muc_nick(roomjid);
|
||||||
@ -1509,8 +1476,7 @@ void
|
|||||||
ui_switch_to_room(const char * const roomjid)
|
ui_switch_to_room(const char * const roomjid)
|
||||||
{
|
{
|
||||||
ProfWin *window = (ProfWin*)wins_get_muc(roomjid);
|
ProfWin *window = (ProfWin*)wins_get_muc(roomjid);
|
||||||
int num = wins_get_num(window);
|
ui_switch_win(window);
|
||||||
ui_switch_win_num(num);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -2682,9 +2648,7 @@ ui_handle_room_configuration(const char * const roomjid, DataForm *form)
|
|||||||
ProfMucConfWin *confwin = (ProfMucConfWin*)window;
|
ProfMucConfWin *confwin = (ProfMucConfWin*)window;
|
||||||
assert(confwin->memcheck == PROFCONFWIN_MEMCHECK);
|
assert(confwin->memcheck == PROFCONFWIN_MEMCHECK);
|
||||||
|
|
||||||
int num = wins_get_num(window);
|
ui_switch_win(window);
|
||||||
ui_switch_win_num(num);
|
|
||||||
|
|
||||||
ui_show_form(confwin);
|
ui_show_form(confwin);
|
||||||
|
|
||||||
win_print(window, '-', NULL, 0, 0, "", "");
|
win_print(window, '-', NULL, 0, 0, "", "");
|
||||||
@ -2739,11 +2703,11 @@ ui_handle_room_config_submit_result(const char * const roomjid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (muc_window) {
|
if (muc_window) {
|
||||||
int num = wins_get_num(muc_window);
|
ui_switch_win((ProfWin*)muc_window);
|
||||||
ui_switch_win_num(num);
|
|
||||||
win_print(muc_window, '!', NULL, 0, THEME_ROOMINFO, "", "Room configuration successful");
|
win_print(muc_window, '!', NULL, 0, THEME_ROOMINFO, "", "Room configuration successful");
|
||||||
} else {
|
} else {
|
||||||
ui_switch_win_num(1);
|
ProfWin *console = wins_get_console();
|
||||||
|
ui_switch_win(console);
|
||||||
cons_show("Room configuration successful: %s", roomjid);
|
cons_show("Room configuration successful: %s", roomjid);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -63,6 +63,7 @@
|
|||||||
#include "ui/statusbar.h"
|
#include "ui/statusbar.h"
|
||||||
#include "ui/inputwin.h"
|
#include "ui/inputwin.h"
|
||||||
#include "ui/windows.h"
|
#include "ui/windows.h"
|
||||||
|
#include "event/ui_events.h"
|
||||||
#include "xmpp/xmpp.h"
|
#include "xmpp/xmpp.h"
|
||||||
|
|
||||||
static WINDOW *inp_win;
|
static WINDOW *inp_win;
|
||||||
@ -449,73 +450,84 @@ _inp_rl_tab_handler(int count, int key)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
_go_to_win(int i)
|
||||||
|
{
|
||||||
|
ProfWin *window = wins_get_by_num(i);
|
||||||
|
if (window) {
|
||||||
|
if (!wins_is_current(window)) {
|
||||||
|
ui_ev_focus_win(window);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_inp_rl_win1_handler(int count, int key)
|
_inp_rl_win1_handler(int count, int key)
|
||||||
{
|
{
|
||||||
ui_switch_win_num(1);
|
_go_to_win(1);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_inp_rl_win2_handler(int count, int key)
|
_inp_rl_win2_handler(int count, int key)
|
||||||
{
|
{
|
||||||
ui_switch_win_num(2);
|
_go_to_win(2);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_inp_rl_win3_handler(int count, int key)
|
_inp_rl_win3_handler(int count, int key)
|
||||||
{
|
{
|
||||||
ui_switch_win_num(3);
|
_go_to_win(3);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_inp_rl_win4_handler(int count, int key)
|
_inp_rl_win4_handler(int count, int key)
|
||||||
{
|
{
|
||||||
ui_switch_win_num(4);
|
_go_to_win(4);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_inp_rl_win5_handler(int count, int key)
|
_inp_rl_win5_handler(int count, int key)
|
||||||
{
|
{
|
||||||
ui_switch_win_num(5);
|
_go_to_win(5);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_inp_rl_win6_handler(int count, int key)
|
_inp_rl_win6_handler(int count, int key)
|
||||||
{
|
{
|
||||||
ui_switch_win_num(6);
|
_go_to_win(6);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_inp_rl_win7_handler(int count, int key)
|
_inp_rl_win7_handler(int count, int key)
|
||||||
{
|
{
|
||||||
ui_switch_win_num(7);
|
_go_to_win(7);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_inp_rl_win8_handler(int count, int key)
|
_inp_rl_win8_handler(int count, int key)
|
||||||
{
|
{
|
||||||
ui_switch_win_num(8);
|
_go_to_win(8);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_inp_rl_win9_handler(int count, int key)
|
_inp_rl_win9_handler(int count, int key)
|
||||||
{
|
{
|
||||||
ui_switch_win_num(9);
|
_go_to_win(9);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_inp_rl_win0_handler(int count, int key)
|
_inp_rl_win0_handler(int count, int key)
|
||||||
{
|
{
|
||||||
ui_switch_win_num(0);
|
_go_to_win(0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,8 +59,7 @@ void ui_close(void);
|
|||||||
void ui_redraw(void);
|
void ui_redraw(void);
|
||||||
void ui_resize(void);
|
void ui_resize(void);
|
||||||
GSList* ui_get_chat_recipients(void);
|
GSList* ui_get_chat_recipients(void);
|
||||||
gboolean ui_switch_win_num(const int i);
|
void ui_switch_win(ProfWin *window);
|
||||||
gboolean ui_switch_win(ProfWin *win);
|
|
||||||
void ui_next_win(void);
|
void ui_next_win(void);
|
||||||
void ui_previous_win(void);
|
void ui_previous_win(void);
|
||||||
void ui_sigwinch_handler(int sig);
|
void ui_sigwinch_handler(int sig);
|
||||||
|
@ -644,6 +644,7 @@ gboolean
|
|||||||
wins_swap(int source_win, int target_win)
|
wins_swap(int source_win, int target_win)
|
||||||
{
|
{
|
||||||
ProfWin *source = g_hash_table_lookup(windows, GINT_TO_POINTER(source_win));
|
ProfWin *source = g_hash_table_lookup(windows, GINT_TO_POINTER(source_win));
|
||||||
|
ProfWin *console = wins_get_console();
|
||||||
|
|
||||||
if (source) {
|
if (source) {
|
||||||
ProfWin *target = g_hash_table_lookup(windows, GINT_TO_POINTER(target_win));
|
ProfWin *target = g_hash_table_lookup(windows, GINT_TO_POINTER(target_win));
|
||||||
@ -660,7 +661,7 @@ wins_swap(int source_win, int target_win)
|
|||||||
}
|
}
|
||||||
if (wins_get_current_num() == source_win) {
|
if (wins_get_current_num() == source_win) {
|
||||||
wins_set_current_by_num(target_win);
|
wins_set_current_by_num(target_win);
|
||||||
ui_switch_win_num(1);
|
ui_switch_win(console);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
@ -681,7 +682,7 @@ wins_swap(int source_win, int target_win)
|
|||||||
status_bar_active(source_win);
|
status_bar_active(source_win);
|
||||||
}
|
}
|
||||||
if ((wins_get_current_num() == source_win) || (wins_get_current_num() == target_win)) {
|
if ((wins_get_current_num() == source_win) || (wins_get_current_num() == target_win)) {
|
||||||
ui_switch_win_num(1);
|
ui_switch_win(console);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
@ -740,7 +741,8 @@ wins_tidy(void)
|
|||||||
|
|
||||||
windows = new_windows;
|
windows = new_windows;
|
||||||
current = 1;
|
current = 1;
|
||||||
ui_switch_win_num(1);
|
ProfWin *console = wins_get_console();
|
||||||
|
ui_switch_win(console);
|
||||||
g_list_free(keys);
|
g_list_free(keys);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,41 +0,0 @@
|
|||||||
#include <stdarg.h>
|
|
||||||
#include <stddef.h>
|
|
||||||
#include <setjmp.h>
|
|
||||||
#include <cmocka.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <glib.h>
|
|
||||||
|
|
||||||
#include "ui/ui.h"
|
|
||||||
#include "ui/stub_ui.h"
|
|
||||||
|
|
||||||
#include "command/commands.h"
|
|
||||||
|
|
||||||
void cmd_win_shows_message_when_win_doesnt_exist(void **state)
|
|
||||||
{
|
|
||||||
CommandHelp *help = malloc(sizeof(CommandHelp));
|
|
||||||
gchar *args[] = { "3", NULL };
|
|
||||||
|
|
||||||
expect_value(ui_switch_win_num, i, 3);
|
|
||||||
will_return(ui_switch_win_num, FALSE);
|
|
||||||
|
|
||||||
expect_cons_show("Window 3 does not exist.");
|
|
||||||
|
|
||||||
gboolean result = cmd_win(args, *help);
|
|
||||||
assert_true(result);
|
|
||||||
|
|
||||||
free(help);
|
|
||||||
}
|
|
||||||
|
|
||||||
void cmd_win_switches_to_given_win_when_exists(void **state)
|
|
||||||
{
|
|
||||||
CommandHelp *help = malloc(sizeof(CommandHelp));
|
|
||||||
gchar *args[] = { "12", NULL };
|
|
||||||
|
|
||||||
expect_value(ui_switch_win_num, i, 12);
|
|
||||||
will_return(ui_switch_win_num, TRUE);
|
|
||||||
|
|
||||||
gboolean result = cmd_win(args, *help);
|
|
||||||
assert_true(result);
|
|
||||||
|
|
||||||
free(help);
|
|
||||||
}
|
|
@ -1,2 +0,0 @@
|
|||||||
void cmd_win_shows_message_when_win_doesnt_exist(void **state);
|
|
||||||
void cmd_win_switches_to_given_win_when_exists(void **state);
|
|
@ -31,7 +31,6 @@
|
|||||||
#include "test_cmd_join.h"
|
#include "test_cmd_join.h"
|
||||||
#include "test_muc.h"
|
#include "test_muc.h"
|
||||||
#include "test_cmd_roster.h"
|
#include "test_cmd_roster.h"
|
||||||
#include "test_cmd_win.h"
|
|
||||||
#include "test_cmd_disconnect.h"
|
#include "test_cmd_disconnect.h"
|
||||||
#include "test_form.h"
|
#include "test_form.h"
|
||||||
|
|
||||||
@ -586,9 +585,6 @@ int main(int argc, char* argv[]) {
|
|||||||
unit_test(cmd_roster_clearnick_shows_message_when_no_contact_exists),
|
unit_test(cmd_roster_clearnick_shows_message_when_no_contact_exists),
|
||||||
unit_test(cmd_roster_clearnick_sends_name_change_request_with_empty_nick),
|
unit_test(cmd_roster_clearnick_sends_name_change_request_with_empty_nick),
|
||||||
|
|
||||||
unit_test(cmd_win_shows_message_when_win_doesnt_exist),
|
|
||||||
unit_test(cmd_win_switches_to_given_win_when_exists),
|
|
||||||
|
|
||||||
unit_test(get_form_type_field_returns_null_no_fields),
|
unit_test(get_form_type_field_returns_null_no_fields),
|
||||||
unit_test(get_form_type_field_returns_null_when_not_present),
|
unit_test(get_form_type_field_returns_null_when_not_present),
|
||||||
unit_test(get_form_type_field_returns_value_when_present),
|
unit_test(get_form_type_field_returns_value_when_present),
|
||||||
|
@ -64,17 +64,7 @@ GSList* ui_get_chat_recipients(void)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean ui_switch_win(ProfWin *win)
|
void ui_switch_win(ProfWin *win) {}
|
||||||
{
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
gboolean ui_switch_win_num(const int i)
|
|
||||||
{
|
|
||||||
check_expected(i);
|
|
||||||
return (gboolean)mock();
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ui_next_win(void) {}
|
void ui_next_win(void) {}
|
||||||
void ui_previous_win(void) {}
|
void ui_previous_win(void) {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user