Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
BitchX
GitHub Repository: BitchX/BitchX1.3
Path: blob/master/include/gtkbitchx.h
1069 views
1
#ifndef _GTK_BITCHX_
2
#define _GTK_BITCHX_
3
4
#if defined(GUI)
5
#ifdef __linux__
6
/* For glibc linux systems. */
7
#ifndef _REENTRANT
8
#define _REENTRANT
9
#endif
10
#ifndef _POSIX_SOURCE
11
#define _POSIX_SOURCE
12
#endif
13
#define _P __P
14
#endif
15
16
/* So X11/X.h won't get included */
17
#define X_H
18
19
void menuitemhandler(gpointer *data);
20
GtkWidget *newsubmenu(MenuStruct *menutoadd);
21
22
int gtk_getx(void);
23
int gtk_gety(void);
24
void newmenubar(Screen *menuscreen, MenuStruct *menutoadd);
25
GtkWidget *newsubmenu(MenuStruct *menutoadd);
26
void gtk_new_window(Screen *new, Window *win);
27
void gtk_paste (GtkWidget *widget, GtkSelectionData *selection_data,
28
gpointer data);
29
void selection_handle (GtkWidget *widget,
30
GtkSelectionData *selection_data,
31
guint info, guint seltime);
32
int gtkprintf(char *format, ...);
33
void size_allocate (GtkWidget *widget, GtkWindow *window);
34
35
void gtk_about_box(char *about_text);
36
void gtk_label_set_color(GtkWidget *label, int color);
37
void gtk_tab_move(int page, int pos);
38
void gtk_main_paste(int refnum);
39
40
int notebook_page_by_refnum(int refnum);
41
void make_new_notebook(void);
42
void tab_to_window(Screen *tmp);
43
void window_to_tab(Screen *tmp);
44
char *gtk_windowlabel(Screen *tmp);
45
void gtk_windowicon(GtkWidget *window);
46
47
void make_tip(GtkWidget *widget, char *tip);
48
49
#endif
50
51
void gui_mutex_lock(void);
52
void gui_mutex_unlock(void);
53
54
#endif
55
56