2014-08-14 09:42:10 -05:00
|
|
|
// 16 march 2014
|
2014-07-07 21:35:27 -05:00
|
|
|
|
2014-07-29 00:53:34 -05:00
|
|
|
#ifndef __GO_UI_GTK_UNIX_H__
|
|
|
|
#define __GO_UI_GTK_UNIX_H__
|
|
|
|
|
2014-07-07 21:35:27 -05:00
|
|
|
/*
|
|
|
|
MIN_REQUIRED signals that programs are expected to run on at least GLib 2.32/GTK+ 3.4 and thus deprectation warnings for newer versions (such as gtk_scrolled_window_add_with_viewport() being deprecated in GTK+ 3.8) should be suppressed.
|
|
|
|
MAX_ALLOWED signals that programs will not use features introduced in newer versions of GLib/GTK+ and that the compiler should warn us if we slip.
|
|
|
|
Thanks to desrt in irc.gimp.net/#gtk+
|
|
|
|
*/
|
|
|
|
|
2014-08-14 09:42:10 -05:00
|
|
|
// GLib/GObject
|
2014-07-07 21:35:27 -05:00
|
|
|
#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_32
|
|
|
|
#define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_32
|
|
|
|
|
2014-08-14 09:42:10 -05:00
|
|
|
// GDK/GTK+
|
2014-07-07 21:35:27 -05:00
|
|
|
#define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_4
|
|
|
|
#define GDK_VERSION_MAX_ALLOWED GDK_VERSION_3_4
|
|
|
|
|
2014-08-14 09:42:10 -05:00
|
|
|
// cairo has no such macros (thanks Company in irc.gimp.net/#gtk+)
|
2014-07-07 21:35:27 -05:00
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <gtk/gtk.h>
|
2014-07-29 00:06:56 -05:00
|
|
|
|
2014-08-14 09:42:10 -05:00
|
|
|
// table_unix.c
|
2014-08-16 19:48:35 -05:00
|
|
|
extern void tableAppendColumn(GtkTreeView *, gint, gchar *, GtkCellRenderer *, gchar *);
|
2014-07-29 00:53:34 -05:00
|
|
|
typedef struct goTableModel goTableModel;
|
|
|
|
typedef struct goTableModelClass goTableModelClass;
|
|
|
|
struct goTableModel {
|
|
|
|
GObject parent_instance;
|
|
|
|
void *gotable;
|
|
|
|
};
|
|
|
|
struct goTableModelClass {
|
|
|
|
GObjectClass parent_class;
|
|
|
|
};
|
|
|
|
extern goTableModel *newTableModel(void *);
|
2014-07-29 02:43:01 -05:00
|
|
|
extern void tableUpdate(goTableModel *, gint, gint);
|
2014-07-29 00:53:34 -05:00
|
|
|
|
2014-08-14 09:42:10 -05:00
|
|
|
// container_unix.c
|
2014-08-13 22:27:18 -05:00
|
|
|
extern GtkWidget *newContainer(void *);
|
|
|
|
|
2014-07-29 00:53:34 -05:00
|
|
|
#endif
|