Use macros instead of raw numbers for login type
[rofl0r-ixchat.git] / src / fe-gtk / menu.h
blob7fef79cddef68aa4dc228a443185a889c1c97e0a
1 GtkWidget *menu_create_main (void *accel_group, int bar, int away, int toplevel, GtkWidget **menu_widgets);
2 void menu_urlmenu (GdkEventButton * event, char *url);
3 void menu_chanmenu (session *sess, GdkEventButton * event, char *chan);
4 void menu_addfavoritemenu (server *serv, GtkWidget *menu, char *channel);
5 void menu_nickmenu (session *sess, GdkEventButton * event, char *nick, int num_sel);
6 void menu_middlemenu (session *sess, GdkEventButton *event);
7 void userlist_button_cb (GtkWidget * button, char *cmd);
8 void nick_command_parse (session *sess, char *cmd, char *nick, char *allnick);
9 void usermenu_update (void);
10 GtkWidget *menu_toggle_item (char *label, GtkWidget *menu, void *callback, void *userdata, int state);
11 GtkWidget *menu_quick_item (char *cmd, char *label, GtkWidget * menu, int flags, gpointer userdata, char *icon);
12 GtkWidget *menu_quick_sub (char *name, GtkWidget *menu, GtkWidget **sub_item_ret, int flags, int pos);
13 GtkWidget *create_icon_menu (char *labeltext, void *stock_name, int is_stock);
14 void menu_create (GtkWidget *menu, GSList *list, char *target, int check_path);
15 void menu_bar_toggle (void);
16 void menu_add_plugin_items (GtkWidget *menu, char *root, char *target);
17 void menu_change_layout (void);
19 /* for menu_quick functions */
20 #define XCMENU_DOLIST 1
21 #define XCMENU_SHADED 1
22 #define XCMENU_MARKUP 2
23 #define XCMENU_MNEMONIC 4
25 /* menu items we keep a GtkWidget* for (to change their state) */
26 #define MENU_ID_AWAY 1
27 #define MENU_ID_MENUBAR 2
28 #define MENU_ID_TOPICBAR 3
29 #define MENU_ID_USERLIST 4
30 #define MENU_ID_ULBUTTONS 5
31 #define MENU_ID_MODEBUTTONS 6
32 #define MENU_ID_LAYOUT_TABS 7
33 #define MENU_ID_LAYOUT_TREE 8
34 #define MENU_ID_DISCONNECT 9
35 #define MENU_ID_RECONNECT 10
36 #define MENU_ID_JOIN 11
37 #define MENU_ID_USERMENU 12
39 #if (MENU_ID_NUM < MENU_ID_USERMENU)
40 #error MENU_ID_NUM is set wrong
41 #endif