Subversion Repositories eduke32

Rev

Rev 4772 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4747 terminx 1
#ifndef dynamicgtk_h_
2
#define dynamicgtk_h_
288 terminx 3
 
4
#include <gdk-pixbuf/gdk-pixdata.h>
5
#include <gdk-pixbuf/gdk-pixbuf.h>
710 terminx 6
#include <gdk/gdkkeysyms.h>
288 terminx 7
#include <gtk/gtk.h>
8
 
1205 terminx 9
#include "compat.h"
10
 
710 terminx 11
#if !GTK_CHECK_VERSION(2,4,0)
12
#error You need at least 2.4.0 version of GTK+
13
#endif
14
 
15
#if !defined(LINKED_GTK)
16
 
17
#ifndef G_GNUC_NULL_TERMINATED
18
/* this is a glib-2.8.x thing: */
19
#define G_GNUC_NULL_TERMINATED
20
#endif
21
 
555 terminx 22
 
4772 hendricks2 23
// glib.h
24
typedef void (*g_free_ptr) (gpointer mem);
288 terminx 25
 
4772 hendricks2 26
// gobject.h
27
typedef gpointer (*g_object_get_data_ptr) (GObject *object, const gchar *key);
28
typedef void (*g_object_set_data_ptr) (GObject *object, const gchar *key, gpointer data);
29
typedef void (*g_object_set_data_full_ptr) (GObject *object, const gchar *key, gpointer data, GDestroyNotify destroy);
30
typedef void (*g_object_unref_ptr) (gpointer object);
288 terminx 31
 
4772 hendricks2 32
// gsignal.h
33
typedef gulong (*g_signal_connect_data_ptr) (gpointer instance, const gchar *detailed_signal, GCallback c_handler, gpointer data, GClosureNotify destroy_data, GConnectFlags connect_flags);
34
typedef guint (*g_signal_handlers_block_matched_ptr) (gpointer instance, GSignalMatchType mask, guint signal_id, GQuark detail, GClosure *closure, gpointer func, gpointer data);
35
typedef guint (*g_signal_handlers_unblock_matched_ptr) (gpointer instance, GSignalMatchType mask, guint signal_id, GQuark detail, GClosure *closure, gpointer func, gpointer data);
288 terminx 36
 
4772 hendricks2 37
// gtype.h
38
typedef GTypeInstance* (*g_type_check_instance_cast_ptr) (GTypeInstance *instance, GType iface_type);
288 terminx 39
 
4772 hendricks2 40
// gdk-pixdata.h
41
typedef GdkPixbuf* (*gdk_pixbuf_from_pixdata_ptr) (const GdkPixdata *pixdata, gboolean copy_pixels, GError **error);
288 terminx 42
 
4772 hendricks2 43
// gdk-pixbuf-core.h
44
typedef GdkPixbuf *(*gdk_pixbuf_new_from_data_ptr) (const guchar *data, GdkColorspace colorspace, gboolean has_alpha, int32_t bits_per_sample, int32_t width, int32_t height, int32_t rowstride, GdkPixbufDestroyNotify destroy_fn, gpointer destroy_fn_data);
288 terminx 45
 
4772 hendricks2 46
// gtkaccelgroup.h
47
typedef GtkAccelGroup* (*gtk_accel_group_new_ptr) (void);
288 terminx 48
 
4772 hendricks2 49
// gtkalignment.h
50
typedef GtkWidget* (*gtk_alignment_new_ptr) (gfloat xalign, gfloat yalign, gfloat xscale, gfloat yscale);
288 terminx 51
 
4772 hendricks2 52
// gtkbox.h
53
typedef GType (*gtk_box_get_type_ptr) (void) G_GNUC_CONST;
54
typedef void (*gtk_box_pack_start_ptr) (GtkBox *box, GtkWidget *child, gboolean expand, gboolean fill, guint padding);
288 terminx 55
 
4772 hendricks2 56
// gtkbbox.h
57
typedef GType (*gtk_button_box_get_type_ptr) (void) G_GNUC_CONST;
58
typedef void (*gtk_button_box_set_layout_ptr) (GtkButtonBox *widget, GtkButtonBoxStyle layout_style);
288 terminx 59
 
4772 hendricks2 60
// gtkbutton.h
61
typedef GtkWidget* (*gtk_button_new_ptr) (void);
288 terminx 62
 
4772 hendricks2 63
// gtkcelllayout.h
64
typedef GType (*gtk_cell_layout_get_type_ptr) (void) G_GNUC_CONST;
65
typedef void (*gtk_cell_layout_pack_start_ptr) (GtkCellLayout *cell_layout, GtkCellRenderer *cell, gboolean expand);
66
typedef void (*gtk_cell_layout_set_attributes_ptr) (GtkCellLayout *cell_layout, GtkCellRenderer *cell, ...) G_GNUC_NULL_TERMINATED;
288 terminx 67
 
4772 hendricks2 68
// gtkcellrenderertext.h
69
typedef GtkCellRenderer *(*gtk_cell_renderer_text_new_ptr) (void);
288 terminx 70
 
4772 hendricks2 71
// gtkcheckbutton.h
72
typedef GtkWidget* (*gtk_check_button_new_with_mnemonic_ptr) (const gchar *label);
288 terminx 73
 
4772 hendricks2 74
// gtkcombobox.h
75
typedef gint (*gtk_combo_box_get_active_ptr) (GtkComboBox *combo_box);
76
typedef gboolean (*gtk_combo_box_get_active_iter_ptr) (GtkComboBox *combo_box, GtkTreeIter *iter);
77
typedef gchar (*gtk_combo_box_get_active_text_ptr) (GtkComboBox *combo_box);
78
typedef GtkTreeModel *(*gtk_combo_box_get_model_ptr) (GtkComboBox *combo_box);
79
typedef GType (*gtk_combo_box_get_type_ptr) (void) G_GNUC_CONST;
80
typedef GtkWidget *(*gtk_combo_box_new_text_ptr) (void);
81
typedef GtkWidget *(*gtk_combo_box_new_with_model_ptr) (GtkTreeModel *model);
82
typedef void (*gtk_combo_box_set_active_ptr) (GtkComboBox *combo_box, gint index_);
83
typedef void (*gtk_combo_box_set_active_iter_ptr) (GtkComboBox *combo_box, GtkTreeIter *iter);
288 terminx 84
 
