From 25020df0f0905c0f8b469765fd75fa366161a29c Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 1 Nov 2015 21:33:16 +0000 Subject: [PATCH] Renamed ui_room_subject -> mucwin_subject --- src/event/server_events.c | 4 ++-- src/ui/mucwin.c | 2 +- src/ui/ui.h | 2 +- tests/unittests/ui/stub_ui.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/event/server_events.c b/src/event/server_events.c index 09fb7642..dc28867e 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -147,7 +147,7 @@ sv_ev_room_subject(const char *const room, const char *const nick, const char *c { muc_set_subject(room, subject); if (muc_roster_complete(room)) { - ui_room_subject(room, nick, subject); + mucwin_subject(room, nick, subject); } } @@ -565,7 +565,7 @@ sv_ev_muc_self_online(const char *const room, const char *const nick, gboolean c char *subject = muc_subject(room); if (subject) { - ui_room_subject(room, NULL, subject); + mucwin_subject(room, NULL, subject); } GList *pending_broadcasts = muc_pending_broadcasts(room); diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c index 29604189..b2de4825 100644 --- a/src/ui/mucwin.c +++ b/src/ui/mucwin.c @@ -481,7 +481,7 @@ mucwin_requires_config(const char *const roomjid) } void -ui_room_subject(const char *const roomjid, const char *const nick, const char *const subject) +mucwin_subject(const char *const roomjid, const char *const nick, const char *const subject) { ProfWin *window = (ProfWin*)wins_get_muc(roomjid); if (window == NULL) { diff --git a/src/ui/ui.h b/src/ui/ui.h index 0649e361..6699444c 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -108,7 +108,7 @@ void mucwin_roster(const char *const roomjid, GList *occupants, const char *cons void mucwin_history(const char *const roomjid, const char *const nick, GDateTime *timestamp, const char *const message); void mucwin_message(const char *const roomjid, const char *const nick, const char *const message); -void ui_room_subject(const char *const roomjid, const char *const nick, const char *const subject); +void mucwin_subject(const char *const roomjid, const char *const nick, const char *const subject); void mucwin_requires_config(const char *const roomjid); void ui_room_destroy(const char *const roomjid); void ui_show_room_info(ProfMucWin *mucwin); diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c index 3ea1ff93..68028c3a 100644 --- a/tests/unittests/ui/stub_ui.c +++ b/tests/unittests/ui/stub_ui.c @@ -208,7 +208,7 @@ void mucwin_history(const char * const roomjid, const char * const nick, GDateTime *timestamp, const char * const message) {} void mucwin_message(const char * const roomjid, const char * const nick, const char * const message) {} -void ui_room_subject(const char * const roomjid, const char * const nick, const char * const subject) {} +void mucwin_subject(const char * const roomjid, const char * const nick, const char * const subject) {} void mucwin_requires_config(const char * const roomjid) {} void ui_room_destroy(const char * const roomjid) {} void ui_show_room_info(ProfMucWin *mucwin) {}