mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Tidied ui dependencies
This commit is contained in:
parent
ccfea12674
commit
aa2a87d162
@ -46,9 +46,9 @@
|
|||||||
#include "tools/autocomplete.h"
|
#include "tools/autocomplete.h"
|
||||||
#include "tools/parser.h"
|
#include "tools/parser.h"
|
||||||
#include "tools/tinyurl.h"
|
#include "tools/tinyurl.h"
|
||||||
#include "ui/ui.h"
|
|
||||||
#include "xmpp/xmpp.h"
|
#include "xmpp/xmpp.h"
|
||||||
#include "xmpp/bookmark.h"
|
#include "xmpp/bookmark.h"
|
||||||
|
#include "ui/ui.h"
|
||||||
|
|
||||||
typedef char*(*autocompleter)(char*, int*);
|
typedef char*(*autocompleter)(char*, int*);
|
||||||
|
|
||||||
|
@ -43,11 +43,9 @@
|
|||||||
#include "tools/autocomplete.h"
|
#include "tools/autocomplete.h"
|
||||||
#include "tools/parser.h"
|
#include "tools/parser.h"
|
||||||
#include "tools/tinyurl.h"
|
#include "tools/tinyurl.h"
|
||||||
#include "ui/ui.h"
|
|
||||||
#include "ui/window.h"
|
|
||||||
#include "ui/windows.h"
|
|
||||||
#include "xmpp/xmpp.h"
|
#include "xmpp/xmpp.h"
|
||||||
#include "xmpp/bookmark.h"
|
#include "xmpp/bookmark.h"
|
||||||
|
#include "ui/ui.h"
|
||||||
|
|
||||||
static void _update_presence(const resource_presence_t presence,
|
static void _update_presence(const resource_presence_t presence,
|
||||||
const char * const show, gchar **args);
|
const char * const show, gchar **args);
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
#include "otr/otr.h"
|
#include "otr/otr.h"
|
||||||
#endif
|
#endif
|
||||||
#include "xmpp/xmpp.h"
|
#include "xmpp/xmpp.h"
|
||||||
|
|
||||||
#include "ui/ui.h"
|
#include "ui/ui.h"
|
||||||
|
|
||||||
static gboolean disable_tls = FALSE;
|
static gboolean disable_tls = FALSE;
|
||||||
|
@ -29,8 +29,6 @@
|
|||||||
#include "jid.h"
|
#include "jid.h"
|
||||||
#include "tools/autocomplete.h"
|
#include "tools/autocomplete.h"
|
||||||
|
|
||||||
#include "ui/ui.h"
|
|
||||||
|
|
||||||
typedef struct _muc_room_t {
|
typedef struct _muc_room_t {
|
||||||
char *room; // e.g. test@conference.server
|
char *room; // e.g. test@conference.server
|
||||||
char *nick; // e.g. Some User
|
char *nick; // e.g. Some User
|
||||||
|
@ -24,8 +24,6 @@
|
|||||||
#include <libotr/privkey.h>
|
#include <libotr/privkey.h>
|
||||||
#include <libotr/message.h>
|
#include <libotr/message.h>
|
||||||
|
|
||||||
#include "ui/ui.h"
|
|
||||||
|
|
||||||
OtrlPolicy
|
OtrlPolicy
|
||||||
otrlib_policy(void)
|
otrlib_policy(void)
|
||||||
{
|
{
|
||||||
|
@ -47,8 +47,8 @@
|
|||||||
#include "otr/otr.h"
|
#include "otr/otr.h"
|
||||||
#endif
|
#endif
|
||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
#include "ui/ui.h"
|
|
||||||
#include "xmpp/xmpp.h"
|
#include "xmpp/xmpp.h"
|
||||||
|
#include "ui/ui.h"
|
||||||
|
|
||||||
static void _handle_idle_time(void);
|
static void _handle_idle_time(void);
|
||||||
static void _init(const int disable_tls, char *log_level);
|
static void _init(const int disable_tls, char *log_level);
|
||||||
|
@ -29,14 +29,13 @@
|
|||||||
#include "config/preferences.h"
|
#include "config/preferences.h"
|
||||||
#include "config/account.h"
|
#include "config/account.h"
|
||||||
#include "roster_list.h"
|
#include "roster_list.h"
|
||||||
#include "ui/ui.h"
|
|
||||||
|
|
||||||
#include "ui/windows.h"
|
|
||||||
|
|
||||||
#ifdef HAVE_LIBOTR
|
#ifdef HAVE_LIBOTR
|
||||||
#include "otr/otr.h"
|
#include "otr/otr.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "ui/ui.h"
|
||||||
|
|
||||||
// handle presence stanza errors
|
// handle presence stanza errors
|
||||||
void
|
void
|
||||||
handle_presence_error(const char *from, const char * const type,
|
handle_presence_error(const char *from, const char * const type,
|
||||||
@ -503,3 +502,9 @@ handle_autoping_cancel(void)
|
|||||||
cons_show_error("Server ping not supported, autoping disabled.");
|
cons_show_error("Server ping not supported, autoping disabled.");
|
||||||
ui_current_page_off();
|
ui_current_page_off();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
handle_bookmark_autojoin(char *jid)
|
||||||
|
{
|
||||||
|
ui_room_join(jid);
|
||||||
|
}
|
||||||
|
@ -78,5 +78,6 @@ void handle_message_error(const char * const from, const char * const type,
|
|||||||
const char * const err_msg);
|
const char * const err_msg);
|
||||||
void handle_presence_error(const char *from, const char * const type,
|
void handle_presence_error(const char *from, const char * const type,
|
||||||
const char *err_msg);
|
const char *err_msg);
|
||||||
|
void handle_bookmark_autojoin(char *jid);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "muc.h"
|
#include "muc.h"
|
||||||
#include "ui/ui.h"
|
#include "server_events.h"
|
||||||
#include "xmpp/connection.h"
|
#include "xmpp/connection.h"
|
||||||
#include "xmpp/stanza.h"
|
#include "xmpp/stanza.h"
|
||||||
#include "xmpp/xmpp.h"
|
#include "xmpp/xmpp.h"
|
||||||
@ -324,7 +324,7 @@ _bookmark_handle_result(xmpp_conn_t * const conn,
|
|||||||
if (!muc_room_is_active(room_jid->barejid)) {
|
if (!muc_room_is_active(room_jid->barejid)) {
|
||||||
presence_join_room(jid, name, NULL);
|
presence_join_room(jid, name, NULL);
|
||||||
/* TODO: this should be removed after fixing #195 */
|
/* TODO: this should be removed after fixing #195 */
|
||||||
ui_room_join(jid);
|
handle_bookmark_autojoin(jid);
|
||||||
}
|
}
|
||||||
jid_destroy(room_jid);
|
jid_destroy(room_jid);
|
||||||
} else {
|
} else {
|
||||||
|
@ -37,7 +37,6 @@
|
|||||||
#include "roster_list.h"
|
#include "roster_list.h"
|
||||||
#include "xmpp/stanza.h"
|
#include "xmpp/stanza.h"
|
||||||
#include "xmpp/xmpp.h"
|
#include "xmpp/xmpp.h"
|
||||||
#include "ui/ui.h"
|
|
||||||
|
|
||||||
#define HANDLE(ns, type, func) xmpp_handler_add(conn, func, ns, STANZA_NAME_MESSAGE, type, ctx)
|
#define HANDLE(ns, type, func) xmpp_handler_add(conn, func, ns, STANZA_NAME_MESSAGE, type, ctx)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user