4772 hendricks2 85
// gtkcontainer.h
86
typedef void (*gtk_container_add_ptr) (GtkContainer *container, GtkWidget *widget);
87
typedef void (*gtk_container_foreach_ptr) (GtkContainer *container, GtkCallback callback, gpointer callback_data);
88
typedef GType (*gtk_container_get_type_ptr) (void) G_GNUC_CONST;
89
typedef void (*gtk_container_set_border_width_ptr) (GtkContainer *container, guint border_width);
288 terminx 90
 
4772 hendricks2 91
// gtkdialog.h
92
typedef GType (*gtk_dialog_get_type_ptr) (void) G_GNUC_CONST;
93
typedef gint (*gtk_dialog_run_ptr) (GtkDialog *dialog);
288 terminx 94
 
4772 hendricks2 95
// gtkhbox.h
96
typedef GtkWidget* (*gtk_hbox_new_ptr) (gboolean homogeneous, gint spacing);
288 terminx 97
 
4772 hendricks2 98
// gtkhbbox.h
99
typedef GtkWidget* (*gtk_hbutton_box_new_ptr) (void);
288 terminx 100
 
4772 hendricks2 101
// gtkimage.h
102
typedef GtkWidget* (*gtk_image_new_from_pixbuf_ptr) (GdkPixbuf *pixbuf);
103
typedef GtkWidget* (*gtk_image_new_from_stock_ptr) (const gchar *stock_id, GtkIconSize size);
288 terminx 104
 
4772 hendricks2 105
// gtkmain.h
106
typedef gboolean (*gtk_init_check_ptr) (int32_t *argc, char ***argv);
288 terminx 107
 
4772 hendricks2 108
// gtklabel.h
109
typedef GType (*gtk_label_get_type_ptr) (void) G_GNUC_CONST;
110
typedef GtkWidget* (*gtk_label_new_ptr) (const gchar *str);
111
typedef GtkWidget* (*gtk_label_new_with_mnemonic_ptr) (const gchar *str);
112
typedef void (*gtk_label_set_mnemonic_widget_ptr) (GtkLabel *label, GtkWidget *widget);
288 terminx 113
 
4772 hendricks2 114
// gtkliststore.h
115
typedef void (*gtk_list_store_append_ptr) (GtkListStore *list_store, GtkTreeIter *iter);
116
typedef void (*gtk_list_store_clear_ptr) (GtkListStore *list_store);
117
typedef GType (*gtk_list_store_get_type_ptr) (void) G_GNUC_CONST;
118
typedef GtkListStore *(*gtk_list_store_new_ptr) (gint n_columns, ...);
119
typedef void (*gtk_list_store_set_ptr) (GtkListStore *list_store, GtkTreeIter *iter, ...);
288 terminx 120
 
4772 hendricks2 121
// gtkmain.h
122
typedef void (*gtk_main_ptr) (void);
123
typedef gboolean (*gtk_main_iteration_do_ptr) (gboolean blocking);
124
typedef void (*gtk_main_quit_ptr) (void);
288 terminx 125
 
4772 hendricks2 126
// gtkmessagedialog.h
127
typedef GtkWidget* (*gtk_message_dialog_new_ptr) (GtkWindow *parent, GtkDialogFlags flags, GtkMessageType type, GtkButtonsType buttons, const gchar *message_format, ...) G_GNUC_PRINTF (5, 6);
288 terminx 128
 
4772 hendricks2 129
// gtkmisc.h
130
typedef GType (*gtk_misc_get_type_ptr) (void) G_GNUC_CONST;
131
typedef void (*gtk_misc_set_alignment_ptr) (GtkMisc *misc, gfloat xalign, gfloat yalign);
288 terminx 132
 
4772 hendricks2 133
// gtknotebook.h
134
typedef GtkWidget* (*gtk_notebook_get_nth_page_ptr) (GtkNotebook *notebook, gint page_num);
135
typedef GType (*gtk_notebook_get_type_ptr) (void) G_GNUC_CONST;
136
typedef GtkWidget * (*gtk_notebook_new_ptr) (void);
137
typedef void (*gtk_notebook_set_current_page_ptr) (GtkNotebook *notebook, gint page_num);
138
typedef void (*gtk_notebook_set_tab_label_ptr) (GtkNotebook *notebook, GtkWidget *child, GtkWidget *tab_label);
288 terminx 139
 
4772 hendricks2 140
// gtkobject.h
141
typedef GtkType (*gtk_object_get_type_ptr) (void) G_GNUC_CONST;
288 terminx 142
 
4772 hendricks2 143
// gtkscrolledwindow.h
144
typedef GType (*gtk_scrolled_window_get_type_ptr) (void) G_GNUC_CONST;
145
typedef GtkWidget* (*gtk_scrolled_window_new_ptr) (GtkAdjustment *hadjustment, GtkAdjustment *vadjustment);
146
typedef void (*gtk_scrolled_window_set_policy_ptr) (GtkScrolledWindow *scrolled_window, GtkPolicyType hscrollbar_policy, GtkPolicyType vscrollbar_policy);
147
typedef void (*gtk_scrolled_window_set_shadow_type_ptr) (GtkScrolledWindow *scrolled_window, GtkShadowType type);
1540 terminx 148
 
4772 hendricks2 149
// gtktable.h
150
typedef GType (*gtk_table_get_type_ptr) (void) G_GNUC_CONST;
151
typedef GtkWidget* (*gtk_table_new_ptr) (guint rows, guint columns, gboolean homogeneous);
152
typedef void (*gtk_table_attach_ptr) (GtkTable *table, GtkWidget *child, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach, GtkAttachOptions xoptions, GtkAttachOptions yoptions, guint xpadding, guint ypadding);
288 terminx 153
 
