Things
This commit is contained in:
parent
8fdcc5173f
commit
ca6a80f4cb
15 changed files with 766 additions and 9 deletions
24
src/tox-weechat-gui.c
Normal file
24
src/tox-weechat-gui.c
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <weechat/weechat-plugin.h>
|
||||
#include <tox/tox.h>
|
||||
|
||||
#include "tox-weechat.h"
|
||||
#include "tox-weechat-utils.h"
|
||||
|
||||
char *bar_item_input_prompt(void *data,
|
||||
struct t_gui_bar_item *item,
|
||||
struct t_gui_window *window,
|
||||
struct t_gui_buffer *buffer,
|
||||
struct t_hashtable *extra_info)
|
||||
{
|
||||
return tox_weechat_get_self_name_nt();
|
||||
}
|
||||
|
||||
void tox_weechat_gui_init()
|
||||
{
|
||||
weechat_bar_item_new("input_prompt", bar_item_input_prompt, NULL);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue