2015-04-22 13:09:17 -05:00
|
|
|
// 22 april 2015
|
|
|
|
#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_32
|
|
|
|
#define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_32
|
|
|
|
#define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_4
|
|
|
|
#define GDK_VERSION_MAX_ALLOWED GDK_VERSION_3_4
|
|
|
|
#include <gtk/gtk.h>
|
2015-08-28 09:01:57 -05:00
|
|
|
#include "../ui.h"
|
2015-04-22 13:09:17 -05:00
|
|
|
#include "../ui_unix.h"
|
|
|
|
#include "../uipriv.h"
|
2015-04-22 18:23:34 -05:00
|
|
|
|
|
|
|
#define gtkXMargin 12
|
|
|
|
#define gtkYMargin 12
|
2015-06-30 00:16:35 -05:00
|
|
|
#define gtkXPadding 12
|
|
|
|
#define gtkYPadding 6
|
2015-04-23 09:01:39 -05:00
|
|
|
|
2015-04-23 17:48:01 -05:00
|
|
|
// menu.c
|
|
|
|
extern GtkWidget *makeMenubar(uiWindow *);
|
2015-04-30 11:05:18 -05:00
|
|
|
extern void freeMenubar(GtkWidget *);
|
2015-05-08 09:17:33 -05:00
|
|
|
extern void uninitMenus(void);
|
2015-05-04 18:26:05 -05:00
|
|
|
|
|
|
|
// alloc.c
|
|
|
|
extern void initAlloc(void);
|
2015-05-07 22:10:19 -05:00
|
|
|
extern void uninitAlloc(void);
|
2015-06-13 23:58:10 -05:00
|
|
|
|
2015-08-27 17:40:00 -05:00
|
|
|
// util.c
|
|
|
|
extern void setMargined(GtkContainer *, int);
|
2015-08-28 09:01:57 -05:00
|
|
|
|
2015-08-28 15:38:04 -05:00
|
|
|
// child.c
|
|
|
|
extern struct child *newChild(uiControl *child, uiControl *parent, GtkContainer *parentContainer);
|
|
|
|
extern struct child *newChildWithBox(uiControl *child, uiControl *parent, GtkContainer *parentContainer, int margined);
|
|
|
|
extern void childRemove(struct child *c);
|
|
|
|
extern void childDestroy(struct child *c);
|
|
|
|
extern GtkWidget *childWidget(struct child *c);
|
|
|
|
extern void childUpdateState(struct child *c);
|
|
|
|
extern int childFlag(struct child *c);
|
|
|
|
extern void childSetFlag(struct child *c, int flag);
|
|
|
|
extern GtkWidget *childBox(struct child *c);
|
|
|
|
extern void childSetMargined(struct child *c, int margined);
|
|
|
|
|
2015-08-28 09:01:57 -05:00
|
|
|
// TODO
|
|
|
|
#define uiControlQueueResize(...)
|