4772 hendricks2 154
// gtktextbuffer.h
155
typedef gboolean (*gtk_text_buffer_backspace_ptr) (GtkTextBuffer *buffer, GtkTextIter *iter, gboolean interactive, gboolean default_editable);
156
typedef GtkTextMark *(*gtk_text_buffer_create_mark_ptr) (GtkTextBuffer *buffer, const gchar *mark_name, const GtkTextIter *where, gboolean left_gravity);
157
typedef void (*gtk_text_buffer_delete_mark_ptr) (GtkTextBuffer *buffer, GtkTextMark *mark);
158
typedef void (*gtk_text_buffer_get_end_iter_ptr) (GtkTextBuffer *buffer, GtkTextIter *iter);
159
typedef void (*gtk_text_buffer_insert_ptr) (GtkTextBuffer *buffer, GtkTextIter *iter, const gchar *text, gint len);
710 terminx 160
 
4772 hendricks2 161
// gtktextiter.h
162
// FIXME: should I put a #if !GTK_CHECK_VERSION(2,6,0)
163
// around these three, or should I not care?
164
typedef gboolean (*gtk_text_iter_backward_cursor_position_ptr) (GtkTextIter *iter);
165
typedef gboolean (*gtk_text_iter_equal_ptr) (const GtkTextIter *lhs, const GtkTextIter *rhs);
166
typedef gboolean (*gtk_text_buffer_delete_interactive_ptr) (GtkTextBuffer *buffer, GtkTextIter *start_iter, GtkTextIter *end_iter, gboolean default_editable);
288 terminx 167
 
4772 hendricks2 168
// gtktextview.h
169
typedef GtkTextBuffer *(*gtk_text_view_get_buffer_ptr) (GtkTextView *text_view);
170
typedef GType (*gtk_text_view_get_type_ptr) (void) G_GNUC_CONST;
171
typedef GtkWidget * (*gtk_text_view_new_ptr) (void);
172
typedef void (*gtk_text_view_scroll_to_mark_ptr) (GtkTextView *text_view, GtkTextMark *mark, gdouble within_margin, gboolean use_align, gdouble xalign, gdouble yalign);
173
typedef void (*gtk_text_view_set_cursor_visible_ptr) (GtkTextView *text_view, gboolean setting);
174
typedef void (*gtk_text_view_set_editable_ptr) (GtkTextView *text_view, gboolean setting);
175
typedef void (*gtk_text_view_set_left_margin_ptr) (GtkTextView *text_view, gint left_margin);
176
typedef void (*gtk_text_view_set_right_margin_ptr) (GtkTextView *text_view, gint right_margin);
177
typedef void (*gtk_text_view_set_wrap_mode_ptr) (GtkTextView *text_view, GtkWrapMode wrap_mode);
288 terminx 178
 
4772 hendricks2 179
// gtktogglebutton.h
180
typedef gboolean (*gtk_toggle_button_get_active_ptr) (GtkToggleButton *toggle_button);
181
typedef GType (*gtk_toggle_button_get_type_ptr) (void) G_GNUC_CONST;
182
typedef void (*gtk_toggle_button_set_active_ptr) (GtkToggleButton *toggle_button, gboolean is_active);
555 terminx 183
 
4772 hendricks2 184
// gtktreemodel.h
185
typedef void (*gtk_tree_model_get_ptr) (GtkTreeModel *tree_model, GtkTreeIter *iter, ...);
186
typedef gboolean (*gtk_tree_model_get_iter_ptr) (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path);
187
typedef GtkTreePath * (*gtk_tree_model_get_path_ptr) (GtkTreeModel *tree_model, GtkTreeIter *iter);
188
typedef GType (*gtk_tree_model_get_type_ptr) (void) G_GNUC_CONST;
189
typedef gint *(*gtk_tree_path_get_indices_ptr) (GtkTreePath *path);
190
typedef GtkTreePath *(*gtk_tree_path_new_from_indices_ptr) (gint first_index, ...);
555 terminx 191
 
4772 hendricks2 192
// gtktreeselection.h
193
typedef gboolean (*gtk_tree_selection_get_selected_ptr) (GtkTreeSelection *selection, GtkTreeModel **model, GtkTreeIter *iter);
194
typedef void (*gtk_tree_selection_select_iter_ptr) (GtkTreeSelection *selection, GtkTreeIter *iter);
195
typedef GType (*gtk_tree_selection_get_type_ptr) (void) G_GNUC_CONST;
196
typedef void (*gtk_tree_selection_set_mode_ptr) (GtkTreeSelection *selection, GtkSelectionMode type);
555 terminx 197
 
4772 hendricks2 198
// gtktreesortable.h
199
typedef GType (*gtk_tree_sortable_get_type_ptr) (void) G_GNUC_CONST;
200
typedef void (*gtk_tree_sortable_set_sort_column_id_ptr) (GtkTreeSortable *sortable, gint sort_column_id, GtkSortType order);
201
typedef void (*gtk_tree_sortable_set_sort_func_ptr) (GtkTreeSortable *sortable, gint sort_column_id, GtkTreeIterCompareFunc sort_func, gpointer user_data, GtkDestroyNotify destroy);
555 terminx 202
 
4772 hendricks2 203
// gtktreeview.h
204
typedef GType (*gtk_tree_view_get_type_ptr) (void) G_GNUC_CONST;
205
typedef GtkWidget *(*gtk_tree_view_new_with_model_ptr) (GtkTreeModel *model);
206
typedef GtkTreeModel *(*gtk_tree_view_get_model_ptr) (GtkTreeView *tree_view);
207
typedef GtkTreeSelection *(*gtk_tree_view_get_selection_ptr) (GtkTreeView *tree_view);
208
typedef gint (*gtk_tree_view_append_column_ptr) (GtkTreeView *tree_view, GtkTreeViewColumn *column);
209
typedef void (*gtk_tree_view_set_enable_search_ptr) (GtkTreeView *tree_view, gboolean enable_search);
210
typedef void (*gtk_tree_view_set_headers_visible_ptr) (GtkTreeView *tree_view, gboolean headers_visible);
555 terminx 211
 
4772 hendricks2 212
// gtktreeviewcolumn.h
213
typedef GtkTreeViewColumn *(*gtk_tree_view_column_new_with_attributes_ptr) (const gchar *title, GtkCellRenderer *cell, ...) G_GNUC_NULL_TERMINATED;
214
typedef void (*gtk_tree_view_column_set_expand_ptr) (GtkTreeViewColumn *tree_column, gboolean expand);
215
typedef void (*gtk_tree_view_column_set_min_width_ptr) (GtkTreeViewColumn *tree_column, gint min_width);
555 terminx 216
 
4772 hendricks2 217
// gtkvbox.h
218
typedef GtkWidget* (*gtk_vbox_new_ptr) (gboolean homogeneous, gint spacing);
555 terminx 219
 
4772 hendricks2 220
// gtkwidget.h
221
typedef void (*gtk_widget_add_accelerator_ptr) (GtkWidget *widget, const gchar *accel_signal, GtkAccelGroup *accel_group, guint accel_key, GdkModifierType accel_mods, GtkAccelFlags accel_flags);
222
typedef void (*gtk_widget_destroy_ptr) (GtkWidget *widget);
223
typedef GtkWidget* (*gtk_widget_ref_ptr) (GtkWidget *widget);
224
typedef void (*gtk_widget_set_sensitive_ptr) (GtkWidget *widget, gboolean sensitive);
225
typedef void (*gtk_widget_set_size_request_ptr) (GtkWidget *widget, gint width, gint height);
226
typedef void (*gtk_widget_show_all_ptr) (GtkWidget *widget);
227
typedef void (*gtk_widget_unref_ptr) (GtkWidget *widget);
555 terminx 228
 
4772 hendricks2 229
// gtkwindow.h
230
typedef void (*gtk_window_add_accel_group_ptr) (GtkWindow *window, GtkAccelGroup *accel_group);
231
typedef GType (*gtk_window_get_type_ptr) (void) G_GNUC_CONST;
232
typedef GtkWidget* (*gtk_window_new_ptr) (GtkWindowType type);
233
typedef void (*gtk_window_set_default_icon_ptr) (GdkPixbuf *icon);
234
typedef void (*gtk_window_set_position_ptr) (GtkWindow *window, GtkWindowPosition position);
235
typedef void (*gtk_window_set_resizable_ptr) (GtkWindow *window, gboolean resizable);
236
typedef void (*gtk_window_set_title_ptr) (GtkWindow *window, const gchar *title);
237
typedef void (*gtk_window_set_type_hint_ptr) (GtkWindow *window, GdkWindowTypeHint hint);
238
typedef void (*gtk_window_set_default_ptr) (GtkWindow *window, GtkWidget *default_widget);
555 terminx 239
 
4772 hendricks2 240
// gunicode.h
241
typedef gint (*g_utf8_collate_ptr) (const gchar *str1, const gchar *str2);
288 terminx 242
 
243
 
4772 hendricks2 244
struct _dynamicgtksyms {
245
    g_free_ptr g_free;
246
    g_object_get_data_ptr g_object_get_data;
247
    g_object_set_data_ptr g_object_set_data;
248
    g_object_set_data_full_ptr g_object_set_data_full;
249
    g_object_unref_ptr g_object_unref;
250
    g_signal_connect_data_ptr g_signal_connect_data;
251
    g_signal_handlers_block_matched_ptr g_signal_handlers_block_matched;
252
    g_signal_handlers_unblock_matched_ptr g_signal_handlers_unblock_matched;
253
    g_type_check_instance_cast_ptr g_type_check_instance_cast;
254
    gdk_pixbuf_from_pixdata_ptr gdk_pixbuf_from_pixdata;
255
    gdk_pixbuf_new_from_data_ptr gdk_pixbuf_new_from_data;
256
    gtk_accel_group_new_ptr gtk_accel_group_new;
257
    gtk_alignment_new_ptr gtk_alignment_new;
258
    gtk_box_get_type_ptr gtk_box_get_type;
259
    gtk_box_pack_start_ptr gtk_box_pack_start;
260
    gtk_button_box_get_type_ptr gtk_button_box_get_type;
261
    gtk_button_box_set_layout_ptr gtk_button_box_set_layout;
262
    gtk_button_new_ptr gtk_button_new;
263
    gtk_cell_layout_get_type_ptr gtk_cell_layout_get_type;
264
    gtk_cell_layout_pack_start_ptr gtk_cell_layout_pack_start;
265
    gtk_cell_layout_set_attributes_ptr gtk_cell_layout_set_attributes;
266
    gtk_cell_renderer_text_new_ptr gtk_cell_renderer_text_new;
267
    gtk_check_button_new_with_mnemonic_ptr gtk_check_button_new_with_mnemonic;
268
    gtk_combo_box_get_active_ptr gtk_combo_box_get_active;
269
    gtk_combo_box_get_active_iter_ptr gtk_combo_box_get_active_iter;
270
    gtk_combo_box_get_active_text_ptr gtk_combo_box_get_active_text;
271
    gtk_combo_box_get_model_ptr gtk_combo_box_get_model;
272
    gtk_combo_box_get_type_ptr gtk_combo_box_get_type;
273
    gtk_combo_box_new_text_ptr gtk_combo_box_new_text;
274
    gtk_combo_box_new_with_model_ptr gtk_combo_box_new_with_model;
275
    gtk_combo_box_set_active_ptr gtk_combo_box_set_active;
276
    gtk_combo_box_set_active_iter_ptr gtk_combo_box_set_active_iter;
277
    gtk_container_add_ptr gtk_container_add;
278
    gtk_container_foreach_ptr gtk_container_foreach;
279
    gtk_container_get_type_ptr gtk_container_get_type;
280
    gtk_container_set_border_width_ptr gtk_container_set_border_width;
281
    gtk_dialog_get_type_ptr gtk_dialog_get_type;
282
    gtk_dialog_run_ptr gtk_dialog_run;
283
    gtk_hbox_new_ptr gtk_hbox_new;
284
    gtk_hbutton_box_new_ptr gtk_hbutton_box_new;
285
    gtk_image_new_from_pixbuf_ptr gtk_image_new_from_pixbuf;
286
    gtk_image_new_from_stock_ptr gtk_image_new_from_stock;
287
    gtk_init_check_ptr gtk_init_check;
288
    gtk_label_get_type_ptr gtk_label_get_type;
289
    gtk_label_new_ptr gtk_label_new;
290
    gtk_label_new_with_mnemonic_ptr gtk_label_new_with_mnemonic;
291
    gtk_label_set_mnemonic_widget_ptr gtk_label_set_mnemonic_widget;
292
    gtk_list_store_append_ptr gtk_list_store_append;
293
    gtk_list_store_clear_ptr gtk_list_store_clear;
294
    gtk_list_store_get_type_ptr gtk_list_store_get_type;
295
    gtk_list_store_new_ptr gtk_list_store_new;
296
    gtk_list_store_set_ptr gtk_list_store_set;
297
    gtk_main_ptr gtk_main;
298
    gtk_main_iteration_do_ptr gtk_main_iteration_do;
299
    gtk_main_quit_ptr gtk_main_quit;
300
    gtk_message_dialog_new_ptr gtk_message_dialog_new;
301
    gtk_misc_get_type_ptr gtk_misc_get_type;
302
    gtk_misc_set_alignment_ptr gtk_misc_set_alignment;
303
    gtk_notebook_get_nth_page_ptr gtk_notebook_get_nth_page;
304
    gtk_notebook_get_type_ptr gtk_notebook_get_type;
305
    gtk_notebook_new_ptr gtk_notebook_new;
306
    gtk_notebook_set_current_page_ptr gtk_notebook_set_current_page;
307
    gtk_notebook_set_tab_label_ptr gtk_notebook_set_tab_label;
308
    gtk_object_get_type_ptr gtk_object_get_type;
309
    gtk_scrolled_window_get_type_ptr gtk_scrolled_window_get_type;
310
    gtk_scrolled_window_new_ptr gtk_scrolled_window_new;
311
    gtk_scrolled_window_set_policy_ptr gtk_scrolled_window_set_policy;
312
    gtk_scrolled_window_set_shadow_type_ptr gtk_scrolled_window_set_shadow_type;
313
    gtk_table_get_type_ptr gtk_table_get_type;
314
    gtk_table_new_ptr gtk_table_new;
315
    gtk_table_attach_ptr gtk_table_attach;
316
    gtk_text_buffer_backspace_ptr gtk_text_buffer_backspace;
317
    gtk_text_buffer_create_mark_ptr gtk_text_buffer_create_mark;
318
    gtk_text_buffer_delete_mark_ptr gtk_text_buffer_delete_mark;
319
    gtk_text_buffer_get_end_iter_ptr gtk_text_buffer_get_end_iter;
320
    gtk_text_buffer_insert_ptr gtk_text_buffer_insert;
321
    // FIXME: should I put a #if !GTK_CHECK_VERSION(2,6,0)
322
    // around these three, or should I not care?
323
    gtk_text_iter_backward_cursor_position_ptr gtk_text_iter_backward_cursor_position;
324
    gtk_text_iter_equal_ptr gtk_text_iter_equal;
325
    gtk_text_buffer_delete_interactive_ptr gtk_text_buffer_delete_interactive;
326
    //
327
    gtk_text_view_get_buffer_ptr gtk_text_view_get_buffer;
328
    gtk_text_view_get_type_ptr gtk_text_view_get_type;
329
    gtk_text_view_new_ptr gtk_text_view_new;
330
    gtk_text_view_scroll_to_mark_ptr gtk_text_view_scroll_to_mark;
331
    gtk_text_view_set_cursor_visible_ptr gtk_text_view_set_cursor_visible;
332
    gtk_text_view_set_editable_ptr gtk_text_view_set_editable;
333
    gtk_text_view_set_left_margin_ptr gtk_text_view_set_left_margin;
334
    gtk_text_view_set_right_margin_ptr gtk_text_view_set_right_margin;
335
    gtk_text_view_set_wrap_mode_ptr gtk_text_view_set_wrap_mode;
336
    gtk_toggle_button_get_active_ptr gtk_toggle_button_get_active;
337
    gtk_toggle_button_get_type_ptr gtk_toggle_button_get_type;
338
    gtk_toggle_button_set_active_ptr gtk_toggle_button_set_active;
339
    gtk_tree_model_get_ptr gtk_tree_model_get;
340
    gtk_tree_model_get_iter_ptr gtk_tree_model_get_iter;
341
    gtk_tree_model_get_path_ptr gtk_tree_model_get_path;
342
    gtk_tree_model_get_type_ptr gtk_tree_model_get_type;
343
    gtk_tree_path_get_indices_ptr gtk_tree_path_get_indices;
344
    gtk_tree_path_new_from_indices_ptr gtk_tree_path_new_from_indices;
345
    gtk_tree_selection_get_selected_ptr gtk_tree_selection_get_selected;
346
    gtk_tree_selection_select_iter_ptr gtk_tree_selection_select_iter;
347
    gtk_tree_selection_set_mode_ptr gtk_tree_selection_set_mode;
348
    gtk_tree_sortable_get_type_ptr gtk_tree_sortable_get_type;
349
    gtk_tree_sortable_set_sort_column_id_ptr gtk_tree_sortable_set_sort_column_id;
350
    gtk_tree_sortable_set_sort_func_ptr gtk_tree_sortable_set_sort_func;
351
    gtk_tree_view_append_column_ptr gtk_tree_view_append_column;
352
    gtk_tree_view_column_new_with_attributes_ptr gtk_tree_view_column_new_with_attributes;
353
    gtk_tree_view_column_set_expand_ptr gtk_tree_view_column_set_expand;
354
    gtk_tree_view_column_set_min_width_ptr gtk_tree_view_column_set_min_width;
355
    gtk_tree_view_get_model_ptr gtk_tree_view_get_model;
356
    gtk_tree_view_get_selection_ptr gtk_tree_view_get_selection;
357
    gtk_tree_view_get_type_ptr gtk_tree_view_get_type;
358
    gtk_tree_view_new_with_model_ptr gtk_tree_view_new_with_model;
359
    gtk_tree_view_set_enable_search_ptr gtk_tree_view_set_enable_search;
360
    gtk_tree_view_set_headers_visible_ptr gtk_tree_view_set_headers_visible;
361
    gtk_vbox_new_ptr gtk_vbox_new;
362
    gtk_widget_add_accelerator_ptr gtk_widget_add_accelerator;
363
    gtk_widget_destroy_ptr gtk_widget_destroy;
364
    gtk_widget_ref_ptr gtk_widget_ref;
365
    gtk_widget_set_sensitive_ptr gtk_widget_set_sensitive;
366
    gtk_widget_set_size_request_ptr gtk_widget_set_size_request;
367
    gtk_widget_show_all_ptr gtk_widget_show_all;
368
    gtk_widget_unref_ptr gtk_widget_unref;
369
    gtk_window_add_accel_group_ptr gtk_window_add_accel_group;
370
    gtk_window_get_type_ptr gtk_window_get_type;
371
    gtk_window_new_ptr gtk_window_new;
372
    gtk_window_set_default_icon_ptr gtk_window_set_default_icon;
373
    gtk_window_set_position_ptr gtk_window_set_position;
374
    gtk_window_set_resizable_ptr gtk_window_set_resizable;
375
    gtk_window_set_title_ptr gtk_window_set_title;
376
    gtk_window_set_type_hint_ptr gtk_window_set_type_hint;
377
    gtk_window_set_default_ptr gtk_window_set_default;
378
    g_utf8_collate_ptr g_utf8_collate;
288 terminx 379
};
380
extern struct _dynamicgtksyms dynamicgtksyms;
381
 
4772 hendricks2 382
 
1205 terminx 383
int32_t dynamicgtk_init(void);
288 terminx 384
void dynamicgtk_uninit(void);
385
 
4747 terminx 386
#ifndef dynamicgtkfoo__
288 terminx 387
 
555 terminx 388
// glib.h
389
#define g_free dynamicgtksyms.g_free
390
 
288 terminx 391
// gobject.h
392
#define g_object_get_data dynamicgtksyms.g_object_get_data
393
#define g_object_set_data dynamicgtksyms.g_object_set_data
394
#define g_object_set_data_full dynamicgtksyms.g_object_set_data_full
395
#define g_object_unref dynamicgtksyms.g_object_unref
396
 
397
// gsignal.h
398
#define g_signal_connect_data dynamicgtksyms.g_signal_connect_data
399
#define g_signal_handlers_block_matched dynamicgtksyms.g_signal_handlers_block_matched
400
#define g_signal_handlers_unblock_matched dynamicgtksyms.g_signal_handlers_unblock_matched
401
 
402
// gtype.h
403
#define g_type_check_instance_cast dynamicgtksyms.g_type_check_instance_cast
404
 
405
// gdk-pixdata.h
406
#define gdk_pixbuf_from_pixdata dynamicgtksyms.gdk_pixbuf_from_pixdata
407
 
408
// gdk-pixbuf-core.h
409
#define gdk_pixbuf_new_from_data dynamicgtksyms.gdk_pixbuf_new_from_data
410
 
411
// gtkaccelgroup.h
412
#define gtk_accel_group_new dynamicgtksyms.gtk_accel_group_new
413
 
414
// gtkalignment.h
415
#define gtk_alignment_new dynamicgtksyms.gtk_alignment_new
416
 
417
// gtkbox.h
418
#define gtk_box_get_type dynamicgtksyms.gtk_box_get_type
419
#define gtk_box_pack_start dynamicgtksyms.gtk_box_pack_start
420
 
421
// gtkbbox.h
422
#define gtk_button_box_get_type dynamicgtksyms.gtk_button_box_get_type
423
#define gtk_button_box_set_layout dynamicgtksyms.gtk_button_box_set_layout
424
 
425
// gtkbutton.h
426
#define gtk_button_new dynamicgtksyms.gtk_button_new
427
 
428
// gtkcelllayout.h
429
#define gtk_cell_layout_get_type dynamicgtksyms.gtk_cell_layout_get_type
430
#define gtk_cell_layout_pack_start dynamicgtksyms.gtk_cell_layout_pack_start
431
#define gtk_cell_layout_set_attributes dynamicgtksyms.gtk_cell_layout_set_attributes
432
 
433
// gtkcellrenderertext.h
434
#define gtk_cell_renderer_text_new dynamicgtksyms.gtk_cell_renderer_text_new
435
 
436
// gtkcheckbutton.h
437
#define gtk_check_button_new_with_mnemonic dynamicgtksyms.gtk_check_button_new_with_mnemonic
438
 
