mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Removed ui_events module
This commit is contained in:
parent
61bcb59ee9
commit
0fd616167e
@ -15,7 +15,6 @@ core_sources = \
|
||||
src/xmpp/form.c src/xmpp/form.h \
|
||||
src/event/server_events.c src/event/server_events.h \
|
||||
src/event/client_events.c src/event/client_events.h \
|
||||
src/event/ui_events.c src/event/ui_events.h \
|
||||
src/ui/ui.h src/ui/window.c src/ui/window.h src/ui/core.c \
|
||||
src/ui/titlebar.c src/ui/statusbar.c src/ui/inputwin.c \
|
||||
src/ui/titlebar.h src/ui/statusbar.h src/ui/inputwin.h \
|
||||
@ -67,7 +66,6 @@ unittest_sources = \
|
||||
src/window_list.c src/window_list.h \
|
||||
src/event/server_events.c src/event/server_events.h \
|
||||
src/event/client_events.c src/event/client_events.h \
|
||||
src/event/ui_events.c src/event/ui_events.h \
|
||||
tests/unittests/xmpp/stub_xmpp.c \
|
||||
tests/unittests/ui/stub_ui.c \
|
||||
tests/unittests/log/stub_log.c \
|
||||
|
@ -70,7 +70,6 @@
|
||||
#include "ui/ui.h"
|
||||
#include "window_list.h"
|
||||
#include "event/client_events.h"
|
||||
#include "event/ui_events.h"
|
||||
|
||||
static void _update_presence(const resource_presence_t presence,
|
||||
const char *const show, gchar **args);
|
||||
@ -1498,7 +1497,7 @@ cmd_msg(ProfWin *window, const char *const command, gchar **args)
|
||||
|
||||
ProfPrivateWin *privwin = wins_get_private(full_jid->str);
|
||||
if (!privwin) {
|
||||
privwin = ui_ev_new_private_win(full_jid->str);
|
||||
privwin = ui_new_private_win(full_jid->str);
|
||||
}
|
||||
ui_switch_win((ProfWin*)privwin);
|
||||
|
||||
|
@ -1,42 +0,0 @@
|
||||
/*
|
||||
* ui_events.c
|
||||
*
|
||||
* Copyright (C) 2012 - 2015 James Booth <boothj5@gmail.com>
|
||||
*
|
||||
* This file is part of Profanity.
|
||||
*
|
||||
* Profanity is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Profanity is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Profanity. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* In addition, as a special exception, the copyright holders give permission to
|
||||
* link the code of portions of this program with the OpenSSL library under
|
||||
* certain conditions as described in each individual source file, and
|
||||
* distribute linked combinations including the two.
|
||||
*
|
||||
* You must obey the GNU General Public License in all respects for all of the
|
||||
* code used other than OpenSSL. If you modify file(s) with this exception, you
|
||||
* may extend this exception to your version of the file(s), but you are not
|
||||
* obligated to do so. If you do not wish to do so, delete this exception
|
||||
* statement from your version. If you delete this exception statement from all
|
||||
* source files in the program, then also delete it here.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "ui/ui.h"
|
||||
#include "window_list.h"
|
||||
|
||||
ProfPrivateWin*
|
||||
ui_ev_new_private_win(const char *const fulljid)
|
||||
{
|
||||
return ui_new_private_win(fulljid);
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
/*
|
||||
* ui_events.h
|
||||
*
|
||||
* Copyright (C) 2012 - 2015 James Booth <boothj5@gmail.com>
|
||||
*
|
||||
* This file is part of Profanity.
|
||||
*
|
||||
* Profanity is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Profanity is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Profanity. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* In addition, as a special exception, the copyright holders give permission to
|
||||
* link the code of portions of this program with the OpenSSL library under
|
||||
* certain conditions as described in each individual source file, and
|
||||
* distribute linked combinations including the two.
|
||||
*
|
||||
* You must obey the GNU General Public License in all respects for all of the
|
||||
* code used other than OpenSSL. If you modify file(s) with this exception, you
|
||||
* may extend this exception to your version of the file(s), but you are not
|
||||
* obligated to do so. If you do not wish to do so, delete this exception
|
||||
* statement from your version. If you delete this exception statement from all
|
||||
* source files in the program, then also delete it here.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef UI_EVENTS_H
|
||||
#define UI_EVENTS_H
|
||||
|
||||
ProfPrivateWin* ui_ev_new_private_win(const char *const fulljid);
|
||||
|
||||
#endif
|
@ -74,7 +74,6 @@
|
||||
#include "ui/window.h"
|
||||
#include "window_list.h"
|
||||
#include "xmpp/xmpp.h"
|
||||
#include "event/ui_events.h"
|
||||
|
||||
static char *win_title;
|
||||
|
||||
|
@ -64,7 +64,6 @@
|
||||
#include "ui/inputwin.h"
|
||||
#include "ui/window.h"
|
||||
#include "window_list.h"
|
||||
#include "event/ui_events.h"
|
||||
#include "xmpp/xmpp.h"
|
||||
|
||||
static WINDOW *inp_win;
|
||||
|
@ -46,7 +46,6 @@
|
||||
#include "ui/ui.h"
|
||||
#include "ui/statusbar.h"
|
||||
#include "window_list.h"
|
||||
#include "event/ui_events.h"
|
||||
|
||||
static GHashTable *windows;
|
||||
static int current;
|
||||
|
Loading…
Reference in New Issue
Block a user