439
// gtkcombobox.h
1544 terminx 440
#define gtk_combo_box_get_active dynamicgtksyms.gtk_combo_box_get_active
288 terminx 441
#define gtk_combo_box_get_active_iter dynamicgtksyms.gtk_combo_box_get_active_iter
1544 terminx 442
#define gtk_combo_box_get_active_text dynamicgtksyms.gtk_combo_box_get_active_text
288 terminx 443
#define gtk_combo_box_get_model dynamicgtksyms.gtk_combo_box_get_model
444
#define gtk_combo_box_get_type dynamicgtksyms.gtk_combo_box_get_type
445
#define gtk_combo_box_new_text dynamicgtksyms.gtk_combo_box_new_text
446
#define gtk_combo_box_new_with_model dynamicgtksyms.gtk_combo_box_new_with_model
1544 terminx 447
#define gtk_combo_box_set_active dynamicgtksyms.gtk_combo_box_set_active
288 terminx 448
#define gtk_combo_box_set_active_iter dynamicgtksyms.gtk_combo_box_set_active_iter
449
 
450
// gtkcontainer.h
451
#define gtk_container_add dynamicgtksyms.gtk_container_add
452
#define gtk_container_foreach dynamicgtksyms.gtk_container_foreach
453
#define gtk_container_get_type dynamicgtksyms.gtk_container_get_type
454
#define gtk_container_set_border_width dynamicgtksyms.gtk_container_set_border_width
455
 
456
// gtkdialog.h
457
#define gtk_dialog_get_type dynamicgtksyms.gtk_dialog_get_type
458
#define gtk_dialog_run dynamicgtksyms.gtk_dialog_run
459
 
460
// gtkhbox.h
461
#define gtk_hbox_new dynamicgtksyms.gtk_hbox_new
462
 
463
// gtkhbbox.h
464
#define gtk_hbutton_box_new dynamicgtksyms.gtk_hbutton_box_new
465
 
466
// gtkimage.h
467
#define gtk_image_new_from_pixbuf dynamicgtksyms.gtk_image_new_from_pixbuf
468
#define gtk_image_new_from_stock dynamicgtksyms.gtk_image_new_from_stock
469
 
470
// gtkmain.h
471
#define gtk_init_check dynamicgtksyms.gtk_init_check
472
 
473
// gtklabel.h
474
#define gtk_label_get_type dynamicgtksyms.gtk_label_get_type
475
#define gtk_label_new dynamicgtksyms.gtk_label_new
476
#define gtk_label_new_with_mnemonic dynamicgtksyms.gtk_label_new_with_mnemonic
477
#define gtk_label_set_mnemonic_widget dynamicgtksyms.gtk_label_set_mnemonic_widget
478
 
479
// gtkliststore.h
480
#define gtk_list_store_append dynamicgtksyms.gtk_list_store_append
481
#define gtk_list_store_clear dynamicgtksyms.gtk_list_store_clear
482
#define gtk_list_store_get_type dynamicgtksyms.gtk_list_store_get_type
483
#define gtk_list_store_new dynamicgtksyms.gtk_list_store_new
484
#define gtk_list_store_set dynamicgtksyms.gtk_list_store_set
485
 
486
// gtkmain.h
487
#define gtk_main dynamicgtksyms.gtk_main
488
#define gtk_main_iteration_do dynamicgtksyms.gtk_main_iteration_do
489
#define gtk_main_quit dynamicgtksyms.gtk_main_quit
490
 
491
// gtkmessagedialog.h
492
#define gtk_message_dialog_new dynamicgtksyms.gtk_message_dialog_new
493
 
494
// gtkmisc.h
495
#define gtk_misc_get_type dynamicgtksyms.gtk_misc_get_type
496
#define gtk_misc_set_alignment dynamicgtksyms.gtk_misc_set_alignment
497
 
498
// gtknotebook.h
499
#define gtk_notebook_get_nth_page dynamicgtksyms.gtk_notebook_get_nth_page
500
#define gtk_notebook_get_type dynamicgtksyms.gtk_notebook_get_type
501
#define gtk_notebook_new dynamicgtksyms.gtk_notebook_new
502
#define gtk_notebook_set_current_page dynamicgtksyms.gtk_notebook_set_current_page
503
#define gtk_notebook_set_tab_label dynamicgtksyms.gtk_notebook_set_tab_label
504
 
505
// gtkobject.h
506
#define gtk_object_get_type dynamicgtksyms.gtk_object_get_type
507
 
508
// gtkscrolledwindow.h
509
#define gtk_scrolled_window_get_type dynamicgtksyms.gtk_scrolled_window_get_type
510
#define gtk_scrolled_window_new dynamicgtksyms.gtk_scrolled_window_new
511
#define gtk_scrolled_window_set_policy dynamicgtksyms.gtk_scrolled_window_set_policy
555 terminx 512
#define gtk_scrolled_window_set_shadow_type dynamicgtksyms.gtk_scrolled_window_set_shadow_type
288 terminx 513
 
1540 terminx 514
// gtktable.h
515
#define gtk_table_get_type dynamicgtksyms.gtk_table_get_type
516
#define gtk_table_new dynamicgtksyms.gtk_table_new
517
#define gtk_table_attach dynamicgtksyms.gtk_table_attach
518
 
288 terminx 519
// gtktextbuffer.h
520
#define gtk_text_buffer_backspace dynamicgtksyms.gtk_text_buffer_backspace
521
#define gtk_text_buffer_create_mark dynamicgtksyms.gtk_text_buffer_create_mark
522
#define gtk_text_buffer_delete_mark dynamicgtksyms.gtk_text_buffer_delete_mark
523
#define gtk_text_buffer_get_end_iter dynamicgtksyms.gtk_text_buffer_get_end_iter
524
#define gtk_text_buffer_insert dynamicgtksyms.gtk_text_buffer_insert
525
 
710 terminx 526
// gtktextiter.h
527
#define gtk_text_iter_backward_cursor_position dynamicgtksyms.gtk_text_iter_backward_cursor_position
528
#define gtk_text_iter_equal dynamicgtksyms.gtk_text_iter_equal
529
#define gtk_text_buffer_delete_interactive dynamicgtksyms.gtk_text_buffer_delete_interactive
530
 
288 terminx 531
// gtktextview.h
532
#define gtk_text_view_get_buffer dynamicgtksyms.gtk_text_view_get_buffer
533
#define gtk_text_view_get_type dynamicgtksyms.gtk_text_view_get_type
534
#define gtk_text_view_new dynamicgtksyms.gtk_text_view_new
535
#define gtk_text_view_scroll_to_mark dynamicgtksyms.gtk_text_view_scroll_to_mark
536
#define gtk_text_view_set_cursor_visible dynamicgtksyms.gtk_text_view_set_cursor_visible
537
#define gtk_text_view_set_editable dynamicgtksyms.gtk_text_view_set_editable
538
#define gtk_text_view_set_left_margin dynamicgtksyms.gtk_text_view_set_left_margin
539
#define gtk_text_view_set_right_margin dynamicgtksyms.gtk_text_view_set_right_margin
540
#define gtk_text_view_set_wrap_mode dynamicgtksyms.gtk_text_view_set_wrap_mode
541
 
542
// gtktogglebutton.h
543
#define gtk_toggle_button_get_active dynamicgtksyms.gtk_toggle_button_get_active
544
#define gtk_toggle_button_get_type dynamicgtksyms.gtk_toggle_button_get_type
545
#define gtk_toggle_button_set_active dynamicgtksyms.gtk_toggle_button_set_active
546
 
547
// gtktreemodel.h
548
#define gtk_tree_model_get dynamicgtksyms.gtk_tree_model_get
1544 terminx 549
#define gtk_tree_model_get_iter dynamicgtksyms.gtk_tree_model_get_iter
550
#define gtk_tree_model_get_path dynamicgtksyms.gtk_tree_model_get_path
288 terminx 551
#define gtk_tree_model_get_type dynamicgtksyms.gtk_tree_model_get_type
1544 terminx 552
#define gtk_tree_path_get_indices dynamicgtksyms.gtk_tree_path_get_indices
553
#define gtk_tree_path_new_from_indices dynamicgtksyms.gtk_tree_path_new_from_indices
288 terminx 554
 
555 terminx 555
// gtktreeselection.h
556
#define gtk_tree_selection_get_selected dynamicgtksyms.gtk_tree_selection_get_selected
557
#define gtk_tree_selection_select_iter dynamicgtksyms.gtk_tree_selection_select_iter
558
#define gtk_tree_selection_set_mode dynamicgtksyms.gtk_tree_selection_set_mode
559
 
560
// gtktreesortable.h
561
#define gtk_tree_sortable_get_type dynamicgtksyms.gtk_tree_sortable_get_type
562
#define gtk_tree_sortable_set_sort_column_id dynamicgtksyms.gtk_tree_sortable_set_sort_column_id
563
#define gtk_tree_sortable_set_sort_func dynamicgtksyms.gtk_tree_sortable_set_sort_func
564
 
565
// gtktreeview.h
566
#define gtk_tree_view_append_column dynamicgtksyms.gtk_tree_view_append_column
567
#define gtk_tree_view_get_model dynamicgtksyms.gtk_tree_view_get_model
568
#define gtk_tree_view_get_selection dynamicgtksyms.gtk_tree_view_get_selection
569
#define gtk_tree_view_get_type dynamicgtksyms.gtk_tree_view_get_type
570
#define gtk_tree_view_new_with_model dynamicgtksyms.gtk_tree_view_new_with_model
571
#define gtk_tree_view_set_enable_search dynamicgtksyms.gtk_tree_view_set_enable_search
572
#define gtk_tree_view_set_headers_visible dynamicgtksyms.gtk_tree_view_set_headers_visible
573
 
574
// gtktreeviewcolumn.h
575
#define gtk_tree_view_column_new_with_attributes dynamicgtksyms.gtk_tree_view_column_new_with_attributes
576
#define gtk_tree_view_column_set_expand dynamicgtksyms.gtk_tree_view_column_set_expand
577
#define gtk_tree_view_column_set_min_width dynamicgtksyms.gtk_tree_view_column_set_min_width
578
 
579
 
288 terminx 580
// gtkvbox.h
581
#define gtk_vbox_new dynamicgtksyms.gtk_vbox_new
582
 
583
// gtkwidget.h
584
#define gtk_widget_add_accelerator dynamicgtksyms.gtk_widget_add_accelerator
585
#define gtk_widget_destroy dynamicgtksyms.gtk_widget_destroy
586
#define gtk_widget_ref dynamicgtksyms.gtk_widget_ref
587
#define gtk_widget_set_sensitive dynamicgtksyms.gtk_widget_set_sensitive
588
#define gtk_widget_set_size_request dynamicgtksyms.gtk_widget_set_size_request
1540 terminx 589
#define gtk_widget_show_all dynamicgtksyms.gtk_widget_show_all
288 terminx 590
#define gtk_widget_unref dynamicgtksyms.gtk_widget_unref
591
 
592
// gtkwindow.h
593
#define gtk_window_add_accel_group dynamicgtksyms.gtk_window_add_accel_group
594
#define gtk_window_get_type dynamicgtksyms.gtk_window_get_type
595
#define gtk_window_new dynamicgtksyms.gtk_window_new
596
#define gtk_window_set_default_icon dynamicgtksyms.gtk_window_set_default_icon
597
#define gtk_window_set_position dynamicgtksyms.gtk_window_set_position
598
#define gtk_window_set_resizable dynamicgtksyms.gtk_window_set_resizable
599
#define gtk_window_set_title dynamicgtksyms.gtk_window_set_title
600
#define gtk_window_set_type_hint dynamicgtksyms.gtk_window_set_type_hint
1664 plagman 601
#define gtk_window_set_default dynamicgtksyms.gtk_window_set_default
288 terminx 602
 
555 terminx 603
// gunicode.h
604
#define g_utf8_collate dynamicgtksyms.g_utf8_collate
605
 
710 terminx 606
#endif  /* __dynamicgtkfoo__ */
288 terminx 607
 
710 terminx 608
#endif  /* LINKED_GTK */
609
 
4747 terminx 610
#endif  /* dynamicgtk_h_ */