KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > internal > gtk > OS


1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others. All rights reserved.
3  * The contents of this file are made available under the terms
4  * of the GNU Lesser General Public License (LGPL) Version 2.1 that
5  * accompanies this distribution (lgpl-v21.txt). The LGPL is also
6  * available at http://www.gnu.org/licenses/lgpl.html. If the version
7  * of the LGPL at http://www.gnu.org is different to the version of
8  * the LGPL accompanying this distribution and there is any conflict
9  * between the two license versions, the terms of the LGPL accompanying
10  * this distribution shall govern.
11  *******************************************************************************/

12 package org.eclipse.swt.internal.gtk;
13
14  
15 import org.eclipse.swt.internal.*;
16
17 public class OS extends Platform {
18     static {
19         Library.loadLibrary("swt-pi");
20     }
21     
22     /** OS Constants */
23     public static final boolean IsAIX, IsSunOS, IsLinux, IsHPUX;
24     static {
25         
26         /* Initialize the OS flags and locale constants */
27         String JavaDoc osName = System.getProperty ("os.name");
28         boolean isAIX = false, isSunOS = false, isLinux = false, isHPUX = false;
29         if (osName.equals ("Linux")) isLinux = true;
30         if (osName.equals ("AIX")) isAIX = true;
31         if (osName.equals ("Solaris")) isSunOS = true;
32         if (osName.equals ("SunOS")) isSunOS = true;
33         if (osName.equals ("HP-UX")) isHPUX = true;
34         IsAIX = isAIX; IsSunOS = isSunOS; IsLinux = isLinux; IsHPUX = isHPUX;
35     }
36
37     /** Constants */
38     public static final int G_SIGNAL_MATCH_DATA = 1 << 4;
39     public static final int G_SIGNAL_MATCH_ID = 1 << 0;
40     public static final int GDK_2BUTTON_PRESS = 0x5;
41     public static final int GDK_3BUTTON_PRESS = 0x6;
42     public static final int GDK_ACTION_COPY = 1 << 1;
43     public static final int GDK_ACTION_MOVE = 1 << 2;
44     public static final int GDK_ACTION_LINK = 1 << 3;
45     public static final int GDK_Alt_L = 0xffe9;
46     public static final int GDK_Alt_R = 0xffea;
47     public static final int GDK_AND = 4;
48     public static final int GDK_BackSpace = 0xff08;
49     public static final int GDK_BOTTOM_LEFT_CORNER = 0xc;
50     public static final int GDK_BOTTOM_RIGHT_CORNER = 0xe;
51     public static final int GDK_BOTTOM_SIDE = 0x10;
52     public static final int GDK_BUTTON1_MASK = 0x100;
53     public static final int GDK_BUTTON2_MASK = 0x200;
54     public static final int GDK_BUTTON3_MASK = 0x400;
55     public static final int GDK_BUTTON_MOTION_MASK = 1 << 4;
56     public static final int GDK_BUTTON1_MOTION_MASK = 1 << 5;
57     public static final int GDK_BUTTON2_MOTION_MASK = 1 << 6;
58     public static final int GDK_BUTTON3_MOTION_MASK = 1 << 7;
59     public static final int GDK_BUTTON_PRESS = 0x4;
60     public static final int GDK_BUTTON_PRESS_MASK = 0x100;
61     public static final int GDK_BUTTON_RELEASE = 0x7;
62     public static final int GDK_BUTTON_RELEASE_MASK = 0x200;
63     public static final int GDK_CAP_BUTT = 0x1;
64     public static final int GDK_CAP_PROJECTING = 3;
65     public static final int GDK_CAP_ROUND = 0x2;
66     public static final int GDK_COLORSPACE_RGB = 0;
67     public static final int GDK_CONFIGURE = 13;
68     public static final int GDK_CONTROL_MASK = 0x4;
69     public static final int GDK_COPY = 0x0;
70     public static final int GDK_CROSS = 0x1e;
71     public static final int GDK_CROSSING_NORMAL = 0;
72     public static final int GDK_CROSSING_GRAB = 1;
73     public static final int GDK_CROSSING_UNGRAB = 2;
74     public static final int GDK_Break = 0xff6b;
75     public static final int GDK_Cancel = 0xff69;
76     public static final int GDK_Caps_Lock = 0xffE5;
77     public static final int GDK_Clear = 0xff0B;
78     public static final int GDK_Control_L = 0xffe3;
79     public static final int GDK_Control_R = 0xffe4;
80     public static final int GDK_CURRENT_TIME = 0x0;
81     public static final int GDK_DECOR_BORDER = 0x2;
82     public static final int GDK_DECOR_MAXIMIZE = 0x40;
83     public static final int GDK_DECOR_MENU = 0x10;
84     public static final int GDK_DECOR_MINIMIZE = 0x20;
85     public static final int GDK_DECOR_RESIZEH = 0x4;
86     public static final int GDK_DECOR_TITLE = 0x8;
87     public static final int GDK_DOUBLE_ARROW = 0x2a;
88     public static final int GDK_Delete = 0xffff;
89     public static final int GDK_Down = 0xff54;
90     public static final int GDK_ENTER_NOTIFY_MASK = 0x1000;
91     public static final int GDK_ENTER_NOTIFY = 10;
92     public static final int GDK_EVEN_ODD_RULE = 0;
93     public static final int GDK_EXPOSE = 2;
94     public static final int GDK_EXPOSURE_MASK = 0x2;
95     public static final int GDK_End = 0xff57;
96     public static final int GDK_Escape = 0xff1b;
97     public static final int GDK_F1 = 0xffbe;
98     public static final int GDK_F10 = 0xffc7;
99     public static final int GDK_F11 = 0xffc8;
100     public static final int GDK_F12 = 0xffc9;
101     public static final int GDK_F13 = 0xffca;
102     public static final int GDK_F14 = 0xffcb;
103     public static final int GDK_F15 = 0xffcc;
104     public static final int GDK_F2 = 0xffbf;
105     public static final int GDK_F3 = 0xffc0;
106     public static final int GDK_F4 = 0xffc1;
107     public static final int GDK_F5 = 0xffc2;
108     public static final int GDK_F6 = 0xffc3;
109     public static final int GDK_F7 = 0xffc4;
110     public static final int GDK_F8 = 0xffc5;
111     public static final int GDK_F9 = 0xffc6;
112     public static final int GDK_FLEUR = 0x34;
113     public static final int GDK_FOCUS_CHANGE = 0xc;
114     public static final int GDK_FOCUS_CHANGE_MASK = 0x4000;
115     public static final int GDK_GC_CLIP_MASK = 0x80;
116     public static final int GDK_GC_CLIP_X_ORIGIN = 0x800;
117     public static final int GDK_GC_CLIP_Y_ORIGIN = 0x1000;
118     public static final int GDK_GRAB_SUCCESS = 0x0;
119     public static final int GDK_HAND2 = 0x3c;
120     public static final int GDK_Help = 0xFF6A;
121     public static final int GDK_HINT_MIN_SIZE = 1 << 1;
122     public static final int GDK_Home = 0xff50;
123     public static final int GDK_INCLUDE_INFERIORS = 0x1;
124     public static final int GDK_INPUT_ONLY = 1;
125     public static final int GDK_INTERP_BILINEAR = 0x2;
126     public static final int GDK_Insert = 0xff63;
127     public static final int GDK_ISO_Left_Tab = 0xfe20;
128     public static final int GDK_JOIN_MITER = 0x0;
129     public static final int GDK_JOIN_ROUND = 0x1;
130     public static final int GDK_JOIN_BEVEL = 0x2;
131     public static final int GDK_KEY_PRESS = 0x8;
132     public static final int GDK_KEY_PRESS_MASK = 0x400;
133     public static final int GDK_KEY_RELEASE = 0x9;
134     public static final int GDK_KEY_RELEASE_MASK = 0x800;
135     public static final int GDK_KP_0 = 0xffb0;
136     public static final int GDK_KP_1 = 0xffb1;
137     public static final int GDK_KP_2 = 0xffb2;
138     public static final int GDK_KP_3 = 0xffb3;
139     public static final int GDK_KP_4 = 0xffb4;
140     public static final int GDK_KP_5 = 0xffb5;
141     public static final int GDK_KP_6 = 0xffb6;
142     public static final int GDK_KP_7 = 0xffb7;
143     public static final int GDK_KP_8 = 0xffb8;
144     public static final int GDK_KP_9 = 0xffb9;
145     public static final int GDK_KP_Add = 0xffab;
146     public static final int GDK_KP_Decimal = 0xffae;
147     public static final int GDK_KP_Delete = 0xFF9F;
148     public static final int GDK_KP_Divide = 0xffaf;
149     public static final int GDK_KP_Down = 0xFF99;
150     public static final int GDK_KP_End = 0xFF9C;
151     public static final int GDK_KP_Enter = 0xff8d;
152     public static final int GDK_KP_Equal = 0xffbd;
153     public static final int GDK_KP_Home = 0xFF95;
154     public static final int GDK_KP_Insert = 0xFF9E;
155     public static final int GDK_KP_Left = 0xFF96;
156     public static final int GDK_KP_Multiply = 0xffaa;
157     public static final int GDK_KP_Page_Down = 0xFF9B;
158     public static final int GDK_KP_Page_Up = 0xFF9A;
159     public static final int GDK_KP_Right = 0xFF98;
160     public static final int GDK_KP_Subtract = 0xffad;
161     public static final int GDK_KP_Up = 0xFF97;
162     public static final int GDK_LEAVE_NOTIFY = 11;
163     public static final int GDK_LEAVE_NOTIFY_MASK = 0x2000;
164     public static final int GDK_LEFT_PTR = 0x44;
165     public static final int GDK_LEFT_SIDE = 0x46;
166     public static final int GDK_LINE_ON_OFF_DASH = 0x1;
167     public static final int GDK_LINE_SOLID = 0x0;
168     public static final int GDK_Linefeed = 0xff0A;
169     public static final int GDK_LSB_FIRST = 0x0;
170     public static final int GDK_Left = 0xff51;
171     public static final int GDK_Meta_L = 0xFFE7;
172     public static final int GDK_Meta_R = 0xFFE8;
173     public static final int GDK_MAP = 14;
174     public static final int GDK_MOD1_MASK = 0x8;
175     public static final int GDK_MOTION_NOTIFY = 0x3;
176     public static final int GDK_NO_EXPOSE = 30;
177     public static final int GDK_NONE = 0;
178     public static final int GDK_NOTIFY_INFERIOR = 2;
179     public static final int GDK_Num_Lock = 0xFF7F;
180     public static final int GDK_OVERLAP_RECTANGLE_OUT = 0x1;
181     public static final int GDK_PIXBUF_ALPHA_BILEVEL = 0x0;
182     public static final int GDK_POINTER_MOTION_HINT_MASK = 0x8;
183     public static final int GDK_POINTER_MOTION_MASK = 0x4;
184     public static final int GDK_PROPERTY_NOTIFY = 16;
185     public static final int GDK_Page_Down = 0xff56;
186     public static final int GDK_Page_Up = 0xff55;
187     public static final int GDK_Pause = 0xff13;
188     public static final int GDK_Print = 0xff61;
189     public static final int GDK_QUESTION_ARROW = 0x5c;
190     public static final int GDK_RGB_DITHER_NORMAL = 0x1;
191     public static final int GDK_RIGHT_SIDE = 0x60;
192     public static final int GDK_Return = 0xff0d;
193     public static final int GDK_Right = 0xff53;
194     public static final int GDK_space = 0x20;
195     public static final int GDK_SB_H_DOUBLE_ARROW = 0x6c;
196     public static final int GDK_SB_UP_ARROW = 0x72;
197     public static final int GDK_SB_V_DOUBLE_ARROW = 0x74;
198     public static final int GDK_SCROLL_UP = 0;
199     public static final int GDK_SCROLL_DOWN = 1;
200     public static final int GDK_SCROLL_LEFT = 2;
201     public static final int GDK_SCROLL_RIGHT = 3;
202     public static final int GDK_SELECTION_CLEAR = 17;
203     public static final int GDK_SELECTION_NOTIFY = 19;
204     public static final int GDK_SELECTION_REQUEST = 18;
205     public static final int GDK_SHIFT_MASK = 0x1;
206     public static final int GDK_SIZING = 0x78;
207     public static final int GDK_STIPPLED = 0x2;
208     public static final int GDK_Shift_L = 0xffe1;
209     public static final int GDK_Shift_R = 0xffe2;
210     public static final int GDK_SCROLL = 31;
211     public static final int GDK_Scroll_Lock = 0xff14;
212     public static final int GDK_TOP_LEFT_CORNER = 0x86;
213     public static final int GDK_TOP_RIGHT_CORNER = 0x88;
214     public static final int GDK_TOP_SIDE = 0x8a;
215     public static final int GDK_Tab = 0xff09;
216     public static final int GDK_Up = 0xff52;
217     public static final int GDK_WATCH = 0x96;
218     public static final int GDK_XOR = 0x2;
219     public static final int GDK_XTERM = 0x98;
220     public static final int GDK_X_CURSOR = 0x0;
221     public static final int GDK_VISIBILITY_FULLY_OBSCURED = 2;
222     public static final int GDK_VISIBILITY_NOTIFY_MASK = 1 << 17;
223     public static final int GDK_WINDOW_CHILD = 2;
224     public static final int GDK_WINDOW_STATE_ICONIFIED = 1 << 1;
225     public static final int GDK_WINDOW_STATE_MAXIMIZED = 1 << 2;
226     public static final int GTK_ACCEL_VISIBLE = 0x1;
227     public static final int GTK_ARROW_DOWN = 0x1;
228     public static final int GTK_ARROW_LEFT = 0x2;
229     public static final int GTK_ARROW_RIGHT = 0x3;
230     public static final int GTK_ARROW_UP = 0x0;
231     public static final int GTK_CAN_DEFAULT = 0x2000;
232     public static final int GTK_CAN_FOCUS = 0x800;
233     public static final int GTK_CELL_RENDERER_MODE_ACTIVATABLE = 1;
234     public static final int GTK_CLIST_SHOW_TITLES = 0x4;
235     public static final int GTK_CORNER_TOP_LEFT = 0x0;
236     public static final int GTK_CORNER_TOP_RIGHT = 0x2;
237     public static final int GTK_DIALOG_DESTROY_WITH_PARENT = 1 << 1;
238     public static final int GTK_DIALOG_MODAL = 1 << 0;
239     public static final int GTK_DIR_TAB_FORWARD = 0;
240     public static final int GTK_DIR_TAB_BACKWARD = 1;
241     public static final int GTK_FILE_CHOOSER_ACTION_OPEN = 0;
242     public static final int GTK_FILE_CHOOSER_ACTION_SAVE = 1;
243     public static final int GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER = 2;
244     public static final int GTK_HAS_FOCUS = 1 << 12;
245     public static final int GTK_ICON_SIZE_DIALOG = 6;
246     public static final int GTK_JUSTIFY_CENTER = 0x2;
247     public static final int GTK_JUSTIFY_LEFT = 0x0;
248     public static final int GTK_JUSTIFY_RIGHT = 0x1;
249     public static final int GTK_MAPPED = 1 << 7;
250     public static final int GTK_MESSAGE_INFO = 0;
251     public static final int GTK_MESSAGE_WARNING = 1;
252     public static final int GTK_MESSAGE_QUESTION = 2;
253     public static final int GTK_MESSAGE_ERROR = 3;
254     public static final int GTK_NO_WINDOW = 1 << 5;
255     public static final int GTK_ORIENTATION_HORIZONTAL = 0x0;
256     public static final int GTK_ORIENTATION_VERTICAL = 0x1;
257     public static final int GTK_PACK_START = 0;
258     public static final int GTK_POLICY_ALWAYS = 0x0;
259     public static final int GTK_POLICY_AUTOMATIC = 0x1;
260     public static final int GTK_POLICY_NEVER = 0x2;
261     public static final int GTK_POS_BOTTOM = 0x3;
262     public static final int GTK_PROGRESS_CONTINUOUS = 0x0;
263     public static final int GTK_PROGRESS_DISCRETE = 0x1;
264     public static final int GTK_PROGRESS_LEFT_TO_RIGHT = 0x0;
265     public static final int GTK_PROGRESS_BOTTOM_TO_TOP = 0x2;
266     public static final int GTK_REALIZED = 1 << 6;
267     public static final int GTK_RELIEF_NONE = 0x2;
268     public static final int GTK_RC_BG = 1 << 1;
269     public static final int GTK_RC_FG = 1 << 0;
270     public static final int GTK_RESPONSE_CANCEL = 0xfffffffa;
271     public static final int GTK_RESPONSE_OK = 0xfffffffb;
272     public static final int GTK_SCROLL_NONE = 0;
273     public static final int GTK_SCROLL_JUMP = 1;
274     public static final int GTK_SCROLL_STEP_BACKWARD = 2;
275     public static final int GTK_SCROLL_STEP_FORWARD = 3;
276     public static final int GTK_SCROLL_PAGE_BACKWARD = 4;
277     public static final int GTK_SCROLL_PAGE_FORWARD = 5;
278     public static final int GTK_SCROLL_STEP_UP = 6;
279     public static final int GTK_SCROLL_STEP_DOWN = 7;
280     public static final int GTK_SCROLL_PAGE_UP = 8;
281     public static final int GTK_SCROLL_PAGE_DOWN = 9;
282     public static final int GTK_SCROLL_STEP_LEFT = 10;
283     public static final int GTK_SCROLL_STEP_RIGHT = 11;
284     public static final int GTK_SCROLL_PAGE_LEFT = 12;
285     public static final int GTK_SCROLL_PAGE_RIGHT = 13;
286     public static final int GTK_SCROLL_START = 14;
287     public static final int GTK_SCROLL_END = 15;
288     public static final int GTK_SELECTION_BROWSE = 0x2;
289     public static final int GTK_SELECTION_MULTIPLE = 0x3;
290     public static final int GTK_SENSITIVE = 0x200;
291     public static final int GTK_SHADOW_ETCHED_IN = 0x3;
292     public static final int GTK_SHADOW_ETCHED_OUT = 0x4;
293     public static final int GTK_SHADOW_IN = 0x1;
294     public static final int GTK_SHADOW_NONE = 0x0;
295     public static final int GTK_SHADOW_OUT = 0x2;
296     public static final int GTK_STATE_ACTIVE = 0x1;
297     public static final int GTK_STATE_INSENSITIVE = 0x4;
298     public static final int GTK_STATE_NORMAL = 0x0;
299     public static final int GTK_STATE_PRELIGHT = 0x2;
300     public static final int GTK_STATE_SELECTED = 0x3;
301     public static final int GTK_TEXT_DIR_LTR = 1;
302     public static final int GTK_TEXT_DIR_NONE = 0 ;
303     public static final int GTK_TEXT_DIR_RTL = 2;
304     public static final int GTK_TEXT_WINDOW_TEXT = 2;
305     public static final int GTK_TOOLBAR_CHILD_BUTTON = 0x1;
306     public static final int GTK_TOOLBAR_CHILD_RADIOBUTTON = 0x3;
307     public static final int GTK_TOOLBAR_CHILD_TOGGLEBUTTON = 0x2;
308     public static final int GTK_TREE_VIEW_COLUMN_GROW_ONLY = 0;
309     public static final int GTK_TREE_VIEW_COLUMN_AUTOSIZE = 1;
310     public static final int GTK_TREE_VIEW_COLUMN_FIXED = 2;
311     public static final int GTK_TREE_VIEW_DROP_BEFORE = 0;
312     public static final int GTK_TREE_VIEW_DROP_AFTER = 1;
313     public static final int GTK_TREE_VIEW_DROP_INTO_OR_BEFORE = 2;
314     public static final int GTK_TREE_VIEW_DROP_INTO_OR_AFTER = 3;
315     public static final int GDK_UNMAP = 15;
316     public static final int GTK_VISIBILITY_FULL = 0x2;
317     public static final int GTK_VISIBILITY_NONE = 0x0;
318     public static final int GTK_VISIBLE = 0x100;
319     public static final int GDK_WA_X = 1 << 2;
320     public static final int GDK_WA_Y = 1 << 3;
321     public static final int GTK_WINDOW_POPUP = 0x1;
322     public static final int GTK_WINDOW_TOPLEVEL = 0x0;
323     public static final int GDK_WINDOW_TYPE_HINT_DIALOG = 1;
324     public static final int GTK_WRAP_NONE = 0;
325     public static final int GTK_WRAP_WORD = 2;
326     public static final int G_LOG_FLAG_FATAL = 0x2;
327     public static final int G_LOG_FLAG_RECURSION = 0x1;
328     public static final int G_LOG_LEVEL_MASK = 0xfffffffc;
329     public static final int None = 0;
330     public static final int PANGO_ALIGN_LEFT = 0;
331     public static final int PANGO_ALIGN_CENTER = 1;
332     public static final int PANGO_ALIGN_RIGHT = 2;
333     public static final int PANGO_DIRECTION_LTR = 0;
334     public static final int PANGO_DIRECTION_RTL = 1;
335     public static final int PANGO_SCALE = 1024;
336     public static final int PANGO_STRETCH_NORMAL = 0x4;
337     public static final int PANGO_STYLE_ITALIC = 0x2;
338     public static final int PANGO_STYLE_NORMAL = 0x0;
339     public static final int PANGO_STYLE_OBLIQUE = 0x1;
340     public static final int PANGO_TAB_LEFT = 0;
341     public static final int PANGO_UNDERLINE_LOW = 3;
342     public static final int PANGO_UNDERLINE_SINGLE = 1;
343     public static final int PANGO_WEIGHT_BOLD = 0x2bc;
344     public static final int PANGO_WEIGHT_NORMAL = 0x190;
345     public static final int PANGO_WRAP_WORD = 0;
346     public static final int PANGO_WRAP_WORD_CHAR = 2;
347     public static final int XA_CARDINAL = 6;
348     public static final int XA_WINDOW = 33;
349     
350     /** Signals */
351     public static final byte[] activate = ascii("activate");
352     public static final byte[] button_press_event = ascii("button-press-event");
353     public static final byte[] button_release_event = ascii("button-release-event");
354     public static final byte[] changed = ascii("changed");
355     public static final byte[] change_current_page = ascii("change-current-page");
356     public static final byte[] change_value = ascii("change-value");
357     public static final byte[] clicked = ascii("clicked");
358     public static final byte[] commit = ascii("commit");
359     public static final byte[] configure_event = ascii("configure-event");
360     public static final byte[] delete_event = ascii("delete-event");
361     public static final byte[] delete_range = ascii("delete-range");
362     public static final byte[] delete_text = ascii("delete-text");
363     public static final byte[] drag_data_delete = ascii("drag_data_delete");
364     public static final byte[] drag_data_get = ascii("drag_data_get");
365     public static final byte[] drag_data_received = ascii("drag_data_received");
366     public static final byte[] drag_drop = ascii("drag_drop");
367     public static final byte[] drag_end = ascii("drag_end");
368     public static final byte[] drag_leave = ascii("drag_leave");
369     public static final byte[] drag_motion = ascii("drag_motion");
370     public static final byte[] enter_notify_event = ascii("enter-notify-event");
371     public static final byte[] event = ascii("event");
372     public static final byte[] event_after = ascii("event-after");
373     public static final byte[] expand_collapse_cursor_row = ascii("expand-collapse-cursor-row");
374     public static final byte[] expose_event = ascii("expose-event");
375     public static final byte[] focus = ascii("focus");
376     public static final byte[] focus_in_event = ascii("focus-in-event");
377     public static final byte[] focus_out_event = ascii("focus-out-event");
378     public static final byte[] hide = ascii("hide");
379     public static final byte[] input = ascii("input");
380     public static final byte[] insert_text = ascii("insert-text");
381     public static final byte[] key_press_event = ascii("key-press-event");
382     public static final byte[] key_release_event = ascii("key-release-event");
383     public static final byte[] leave_notify_event = ascii("leave-notify-event");
384     public static final byte[] map = ascii("map");
385     public static final byte[] map_event = ascii("map-event");
386     public static final byte[] mnemonic_activate = ascii("mnemonic-activate");
387     public static final byte[] motion_notify_event = ascii("motion-notify-event");
388     public static final byte[] move_focus = ascii("move-focus");
389     public static final byte[] output = ascii("output");
390     public static final byte[] popup_menu = ascii("popup-menu");
391     public static final byte[] preedit_changed = ascii("preedit-changed");
392     public static final byte[] realize = ascii("realize");
393     public static final byte[] row_activated = ascii("row-activated");
394     public static final byte[] row_changed = ascii("row-changed");
395     public static final byte[] scroll_child = ascii("scroll-child");
396     public static final byte[] scroll_event = ascii("scroll-event");
397     public static final byte[] select = ascii("select");
398     public static final byte[] show = ascii("show");
399     public static final byte[] show_help = ascii("show-help");
400     public static final byte[] size_allocate = ascii("size-allocate");
401     public static final byte[] style_set = ascii("style-set");
402     public static final byte[] switch_page = ascii("switch-page");
403     public static final byte[] test_collapse_row = ascii("test-collapse-row");
404     public static final byte[] test_expand_row = ascii("test-expand-row");
405     public static final byte[] toggled = ascii("toggled");
406     public static final byte[] unmap = ascii("unmap");
407     public static final byte[] unmap_event = ascii("unmap-event");
408     public static final byte[] unrealize = ascii("unrealize");
409     public static final byte[] value_changed = ascii("value-changed");
410     public static final byte[] visibility_notify_event = ascii("visibility-notify-event");
411     public static final byte[] window_state_event = ascii("window-state-event");
412     
413     /** Properties */
414     public static final byte[] active = ascii("active");
415     public static final byte[] background_gdk = ascii("background-gdk");
416     public static final byte[] button_relief = ascii("button-relief");
417     public static final byte[] cell_background_gdk = ascii("cell-background-gdk");
418     public static final byte[] default_border = ascii("default-border");
419     public static final byte[] expander_size = ascii("expander-size");
420     public static final byte[] fixed_height_mode = ascii("fixed-height-mode");
421     public static final byte[] focus_line_width = ascii("focus-line-width");
422     public static final byte[] font_desc = ascii("font-desc");
423     public static final byte[] foreground_gdk = ascii("foreground-gdk");
424     public static final byte[] gtk_cursor_blink = ascii("gtk-cursor-blink");
425     public static final byte[] gtk_cursor_blink_time = ascii("gtk-cursor-blink-time");
426     public static final byte[] gtk_double_click_time = ascii("gtk-double-click-time");
427     public static final byte[] horizontal_separator = ascii("horizontal-separator");
428     public static final byte[] inconsistent = ascii("inconsistent");
429     public static final byte[] interior_focus = ascii("interior-focus");
430     public static final byte[] mode = ascii("mode");
431     public static final byte[] pixbuf = ascii("pixbuf");
432     public static final byte[] text = ascii("text");
433     public static final byte[] xalign = ascii("xalign");
434     
435     public static final int GTK_VERSION = VERSION(gtk_major_version(), gtk_minor_version(), gtk_micro_version());
436     
437 protected static byte [] ascii (String JavaDoc name) {
438     int length = name.length ();
439     char [] chars = new char [length];
440     name.getChars (0, length, chars, 0);
441     byte [] buffer = new byte [length + 1];
442     for (int i=0; i<length; i++) {
443         buffer [i] = (byte) chars [i];
444     }
445     return buffer;
446 }
447
448 public static int VERSION(int major, int minor, int micro) {
449     return (major << 16) + (minor << 8) + micro;
450 }
451
452 /** 64 bit */
453 public static final int PTR_SIZEOF = PTR_sizeof();
454 public static final native int PTR_sizeof();
455 public static final native int GInterfaceInfo_sizeof ();
456 public static final native int GPollFD_sizeof ();
457 public static final native int GTypeInfo_sizeof ();
458 public static final native int GTypeQuery_sizeof ();
459 public static final native int GdkColor_sizeof();
460 public static final native int GdkDragContext_sizeof();
461 public static final native int GdkEvent_sizeof();
462 public static final native int GdkEventAny_sizeof();
463 public static final native int GdkEventButton_sizeof();
464 public static final native int GdkEventCrossing_sizeof();
465 public static final native int GdkEventExpose_sizeof();
466 public static final native int GdkEventFocus_sizeof();
467 public static final native int GdkEventKey_sizeof();
468 public static final native int GdkEventMotion_sizeof();
469 public static final native int GdkEventScroll_sizeof();
470 public static final native int GdkEventVisibility_sizeof();
471 public static final native int GdkEventWindowState_sizeof();
472 public static final native int GdkGCValues_sizeof();
473 public static final native int GdkGeometry_sizeof();
474 public static final native int GdkImage_sizeof();
475 public static final native int GdkRectangle_sizeof();
476 public static final native int GdkVisual_sizeof();
477 public static final native int GdkWindowAttr_sizeof();
478 public static final native int GtkAdjustment_sizeof();
479 public static final native int GtkAllocation_sizeof();
480 public static final native int GtkBorder_sizeof();
481 public static final native int GtkColorSelectionDialog_sizeof();
482 public static final native int GtkCombo_sizeof();
483 public static final native int GtkFileSelection_sizeof();
484 public static final native int GtkFixed_sizeof();
485 public static final native int GtkFixedClass_sizeof();
486 public static final native int GtkRequisition_sizeof();
487 public static final native int GtkSelectionData_sizeof();
488 public static final native int GtkTargetEntry_sizeof();
489 public static final native int GtkTargetPair_sizeof();
490 public static final native int GtkTextIter_sizeof();
491 public static final native int GtkTreeIter_sizeof();
492 public static final native int PangoAttribute_sizeof();
493 public static final native int PangoItem_sizeof();
494 public static final native int PangoLayoutLine_sizeof();
495 public static final native int PangoLayoutRun_sizeof();
496 public static final native int PangoLogAttr_sizeof();
497 public static final native int PangoRectangle_sizeof();
498 public static final native int XAnyEvent_sizeof();
499 public static final native int XButtonEvent_sizeof();
500 public static final native int XClientMessageEvent_sizeof();
501 public static final native int XEvent_sizeof();
502 public static final native int XCrossingEvent_sizeof();
503 public static final native int XExposeEvent_sizeof();
504 public static final native int XFocusChangeEvent_sizeof();
505 public static final native int XVisibilityEvent_sizeof();
506 public static final native int XWindowChanges_sizeof();
507 public static final native int /*long*/ getenv(byte[] name);
508 public static final native int /*long*/ localeconv_decimal_point();
509 public static final native int strlen(int /*long*/ str);
510
511 /** Object private fields accessors */
512 public static final native int GTK_WIDGET_HEIGHT(int /*long*/ widget);
513 public static final native int GTK_WIDGET_WIDTH(int /*long*/ widget);
514 public static final native int /*long*/ GTK_WIDGET_WINDOW(int /*long*/ widget);
515 public static final native int GTK_WIDGET_X(int /*long*/ widget);
516 public static final native int GTK_WIDGET_Y(int /*long*/ widget);
517 public static final native int /*long*/ GTK_SCROLLED_WINDOW_HSCROLLBAR(int /*long*/ widget);
518 public static final native int /*long*/ GTK_SCROLLED_WINDOW_VSCROLLBAR(int /*long*/ widget);
519 public static final native int GTK_SCROLLED_WINDOW_SCROLLBAR_SPACING(int /*long*/ widget);
520 public static final native void GTK_ACCEL_LABEL_SET_ACCEL_STRING(int /*long*/ acce_label, int /*long*/ string);
521 public static final native int /*long*/ GTK_ACCEL_LABEL_GET_ACCEL_STRING(int /*long*/ acce_label);
522 public static final native int /*long*/ GTK_ENTRY_IM_CONTEXT(int /*long*/ widget);
523 public static final native int /*long*/ GTK_TEXTVIEW_IM_CONTEXT(int /*long*/ widget);
524 public static final native void GTK_WIDGET_SET_HEIGHT(int /*long*/ widget, int height);
525 public static final native void GTK_WIDGET_SET_WIDTH(int /*long*/ widget, int width);
526 public static final native void GTK_WIDGET_SET_X(int /*long*/ widget, int x);
527 public static final native void GTK_WIDGET_SET_Y(int /*long*/ widget, int y);
528 public static final native int GTK_WIDGET_REQUISITION_WIDTH(int /*long*/ widget);
529 public static final native int GTK_WIDGET_REQUISITION_HEIGHT(int /*long*/ widget);
530
531 /** X11 Native methods and constants */
532 public static final int Above = 0;
533 public static final int Below = 1;
534 public static final int ButtonRelease = 5;
535 public static final int ClientMessage = 33;
536 public static final int CurrentTime = 0;
537 public static final int CWSibling = 0x20;
538 public static final int CWStackMode = 0x40;
539 public static final int EnterNotify = 7;
540 public static final int Expose = 12;
541 public static final int FocusChangeMask = 1 << 21;
542 public static final int FocusIn = 9;
543 public static final int FocusOut = 10;
544 public static final int GraphicsExpose = 13;
545 public static final int NoExpose = 14;
546 public static final int ExposureMask = 1 << 15;
547 public static final int /*long*/ NoEventMask = 0;
548 public static final int NotifyNonlinear = 3;
549 public static final int NotifyPointer = 5;
550 public static final int RevertToParent = 2;
551 public static final int VisibilityChangeMask = 1 << 16;
552 public static final int VisibilityFullyObscured = 2;
553 public static final int VisibilityNotify = 15;
554 public static final int SYSTEM_TRAY_REQUEST_DOCK = 0;
555 public static final native int _Call(int /*long*/ proc, int /*long*/ arg1, int /*long*/ arg2);
556 public static final int Call(int /*long*/ proc, int /*long*/ arg1, int /*long*/ arg2) {
557     lock.lock();
558     try {
559         return _Call(proc, arg1, arg2);
560     } finally {
561         lock.unlock();
562     }
563 }
564 public static final native boolean GDK_WINDOWING_X11();
565 public static final native int /*long*/ _GDK_PIXMAP_XID(int /*long*/ pixmap);
566 public static final int /*long*/ GDK_PIXMAP_XID(int /*long*/ pixmap) {
567     lock.lock();
568     try {
569         return _GDK_PIXMAP_XID(pixmap);
570     } finally {
571         lock.unlock();
572     }
573 }
574 public static final native boolean _XCheckMaskEvent(int /*long*/ display, int /*long*/ event_mask, int /*long*/ event_return);
575 public static final boolean XCheckMaskEvent(int /*long*/ display, int /*long*/ event_mask, int /*long*/ event_return) {
576     lock.lock();
577     try {
578         return _XCheckMaskEvent(display, event_mask, event_return);
579     } finally {
580         lock.unlock();
581     }
582 }
583 public static final native boolean _XCheckWindowEvent(int /*long*/ display, int /*long*/ window, int /*long*/ event_mask, int /*long*/ event_return);
584 public static final boolean XCheckWindowEvent(int /*long*/ display, int /*long*/ window, int /*long*/ event_mask, int /*long*/ event_return) {
585     lock.lock();
586     try {
587         return _XCheckWindowEvent(display, window, event_mask, event_return);
588     } finally {
589         lock.unlock();
590     }
591 }
592 public static final native boolean _XCheckIfEvent(int /*long*/ display, int /*long*/ event_return, int /*long*/ predicate, int /*long*/ arg);
593 public static final boolean XCheckIfEvent(int /*long*/ display, int /*long*/ event_return, int /*long*/ predicate, int /*long*/ arg) {
594     lock.lock();
595     try {
596         return _XCheckIfEvent(display, event_return, predicate, arg);
597     } finally {
598         lock.unlock();
599     }
600 }
601 public static final native int _XDefaultScreen(int /*long*/ display);
602 public static final int XDefaultScreen(int /*long*/ display) {
603     lock.lock();
604     try {
605         return _XDefaultScreen(display);
606     } finally {
607         lock.unlock();
608     }
609 }
610 public static final native int /*long*/ _XDefaultRootWindow(int /*long*/ display);
611 public static final int /*long*/ XDefaultRootWindow(int /*long*/ display) {
612     lock.lock();
613     try {
614         return _XDefaultRootWindow(display);
615     } finally {
616         lock.unlock();
617     }
618 }
619 public static final native void _XFlush(int /*long*/ display);
620 public static final void XFlush(int /*long*/ display) {
621     lock.lock();
622     try {
623         _XFlush(display);
624     } finally {
625         lock.unlock();
626     }
627 }
628 public static final native void _XFree(int /*long*/ address);
629 public static final void XFree(int /*long*/ address) {
630     lock.lock();
631     try {
632         _XFree(address);
633     } finally {
634         lock.unlock();
635     }
636 }
637 public static final native int /*long*/ _XGetSelectionOwner(int /*long*/ display, int /*long*/ selection);
638 public static final int /*long*/ XGetSelectionOwner(int /*long*/ display, int /*long*/ selection) {
639     lock.lock();
640     try {
641         return _XGetSelectionOwner(display, selection);
642     } finally {
643         lock.unlock();
644     }
645 }
646 public static final native int /*long*/ _XInternAtom(int /*long*/ display, byte[] name, boolean ifExists);
647 public static final int /*long*/ XInternAtom(int /*long*/ display, byte[] name, boolean ifExists) {
648     lock.lock();
649     try {
650         return _XInternAtom(display, name, ifExists);
651     } finally {
652         lock.unlock();
653     }
654 }
655 public static final native int _XQueryTree(int /*long*/ display, int /*long*/ w, int /*long*/[] root_return, int /*long*/[] parent_return, int /*long*/[] children_return, int[] nchildren_return);
656 public static final int XQueryTree(int /*long*/ display, int /*long*/ w, int /*long*/[] root_return, int /*long*/[] parent_return, int /*long*/[] children_return, int[] nchildren_return) {
657     lock.lock();
658     try {
659         return _XQueryTree(display, w, root_return, parent_return, children_return, nchildren_return);
660     } finally {
661         lock.unlock();
662     }
663 }
664 public static final native int _XKeysymToKeycode(int /*long*/ display, int /*long*/ keysym);
665 public static final int XKeysymToKeycode(int /*long*/ display, int /*long*/ keysym) {
666     lock.lock();
667     try {
668         return _XKeysymToKeycode(display, keysym);
669     } finally {
670         lock.unlock();
671     }
672 }
673 public static final native int /*long*/ _XListProperties(int /*long*/ display, int /*long*/ window, int[] num_prop_return);
674 public static final int /*long*/ XListProperties(int /*long*/ display, int /*long*/ window, int[] num_prop_return) {
675     lock.lock();
676     try {
677         return _XListProperties(display, window, num_prop_return);
678     } finally {
679         lock.unlock();
680     }
681 }
682 public static final native int _XReconfigureWMWindow(int /*long*/ display, int /*long*/ window, int screen, int valueMask, XWindowChanges values);
683 public static final int XReconfigureWMWindow(int /*long*/ display, int /*long*/ window, int screen, int valueMask, XWindowChanges values) {
684     lock.lock();
685     try {
686         return _XReconfigureWMWindow(display, window, screen, valueMask, values);
687     } finally {
688         lock.unlock();
689     }
690 }
691 public static final native int _XSendEvent(int /*long*/ display, int /*long*/ w, boolean propogate, int /*long*/ event_mask, int /*long*/ event_send);
692 public static final int XSendEvent(int /*long*/ display, int /*long*/ w, boolean propogate, int /*long*/ event_mask, int /*long*/ event_send) {
693     lock.lock();
694     try {
695         return _XSendEvent(display, w, propogate, event_mask, event_send);
696     } finally {
697         lock.unlock();
698     }
699 }
700 public static final native int /*long*/ _XSetIOErrorHandler(int /*long*/ handler);
701 public static final int /*long*/ XSetIOErrorHandler(int /*long*/ handler) {
702     lock.lock();
703     try {
704         return _XSetIOErrorHandler(handler);
705     } finally {
706         lock.unlock();
707     }
708 }
709 public static final native int /*long*/ _XSetErrorHandler(int /*long*/ handler);
710 public static final int /*long*/ XSetErrorHandler(int /*long*/ handler) {
711     lock.lock();
712     try {
713         return _XSetErrorHandler(handler);
714     } finally {
715         lock.unlock();
716     }
717 }
718 public static final native int _XSetInputFocus(int /*long*/ display, int /*long*/ window, int revert, int time);
719 public static final int XSetInputFocus(int /*long*/ display, int /*long*/ window, int revert, int time) {
720     lock.lock();
721     try {
722         return _XSetInputFocus(display, window, revert, time);
723     } finally {
724         lock.unlock();
725     }
726 }
727 public static final native int /*long*/ _XSynchronize(int /*long*/ display, boolean onoff);
728 public static final int /*long*/ XSynchronize(int /*long*/ display, boolean onoff) {
729     lock.lock();
730     try {
731         return _XSynchronize(display, onoff);
732     } finally {
733         lock.unlock();
734     }
735 }
736 public static final native void _XTestFakeButtonEvent(int /*long*/ display, int button, boolean is_press, int /*long*/ delay);
737 public static final void XTestFakeButtonEvent(int /*long*/ display, int button, boolean is_press, int /*long*/ delay) {
738     lock.lock();
739     try {
740         _XTestFakeButtonEvent(display, button, is_press, delay);
741     } finally {
742         lock.unlock();
743     }
744 }
745 public static final native void _XTestFakeKeyEvent(int /*long*/ display, int keycode, boolean is_press, int /*long*/ delay);
746 public static final void XTestFakeKeyEvent(int /*long*/ display, int keycode, boolean is_press, int /*long*/ delay) {
747     lock.lock();
748     try {
749         _XTestFakeKeyEvent(display, keycode, is_press, delay);
750     } finally {
751         lock.unlock();
752     }
753 }
754 public static final native void _XTestFakeMotionEvent(int /*long*/ display, int screen_number, int x, int y, int /*long*/ delay);
755 public static final void XTestFakeMotionEvent(int /*long*/ display, int screen_number, int x, int y, int /*long*/ delay) {
756     lock.lock();
757     try {
758         _XTestFakeMotionEvent(display, screen_number, x, y, delay);
759     } finally {
760         lock.unlock();
761     }
762 }
763 public static final native int _XWarpPointer(int /*long*/ display, int /*long*/ sourceWindow, int /*long*/ destWindow, int sourceX, int sourceY, int sourceWidth, int sourceHeight, int destX, int destY);
764 public static final int XWarpPointer(int /*long*/ display, int /*long*/ sourceWindow, int /*long*/ destWindow, int sourceX, int sourceY, int sourceWidth, int sourceHeight, int destX, int destY) {
765     lock.lock();
766     try {
767         return _XWarpPointer(display, sourceWindow, destWindow, sourceX, sourceY, sourceWidth, sourceHeight, destX, destY);
768     } finally {
769         lock.unlock();
770     }
771 }
772 public static final native int /*long*/ _gdk_x11_atom_to_xatom(int /*long*/ atom);
773 public static final int /*long*/ gdk_x11_atom_to_xatom(int /*long*/ atom) {
774     lock.lock();
775     try {
776         return _gdk_x11_atom_to_xatom(atom);
777     } finally {
778         lock.unlock();
779     }
780 }
781 public static final native int /*long*/ _gdk_x11_colormap_get_xcolormap(int /*long*/ colormap);
782 public static final int /*long*/ gdk_x11_colormap_get_xcolormap(int /*long*/ colormap) {
783     lock.lock();
784     try {
785         return _gdk_x11_colormap_get_xcolormap(colormap);
786     } finally {
787         lock.unlock();
788     }
789 }
790 public static final native int /*long*/ _gdk_x11_drawable_get_xdisplay(int /*long*/ drawable);
791 public static final int /*long*/ gdk_x11_drawable_get_xdisplay(int /*long*/ drawable) {
792     lock.lock();
793     try {
794         return _gdk_x11_drawable_get_xdisplay(drawable);
795     } finally {
796         lock.unlock();
797     }
798 }
799 public static final native int /*long*/ _gdk_x11_drawable_get_xid(int /*long*/ drawable);
800 public static final int /*long*/ gdk_x11_drawable_get_xid(int /*long*/ drawable) {
801     lock.lock();
802     try {
803         return _gdk_x11_drawable_get_xid(drawable);
804     } finally {
805         lock.unlock();
806     }
807 }
808 public static final native int /*long*/ _gdk_x11_screen_get_window_manager_name(int /*long*/ screen);
809 public static final int /*long*/ gdk_x11_screen_get_window_manager_name(int /*long*/ screen) {
810     lock.lock();
811     try {
812         return _gdk_x11_screen_get_window_manager_name(screen);
813     } finally {
814         lock.unlock();
815     }
816 }
817 public static final native int /*long*/ _gdk_x11_visual_get_xvisual(int /*long*/ visual);
818 public static final int /*long*/ gdk_x11_visual_get_xvisual(int /*long*/ visual) {
819     lock.lock();
820     try {
821         return _gdk_x11_visual_get_xvisual(visual);
822     } finally {
823         lock.unlock();
824     }
825 }
826 public static final native int /*long*/ _gdk_pixmap_foreign_new(int /*long*/ anid);
827 public static final int /*long*/ gdk_pixmap_foreign_new(int /*long*/ anid) {
828     lock.lock();
829     try {
830         return _gdk_pixmap_foreign_new(anid);
831     } finally {
832         lock.unlock();
833     }
834 }
835 public static final native int /*long*/ _gdk_window_lookup(int /*long*/ xid);
836 public static final int /*long*/ gdk_window_lookup(int /*long*/ xid) {
837     lock.lock();
838     try {
839         return _gdk_window_lookup(xid);
840     } finally {
841         lock.unlock();
842     }
843 }
844 public static final native void _gdk_window_add_filter(int /*long*/ window, int /*long*/ function, int /*long*/ data);
845 public static final void gdk_window_add_filter(int /*long*/ window, int /*long*/ function, int /*long*/ data) {
846     lock.lock();
847     try {
848         _gdk_window_add_filter(window, function, data);
849     } finally {
850         lock.unlock();
851     }
852 }
853 public static final native void _gdk_window_remove_filter(int /*long*/ window, int /*long*/ function, int /*long*/ data);
854 public static final void gdk_window_remove_filter(int /*long*/ window, int /*long*/ function, int /*long*/ data) {
855     lock.lock();
856     try {
857         _gdk_window_remove_filter(window, function, data);
858     } finally {
859         lock.unlock();
860     }
861 }
862 public static final native void memmove(int /*long*/ dest, XButtonEvent src, int /*long*/ size);
863 public static final native void memmove(int /*long*/ dest, XClientMessageEvent src, int /*long*/ size);
864 public static final native void memmove(int /*long*/ dest, XCrossingEvent src, int /*long*/ size);
865 public static final native void memmove(int /*long*/ dest, XExposeEvent src, int /*long*/ size);
866 public static final native void memmove(int /*long*/ dest, XFocusChangeEvent src, int /*long*/ size);
867 public static final native void memmove(XButtonEvent dest, int /*long*/ src, int /*long*/ size);
868 public static final native void memmove(XCrossingEvent dest, int /*long*/ src, int /*long*/ size);
869 public static final native void memmove(XExposeEvent dest, int /*long*/ src, int /*long*/ size);
870 public static final native void memmove(XFocusChangeEvent dest, int /*long*/ src, int /*long*/ size);
871 public static final native void memmove(XVisibilityEvent dest, int /*long*/ src, int /*long*/ size);
872
873 /** Natives */
874 public static final native int Call (int /*long*/ func, int /*long*/ arg0, int arg1, int arg2);
875 public static final native int /*long*/ _GDK_DISPLAY();
876 public static final int /*long*/ GDK_DISPLAY() {
877     lock.lock();
878     try {
879         return _GDK_DISPLAY();
880     } finally {
881         lock.unlock();
882     }
883 }
884 public static final native int /*long*/ _GDK_ROOT_PARENT();
885 public static final int /*long*/ GDK_ROOT_PARENT() {
886     lock.lock();
887     try {
888         return _GDK_ROOT_PARENT();
889     } finally {
890         lock.unlock();
891     }
892 }
893 public static final native int /*long*/ _GDK_TYPE_COLOR();
894 public static final int /*long*/ GDK_TYPE_COLOR() {
895     lock.lock();
896     try {
897         return _GDK_TYPE_COLOR();
898     } finally {
899         lock.unlock();
900     }
901 }
902 public static final native int /*long*/ _GDK_TYPE_PIXBUF();
903 public static final int /*long*/ GDK_TYPE_PIXBUF() {
904     lock.lock();
905     try {
906         return _GDK_TYPE_PIXBUF();
907     } finally {
908         lock.unlock();
909     }
910 }
911 public static final native boolean _GTK_IS_BUTTON(int /*long*/ obj);
912 public static final boolean GTK_IS_BUTTON(int /*long*/ obj) {
913     lock.lock();
914     try {
915         return _GTK_IS_BUTTON(obj);
916     } finally {
917         lock.unlock();
918     }
919 }
920 public static final native boolean _GTK_IS_CELL_RENDERER_PIXBUF(int /*long*/ obj);
921 public static final boolean GTK_IS_CELL_RENDERER_PIXBUF(int /*long*/ obj) {
922     lock.lock();
923     try {
924         return _GTK_IS_CELL_RENDERER_PIXBUF(obj);
925     } finally {
926         lock.unlock();
927     }
928 }
929 public static final native boolean _GTK_IS_CELL_RENDERER_TEXT(int /*long*/ obj);
930 public static final boolean GTK_IS_CELL_RENDERER_TEXT(int /*long*/ obj) {
931     lock.lock();
932     try {
933         return _GTK_IS_CELL_RENDERER_TEXT(obj);
934     } finally {
935         lock.unlock();
936     }
937 }
938 public static final native boolean _GTK_IS_CONTAINER(int /*long*/ obj);
939 public static final boolean GTK_IS_CONTAINER(int /*long*/ obj) {
940     lock.lock();
941     try {
942         return _GTK_IS_CONTAINER(obj);
943     } finally {
944         lock.unlock();
945     }
946 }
947 public static final native boolean _GTK_IS_IMAGE_MENU_ITEM(int /*long*/ obj);
948 public static final boolean GTK_IS_IMAGE_MENU_ITEM(int /*long*/ obj) {
949     lock.lock();
950     try {
951         return _GTK_IS_IMAGE_MENU_ITEM(obj);
952     } finally {
953         lock.unlock();
954     }
955 }
956 public static final native int /*long*/ _GTK_STOCK_CANCEL();
957 public static final int /*long*/ GTK_STOCK_CANCEL() {
958     lock.lock();
959     try {
960         return _GTK_STOCK_CANCEL();
961     } finally {
962         lock.unlock();
963     }
964 }
965 public static final native int /*long*/ _GTK_STOCK_OK();
966 public static final int /*long*/ GTK_STOCK_OK() {
967     lock.lock();
968     try {
969         return _GTK_STOCK_OK();
970     } finally {
971         lock.unlock();
972     }
973 }
974 public static final native int /*long*/ _GTK_TYPE_FIXED();
975 public static final int /*long*/ GTK_TYPE_FIXED() {
976     lock.lock();
977     try {
978         return _GTK_TYPE_FIXED();
979     } finally {
980         lock.unlock();
981     }
982 }
983 public static final native int _GTK_WIDGET_FLAGS(int /*long*/ wid);
984 public static final int GTK_WIDGET_FLAGS(int /*long*/ wid) {
985     lock.lock();
986     try {
987         return _GTK_WIDGET_FLAGS(wid);
988     } finally {
989         lock.unlock();
990     }
991 }
992 public static final native int _GTK_WIDGET_STATE(int /*long*/ wid);
993 public static final int GTK_WIDGET_STATE(int /*long*/ wid) {
994     lock.lock();
995     try {
996         return _GTK_WIDGET_STATE(wid);
997     } finally {
998         lock.unlock();
999     }
1000}
1001public static final native boolean _GTK_WIDGET_HAS_DEFAULT(int /*long*/ wid);
1002public static final boolean GTK_WIDGET_HAS_DEFAULT(int /*long*/ wid) {
1003    lock.lock();
1004    try {
1005        return _GTK_WIDGET_HAS_DEFAULT(wid);
1006    } finally {
1007        lock.unlock();
1008    }
1009}
1010public static final native boolean _GTK_WIDGET_HAS_FOCUS(int /*long*/ wid);
1011public static final boolean GTK_WIDGET_HAS_FOCUS(int /*long*/ wid) {
1012    lock.lock();
1013    try {
1014        return _GTK_WIDGET_HAS_FOCUS(wid);
1015    } finally {
1016        lock.unlock();
1017    }
1018}
1019public static final native boolean _GTK_WIDGET_IS_SENSITIVE(int /*long*/ wid);
1020public static final boolean GTK_WIDGET_IS_SENSITIVE(int /*long*/ wid) {
1021    lock.lock();
1022    try {
1023        return _GTK_WIDGET_IS_SENSITIVE(wid);
1024    } finally {
1025        lock.unlock();
1026    }
1027}
1028public static final native boolean _GTK_WIDGET_MAPPED(int /*long*/ wid);
1029public static final boolean GTK_WIDGET_MAPPED(int /*long*/ wid) {
1030    lock.lock();
1031    try {
1032        return _GTK_WIDGET_MAPPED(wid);
1033    } finally {
1034        lock.unlock();
1035    }
1036}
1037public static final native boolean _GTK_WIDGET_SENSITIVE(int /*long*/ wid);
1038public static final boolean GTK_WIDGET_SENSITIVE(int /*long*/ wid) {
1039    lock.lock();
1040    try {
1041        return _GTK_WIDGET_SENSITIVE(wid);
1042    } finally {
1043        lock.unlock();
1044    }
1045}
1046public static final native void _GTK_WIDGET_SET_FLAGS(int /*long*/ wid, int flag);
1047public static final void GTK_WIDGET_SET_FLAGS(int /*long*/ wid, int flag) {
1048    lock.lock();
1049    try {
1050        _GTK_WIDGET_SET_FLAGS(wid, flag);
1051    } finally {
1052        lock.unlock();
1053    }
1054}
1055public static final native void _GTK_WIDGET_UNSET_FLAGS(int /*long*/ wid, int flag);
1056public static final void GTK_WIDGET_UNSET_FLAGS(int /*long*/ wid, int flag) {
1057    lock.lock();
1058    try {
1059        _GTK_WIDGET_UNSET_FLAGS(wid, flag);
1060    } finally {
1061        lock.unlock();
1062    }
1063}
1064public static final native boolean _GTK_WIDGET_VISIBLE(int /*long*/ wid);
1065public static final boolean GTK_WIDGET_VISIBLE(int /*long*/ wid) {
1066    lock.lock();
1067    try {
1068        return _GTK_WIDGET_VISIBLE(wid);
1069    } finally {
1070        lock.unlock();
1071    }
1072}
1073public static final native int /*long*/ _G_OBJECT_CLASS (int /*long*/ klass);
1074public static final int /*long*/ G_OBJECT_CLASS (int /*long*/ klass) {
1075    lock.lock();
1076    try {
1077        return _G_OBJECT_CLASS(klass);
1078    } finally {
1079        lock.unlock();
1080    }
1081}
1082public static final native int /*long*/ _G_OBJECT_GET_CLASS (int /*long*/ object);
1083public static final int /*long*/ G_OBJECT_GET_CLASS (int /*long*/ object) {
1084    lock.lock();
1085    try {
1086        return _G_OBJECT_GET_CLASS(object);
1087    } finally {
1088        lock.unlock();
1089    }
1090}
1091public static final native int /*long*/ _G_TYPE_BOOLEAN();
1092public static final int /*long*/ G_TYPE_BOOLEAN() {
1093    lock.lock();
1094    try {
1095        return _G_TYPE_BOOLEAN();
1096    } finally {
1097        lock.unlock();
1098    }
1099}
1100public static final native int /*long*/ _G_TYPE_INT();
1101public static final int /*long*/ G_TYPE_INT() {
1102    lock.lock();
1103    try {
1104        return _G_TYPE_INT();
1105    } finally {
1106        lock.unlock();
1107    }
1108}
1109public static final native int /*long*/ _G_OBJECT_TYPE (int /*long*/ instance);
1110public static final int /*long*/ G_OBJECT_TYPE (int /*long*/ instance) {
1111    lock.lock();
1112    try {
1113        return _G_OBJECT_TYPE(instance);
1114    } finally {
1115        lock.unlock();
1116    }
1117}
1118public static final native int /*long*/ _G_TYPE_STRING();
1119public static final int /*long*/ G_TYPE_STRING() {
1120    lock.lock();
1121    try {
1122        return _G_TYPE_STRING();
1123    } finally {
1124        lock.unlock();
1125    }
1126}
1127public static final native int _PANGO_PIXELS(int dimension);
1128public static final int PANGO_PIXELS(int dimension) {
1129    lock.lock();
1130    try {
1131        return _PANGO_PIXELS(dimension);
1132    } finally {
1133        lock.unlock();
1134    }
1135}
1136public static final native int /*long*/ _PANGO_TYPE_FONT_DESCRIPTION();
1137public static final int /*long*/ PANGO_TYPE_FONT_DESCRIPTION() {
1138    lock.lock();
1139    try {
1140        return _PANGO_TYPE_FONT_DESCRIPTION();
1141    } finally {
1142        lock.unlock();
1143    }
1144}
1145public static final native boolean _g_main_context_acquire(int /*long*/ context);
1146public static final boolean g_main_context_acquire(int /*long*/ context) {
1147    lock.lock();
1148    try {
1149        return _g_main_context_acquire(context);
1150    } finally {
1151        lock.unlock();
1152    }
1153}
1154public static final native int _g_main_context_check(int /*long*/ context, int max_priority, int /*long*/ fds, int n_fds);
1155public static final int g_main_context_check(int /*long*/ context, int max_priority, int /*long*/ fds, int n_fds) {
1156    lock.lock();
1157    try {
1158        return _g_main_context_check(context, max_priority, fds, n_fds);
1159    } finally {
1160        lock.unlock();
1161    }
1162}
1163public static final native int /*long*/ _g_main_context_default();
1164public static final int /*long*/ g_main_context_default() {
1165    lock.lock();
1166    try {
1167        return _g_main_context_default();
1168    } finally {
1169        lock.unlock();
1170    }
1171}
1172public static final native boolean _g_main_context_iteration(int /*long*/ context, boolean may_block);
1173public static final boolean g_main_context_iteration(int /*long*/ context, boolean may_block) {
1174    lock.lock();
1175    try {
1176        return _g_main_context_iteration(context, may_block);
1177    } finally {
1178        lock.unlock();
1179    }
1180}
1181public static final native boolean _g_main_context_pending(int /*long*/ context);
1182public static final boolean g_main_context_pending(int /*long*/ context) {
1183    lock.lock();
1184    try {
1185        return _g_main_context_pending(context);
1186    } finally {
1187        lock.unlock();
1188    }
1189}
1190public static final native int /*long*/ _g_main_context_get_poll_func(int /*long*/ context);
1191public static final int /*long*/ g_main_context_get_poll_func(int /*long*/ context) {
1192    lock.lock();
1193    try {
1194        return _g_main_context_get_poll_func(context);
1195    } finally {
1196        lock.unlock();
1197    }
1198}
1199public static final native boolean _g_main_context_prepare(int /*long*/ context, int[] priority);
1200public static final boolean g_main_context_prepare(int /*long*/ context, int[] priority) {
1201    lock.lock();
1202    try {
1203        return _g_main_context_prepare(context, priority);
1204    } finally {
1205        lock.unlock();
1206    }
1207}
1208public static final native int _g_main_context_query(int /*long*/ context, int max_priority, int[] timeout_, int /*long*/ fds, int n_fds);
1209public static final int g_main_context_query(int /*long*/ context, int max_priority, int[] timeout_, int /*long*/ fds, int n_fds) {
1210    lock.lock();
1211    try {
1212        return _g_main_context_query(context, max_priority, timeout_, fds, n_fds);
1213    } finally {
1214        lock.unlock();
1215    }
1216}
1217public static final native void _g_main_context_release(int /*long*/ context);
1218public static final void g_main_context_release(int /*long*/ context) {
1219    lock.lock();
1220    try {
1221        _g_main_context_release(context);
1222    } finally {
1223        lock.unlock();
1224    }
1225}
1226public static final native void g_main_context_wakeup(int /*long*/ context);
1227public static final native int /*long*/ _g_filename_to_utf8(int /*long*/ opsysstring, int /*long*/ len, int /*long*/[] bytes_read, int /*long*/[] bytes_written, int /*long*/[] error);
1228public static final int /*long*/ g_filename_to_utf8(int /*long*/ opsysstring, int /*long*/ len, int /*long*/[] bytes_read, int /*long*/[] bytes_written, int /*long*/[] error) {
1229    lock.lock();
1230    try {
1231        return _g_filename_to_utf8(opsysstring, len, bytes_read, bytes_written, error);
1232    } finally {
1233        lock.unlock();
1234    }
1235}
1236public static final native int /*long*/ _g_filename_to_uri(int /*long*/ filename, int /*long*/ hostname, int /*long*/[] error);
1237public static final int /*long*/ g_filename_to_uri(int /*long*/ filename, int /*long*/ hostname, int /*long*/[] error) {
1238    lock.lock();
1239    try {
1240        return _g_filename_to_uri(filename, hostname, error);
1241    } finally {
1242        lock.unlock();
1243    }
1244}
1245public static final native int /*long*/ _g_filename_from_utf8(int /*long*/ opsysstring, int /*long*/ len, int /*long*/[] bytes_read, int /*long*/[] bytes_written, int /*long*/[] error);
1246public static final int /*long*/ g_filename_from_utf8(int /*long*/ opsysstring, int /*long*/ len, int /*long*/[] bytes_read, int /*long*/[] bytes_written, int /*long*/[] error) {
1247    lock.lock();
1248    try {
1249        return _g_filename_from_utf8(opsysstring, len, bytes_read, bytes_written, error);
1250    } finally {
1251        lock.unlock();
1252    }
1253}
1254public static final native int /*long*/ _g_filename_from_uri(int /*long*/ uri, int /*long*/[] hostname, int /*long*/[] error);
1255public static final int /*long*/ g_filename_from_uri(int /*long*/ uri, int /*long*/[] hostname, int /*long*/[] error) {
1256    lock.lock();
1257    try {
1258        return _g_filename_from_uri(uri, hostname, error);
1259    } finally {
1260        lock.unlock();
1261    }
1262}
1263public static final native void _g_free(int /*long*/ mem);
1264public static final void g_free(int /*long*/ mem) {
1265    lock.lock();
1266    try {
1267        _g_free(mem);
1268    } finally {
1269        lock.unlock();
1270    }
1271}
1272public static final native int /*long*/ _g_list_append(int /*long*/ list, int /*long*/ data);
1273public static final int /*long*/ g_list_append(int /*long*/ list, int /*long*/ data) {
1274    lock.lock();
1275    try {
1276        return _g_list_append(list, data);
1277    } finally {
1278        lock.unlock();
1279    }
1280}
1281public static final native int /*long*/ _g_list_data(int /*long*/ list);
1282public static final int /*long*/ g_list_data(int /*long*/ list) {
1283    lock.lock();
1284    try {
1285        return _g_list_data(list);
1286    } finally {
1287        lock.unlock();
1288    }
1289}
1290public static final native void _g_list_free(int /*long*/ list);
1291public static final void g_list_free(int /*long*/ list) {
1292    lock.lock();
1293    try {
1294        _g_list_free(list);
1295    } finally {
1296        lock.unlock();
1297    }
1298}
1299public static final native void _g_list_free_1(int /*long*/ list);
1300public static final void g_list_free_1(int /*long*/ list) {
1301    lock.lock();
1302    try {
1303        _g_list_free_1(list);
1304    } finally {
1305        lock.unlock();
1306    }
1307}
1308public static final native int _g_list_length(int /*long*/ list);
1309public static final int g_list_length(int /*long*/ list) {
1310    lock.lock();
1311    try {
1312        return _g_list_length(list);
1313    } finally {
1314        lock.unlock();
1315    }
1316}
1317public static final native void _g_list_set_next(int /*long*/ list, int /*long*/ llist);
1318public static final void g_list_set_next(int /*long*/ list, int /*long*/ llist) {
1319    lock.lock();
1320    try {
1321        _g_list_set_next(list, llist);
1322    } finally {
1323        lock.unlock();
1324    }
1325}
1326public static final native int /*long*/ _g_list_next(int /*long*/ list);
1327public static final int /*long*/ g_list_next(int /*long*/ list) {
1328    lock.lock();
1329    try {
1330        return _g_list_next(list);
1331    } finally {
1332        lock.unlock();
1333    }
1334}
1335public static final native int /*long*/ _g_list_nth(int /*long*/ list, int n);
1336public static final int /*long*/ g_list_nth(int /*long*/ list, int n) {
1337    lock.lock();
1338    try {
1339        return _g_list_nth(list, n);
1340    } finally {
1341        lock.unlock();
1342    }
1343}
1344public static final native int /*long*/ _g_list_nth_data(int /*long*/ list, int n);
1345public static final int /*long*/ g_list_nth_data(int /*long*/ list, int n) {
1346    lock.lock();
1347    try {
1348        return _g_list_nth_data(list, n);
1349    } finally {
1350        lock.unlock();
1351    }
1352}
1353public static final native int /*long*/ _g_list_prepend(int /*long*/ list, int /*long*/ data);
1354public static final int /*long*/ g_list_prepend(int /*long*/ list, int /*long*/ data) {
1355    lock.lock();
1356    try {
1357        return _g_list_prepend(list, data);
1358    } finally {
1359        lock.unlock();
1360    }
1361}
1362public static final native void _g_list_set_previous(int /*long*/ list, int /*long*/ llist);
1363public static final void g_list_set_previous(int /*long*/ list, int /*long*/ llist) {
1364    lock.lock();
1365    try {
1366        _g_list_set_previous(list, llist);
1367    } finally {
1368        lock.unlock();
1369    }
1370}
1371public static final native int /*long*/ _g_list_previous(int /*long*/ list);
1372public static final int /*long*/ g_list_previous(int /*long*/ list) {
1373    lock.lock();
1374    try {
1375        return _g_list_previous(list);
1376    } finally {
1377        lock.unlock();
1378    }
1379}
1380public static final native int /*long*/ _g_list_remove_link(int /*long*/ list, int /*long*/ link);
1381public static final int /*long*/ g_list_remove_link(int /*long*/ list, int /*long*/ link) {
1382    lock.lock();
1383    try {
1384        return _g_list_remove_link(list, link);
1385    } finally {
1386        lock.unlock();
1387    }
1388}
1389public static final native int /*long*/ _g_list_reverse(int /*long*/ list);
1390public static final int /*long*/ g_list_reverse(int /*long*/ list) {
1391    lock.lock();
1392    try {
1393        return _g_list_reverse(list);
1394    } finally {
1395        lock.unlock();
1396    }
1397}
1398public static final native int /*long*/ _g_locale_from_utf8(int /*long*/ utf8string, int /*long*/ len, int /*long*/[] bytes_read, int /*long*/[] bytes_written, int /*long*/[] error);
1399public static final int /*long*/ g_locale_from_utf8(int /*long*/ utf8string, int /*long*/ len, int /*long*/[] bytes_read, int /*long*/[] bytes_written, int /*long*/[] error) {
1400    lock.lock();
1401    try {
1402        return _g_locale_from_utf8(utf8string, len, bytes_read, bytes_written, error);
1403    } finally {
1404        lock.unlock();
1405    }
1406}
1407public static final native int /*long*/ _g_locale_to_utf8(int /*long*/ opsysstring, int /*long*/ len, int /*long*/[] bytes_read, int /*long*/[] bytes_written, int /*long*/[] error);
1408public static final int /*long*/ g_locale_to_utf8(int /*long*/ opsysstring, int /*long*/ len, int /*long*/[] bytes_read, int /*long*/[] bytes_written, int /*long*/[] error) {
1409    lock.lock();
1410    try {
1411        return _g_locale_to_utf8(opsysstring, len, bytes_read, bytes_written, error);
1412    } finally {
1413        lock.unlock();
1414    }
1415}
1416public static final native void _g_log_default_handler(int /*long*/ log_domain, int log_levels, int /*long*/ message, int /*long*/ unused_data);
1417public static final void g_log_default_handler(int /*long*/ log_domain, int log_levels, int /*long*/ message, int /*long*/ unused_data) {
1418    lock.lock();
1419    try {
1420        _g_log_default_handler(log_domain, log_levels, message, unused_data);
1421    } finally {
1422        lock.unlock();
1423    }
1424}
1425public static final native void _g_log_remove_handler(byte[] log_domain, int handler_id);
1426public static final void g_log_remove_handler(byte[] log_domain, int handler_id) {
1427    lock.lock();
1428    try {
1429        _g_log_remove_handler(log_domain, handler_id);
1430    } finally {
1431        lock.unlock();
1432    }
1433}
1434public static final native int _g_log_set_handler(byte[] log_domain, int log_levels, int /*long*/ log_func, int /*long*/ user_data);
1435public static final int g_log_set_handler(byte[] log_domain, int log_levels, int /*long*/ log_func, int /*long*/ user_data) {
1436    lock.lock();
1437    try {
1438        return _g_log_set_handler(log_domain, log_levels, log_func, user_data);
1439    } finally {
1440        lock.unlock();
1441    }
1442}
1443public static final native int /*long*/ _g_malloc(int /*long*/ size);
1444public static final int /*long*/ g_malloc(int /*long*/ size) {
1445    lock.lock();
1446    try {
1447        return _g_malloc(size);
1448    } finally {
1449        lock.unlock();
1450    }
1451}
1452public static final native void _g_object_get(int /*long*/ object, byte[] first_property_name, int[] value, int /*long*/ terminator);
1453public static final void g_object_get(int /*long*/ object, byte[] first_property_name, int[] value, int /*long*/ terminator) {
1454    lock.lock();
1455    try {
1456        _g_object_get(object, first_property_name, value, terminator);
1457    } finally {
1458        lock.unlock();
1459    }
1460}
1461public static final native int /*long*/ _g_object_get_qdata(int /*long*/ object, int quark);
1462public static final int /*long*/ g_object_get_qdata(int /*long*/ object, int quark) {
1463    lock.lock();
1464    try {
1465        return _g_object_get_qdata(object, quark);
1466    } finally {
1467        lock.unlock();
1468    }
1469}
1470public static final native int /*long*/ _g_object_new (int /*long*/ type, int /*long*/ first_property_name);
1471public static final int /*long*/ g_object_new (int /*long*/ type, int /*long*/ first_property_name) {
1472    lock.lock();
1473    try {
1474        return _g_object_new(type, first_property_name);
1475    } finally {
1476        lock.unlock();
1477    }
1478}
1479public static final native int /*long*/ _g_object_ref(int /*long*/ object);
1480public static final int /*long*/ g_object_ref(int /*long*/ object) {
1481    lock.lock();
1482    try {
1483        return _g_object_ref(object);
1484    } finally {
1485        lock.unlock();
1486    }
1487}
1488public static final native void _g_object_set(int /*long*/ object, byte[] first_property_name, boolean data, int /*long*/ terminator);
1489public static final void g_object_set(int /*long*/ object, byte[] first_property_name, boolean data, int /*long*/ terminator) {
1490    lock.lock();
1491    try {
1492        _g_object_set(object, first_property_name, data, terminator);
1493    } finally {
1494        lock.unlock();
1495    }
1496}
1497public static final native void _g_object_set(int /*long*/ object, byte[] first_property_name, int data, int /*long*/ terminator);
1498public static final void g_object_set(int /*long*/ object, byte[] first_property_name, int data, int /*long*/ terminator) {
1499    lock.lock();
1500    try {
1501        _g_object_set(object, first_property_name, data, terminator);
1502    } finally {
1503        lock.unlock();
1504    }
1505}
1506public static final native void _g_object_set(int /*long*/ object, byte[] first_property_name, float data, int /*long*/ terminator);
1507public static final void g_object_set(int /*long*/ object, byte[] first_property_name, float data, int /*long*/ terminator) {
1508    lock.lock();
1509    try {
1510        _g_object_set(object, first_property_name, data, terminator);
1511    } finally {
1512        lock.unlock();
1513    }
1514}
1515public static final native void _g_object_set(int /*long*/ object, byte[] first_property_name, long data, int /*long*/ terminator);
1516public static final void g_object_set(int /*long*/ object, byte[] first_property_name, long data, int /*long*/ terminator) {
1517    lock.lock();
1518    try {
1519        _g_object_set(object, first_property_name, data, terminator);
1520    } finally {
1521        lock.unlock();
1522    }
1523}
1524public static final native void _g_object_set_qdata(int /*long*/ object, int quark, int /*long*/ data);
1525public static final void g_object_set_qdata(int /*long*/ object, int quark, int /*long*/ data) {
1526    lock.lock();
1527    try {
1528        _g_object_set_qdata(object, quark, data);
1529    } finally {
1530        lock.unlock();
1531    }
1532}
1533public static final native void _g_object_unref(int /*long*/ object);
1534public static final void g_object_unref(int /*long*/ object) {
1535    lock.lock();
1536    try {
1537        _g_object_unref(object);
1538    } finally {
1539        lock.unlock();
1540    }
1541}
1542public static final native int _g_quark_from_string(byte[] string);
1543public static final int g_quark_from_string(byte[] string) {
1544    lock.lock();
1545    try {
1546        return _g_quark_from_string(string);
1547    } finally {
1548        lock.unlock();
1549    }
1550}
1551public static final native void _g_set_prgname(byte[] prgname);
1552public static final void g_set_prgname(byte[] prgname) {
1553    lock.lock();
1554    try {
1555        _g_set_prgname(prgname);
1556    } finally {
1557        lock.unlock();
1558    }
1559}
1560public static final native int _g_signal_connect(int /*long*/ instance, byte[] detailed_signal, int /*long*/ proc, int /*long*/ data);
1561public static final int g_signal_connect(int /*long*/ instance, byte[] detailed_signal, int /*long*/ proc, int /*long*/ data) {
1562    lock.lock();
1563    try {
1564        return _g_signal_connect(instance, detailed_signal, proc, data);
1565    } finally {
1566        lock.unlock();
1567    }
1568}
1569public static final native int _g_signal_connect_after(int /*long*/ instance, byte[] detailed_signal, int /*long*/ proc, int /*long*/ data);
1570public static final int g_signal_connect_after(int /*long*/ instance, byte[] detailed_signal, int /*long*/ proc, int /*long*/ data) {
1571    lock.lock();
1572    try {
1573        return _g_signal_connect_after(instance, detailed_signal, proc, data);
1574    } finally {
1575        lock.unlock();
1576    }
1577}
1578public static final native void _g_signal_emit_by_name(int /*long*/ instance, byte[] detailed_signal);
1579public static final void g_signal_emit_by_name(int /*long*/ instance, byte[] detailed_signal) {
1580    lock.lock();
1581    try {
1582        _g_signal_emit_by_name(instance, detailed_signal);
1583    } finally {
1584        lock.unlock();
1585    }
1586}
1587public static final native void _g_signal_emit_by_name(int /*long*/ instance, byte[] detailed_signal, int /*long*/ data);
1588public static final void g_signal_emit_by_name(int /*long*/ instance, byte[] detailed_signal, int /*long*/ data) {
1589    lock.lock();
1590    try {
1591        _g_signal_emit_by_name(instance, detailed_signal, data);
1592    } finally {
1593        lock.unlock();
1594    }
1595}
1596public static final native void _g_signal_emit_by_name(int /*long*/ instance, byte[] detailed_signal, int /*long*/ data1, int /*long*/ data2);
1597public static final void g_signal_emit_by_name(int /*long*/ instance, byte[] detailed_signal, int /*long*/ data1, int /*long*/ data2) {
1598    lock.lock();
1599    try {
1600        _g_signal_emit_by_name(instance, detailed_signal, data1, data2);
1601    } finally {
1602        lock.unlock();
1603    }
1604}
1605public static final native void _g_signal_emit_by_name(int /*long*/ instance, byte[] detailed_signal, byte [] data);
1606public static final void g_signal_emit_by_name(int /*long*/ instance, byte[] detailed_signal, byte [] data) {
1607    lock.lock();
1608    try {
1609        _g_signal_emit_by_name(instance, detailed_signal, data);
1610    } finally {
1611        lock.unlock();
1612    }
1613}
1614public static final native void _g_signal_handler_disconnect(int /*long*/ instance, int handler_id);
1615public static final void g_signal_handler_disconnect(int /*long*/ instance, int handler_id) {
1616    lock.lock();
1617    try {
1618        _g_signal_handler_disconnect(instance, handler_id);
1619    } finally {
1620        lock.unlock();
1621    }
1622}
1623public static final native int _g_signal_handlers_block_matched(int /*long*/ instance, int mask, int signal_id, int detail, int /*long*/ closure, int /*long*/ func, int /*long*/ data);
1624public static final int g_signal_handlers_block_matched(int /*long*/ instance, int mask, int signal_id, int detail, int /*long*/ closure, int /*long*/ func, int /*long*/ data) {
1625    lock.lock();
1626    try {
1627        return _g_signal_handlers_block_matched(instance, mask, signal_id, detail, closure, func, data);
1628    } finally {
1629        lock.unlock();
1630    }
1631}
1632public static final native int _g_signal_handlers_disconnect_matched(int /*long*/ instance, int mask, int signal_id, int detail, int /*long*/ closure, int /*long*/ func, int /*long*/ data);
1633public static final int g_signal_handlers_disconnect_matched(int /*long*/ instance, int mask, int signal_id, int detail, int /*long*/ closure, int /*long*/ func, int /*long*/ data) {
1634    lock.lock();
1635    try {
1636        return _g_signal_handlers_disconnect_matched(instance, mask, signal_id, detail, closure, func, data);
1637    } finally {
1638        lock.unlock();
1639    }
1640}
1641public static final native int _g_signal_handlers_unblock_matched(int /*long*/ instance, int mask, int signal_id, int detail, int /*long*/ closure, int /*long*/ func, int /*long*/ data);
1642public static final int g_signal_handlers_unblock_matched(int /*long*/ instance, int mask, int signal_id, int detail, int /*long*/ closure, int /*long*/ func, int /*long*/ data) {
1643    lock.lock();
1644    try {
1645        return _g_signal_handlers_unblock_matched(instance, mask, signal_id, detail, closure, func, data);
1646    } finally {
1647        lock.unlock();
1648    }
1649}
1650public static final native int _g_signal_lookup (byte[] name, int /*long*/ itype);
1651public static final int g_signal_lookup (byte[] name, int /*long*/ itype) {
1652    lock.lock();
1653    try {
1654        return _g_signal_lookup(name, itype);
1655    } finally {
1656        lock.unlock();
1657    }
1658}
1659public static final native void _g_signal_stop_emission_by_name(int /*long*/ instance, byte[] detailed_signal);
1660public static final void g_signal_stop_emission_by_name(int /*long*/ instance, byte[] detailed_signal) {
1661    lock.lock();
1662    try {
1663        _g_signal_stop_emission_by_name(instance, detailed_signal);
1664    } finally {
1665        lock.unlock();
1666    }
1667}
1668public static final native int /*long*/ _g_slist_data (int /*long*/ list);
1669public static final int /*long*/ g_slist_data (int /*long*/ list) {
1670    lock.lock();
1671    try {
1672        return _g_slist_data(list);
1673    } finally {
1674        lock.unlock();
1675    }
1676}
1677public static final native void _g_slist_free (int /*long*/ list);
1678public static final void g_slist_free (int /*long*/ list) {
1679    lock.lock();
1680    try {
1681        _g_slist_free(list);
1682    } finally {
1683        lock.unlock();
1684    }
1685}
1686public static final native int /*long*/ _g_slist_next (int /*long*/ list);
1687public static final int /*long*/ g_slist_next (int /*long*/ list) {
1688    lock.lock();
1689    try {
1690        return _g_slist_next(list);
1691    } finally {
1692        lock.unlock();
1693    }
1694}
1695public static final native int _g_slist_length (int /*long*/ list);
1696public static final int g_slist_length (int /*long*/ list) {
1697    lock.lock();
1698    try {
1699        return _g_slist_length(list);
1700    } finally {
1701        lock.unlock();
1702    }
1703}
1704public static final native void _g_strfreev(int /*long*/ string_array);
1705public static final void g_strfreev(int /*long*/ string_array) {
1706    lock.lock();
1707    try {
1708        _g_strfreev(string_array);
1709    } finally {
1710        lock.unlock();
1711    }
1712}
1713public static final native void _g_type_add_interface_static (int /*long*/ instance_type, int /*long*/ interface_type, int /*long*/ info);
1714public static final void g_type_add_interface_static (int /*long*/ instance_type, int /*long*/ interface_type, int /*long*/ info) {
1715    lock.lock();
1716    try {
1717        _g_type_add_interface_static(instance_type, interface_type, info);
1718    } finally {
1719        lock.unlock();
1720    }
1721}
1722public static final native int /*long*/ _g_type_class_peek (int /*long*/ g_class);
1723public static final int /*long*/ g_type_class_peek (int /*long*/ g_class) {
1724    lock.lock();
1725    try {
1726        return _g_type_class_peek(g_class);
1727    } finally {
1728        lock.unlock();
1729    }
1730}
1731public static final native int /*long*/ _g_type_class_peek_parent (int /*long*/ g_class);
1732public static final int /*long*/ g_type_class_peek_parent (int /*long*/ g_class) {
1733    lock.lock();
1734    try {
1735        return _g_type_class_peek_parent(g_class);
1736    } finally {
1737        lock.unlock();
1738    }
1739}
1740public static final native int /*long*/ _g_type_from_name (byte[] name);
1741public static final int /*long*/ g_type_from_name (byte[] name) {
1742    lock.lock();
1743    try {
1744        return _g_type_from_name(name);
1745    } finally {
1746        lock.unlock();
1747    }
1748}
1749public static final native int /*long*/ _g_type_interface_peek_parent (int /*long*/ iface);
1750public static final int /*long*/ g_type_interface_peek_parent (int /*long*/ iface) {
1751    lock.lock();
1752    try {
1753        return _g_type_interface_peek_parent(iface);
1754    } finally {
1755        lock.unlock();
1756    }
1757}
1758public static final native boolean _g_type_is_a (int /*long*/ type, int /*long*/ is_a_type);
1759public static final boolean g_type_is_a (int /*long*/ type, int /*long*/ is_a_type) {
1760    lock.lock();
1761    try {
1762        return _g_type_is_a(type, is_a_type);
1763    } finally {
1764        lock.unlock();
1765    }
1766}
1767public static final native int /*long*/ _g_type_name (int /*long*/ handle);
1768public static final int /*long*/ g_type_name (int /*long*/ handle) {
1769    lock.lock();
1770    try {
1771        return _g_type_name(handle);
1772    } finally {
1773        lock.unlock();
1774    }
1775}
1776public static final native int /*long*/ _g_type_parent (int /*long*/ type);
1777public static final int /*long*/ g_type_parent (int /*long*/ type) {
1778    lock.lock();
1779    try {
1780        return _g_type_parent(type);
1781    } finally {
1782        lock.unlock();
1783    }
1784}
1785public static final native void _g_type_query (int /*long*/ type, int /*long*/ query);
1786public static final void g_type_query (int /*long*/ type, int /*long*/ query) {
1787    lock.lock();
1788    try {
1789        _g_type_query(type, query);
1790    } finally {
1791        lock.unlock();
1792    }
1793}
1794public static final native int /*long*/ _g_type_register_static (int /*long*/ parent_type, byte[] type_name, int /*long*/ info, int flags);
1795public static final int /*long*/ g_type_register_static (int /*long*/ parent_type, byte[] type_name, int /*long*/ info, int flags) {
1796    lock.lock();
1797    try {
1798        return _g_type_register_static(parent_type, type_name, info, flags);
1799    } finally {
1800        lock.unlock();
1801    }
1802}
1803public static final native void _g_thread_init(int /*long*/ vtable);
1804public static final void g_thread_init(int /*long*/ vtable) {
1805    lock.lock();
1806    try {
1807        _g_thread_init(vtable);
1808    } finally {
1809        lock.unlock();
1810    }
1811}
1812public static final native boolean _g_thread_supported();
1813public static final boolean g_thread_supported() {
1814    lock.lock();
1815    try {
1816        return _g_thread_supported();
1817    } finally {
1818        lock.unlock();
1819    }
1820}
1821public static final native int /*long*/ _g_utf16_to_utf8(char[] str, int /*long*/ len, int /*long*/[] items_read, int /*long*/[] items_written, int /*long*/[] error);
1822public static final int /*long*/ g_utf16_to_utf8(char[] str, int /*long*/ len, int /*long*/[] items_read, int /*long*/[] items_written, int /*long*/[] error) {
1823    lock.lock();
1824    try {
1825        return _g_utf16_to_utf8(str, len, items_read, items_written, error);
1826    } finally {
1827        lock.unlock();
1828    }
1829}
1830public static final native int /*long*/ _g_utf8_offset_to_pointer(int /*long*/ str, int /*long*/ offset);
1831public static final int /*long*/ g_utf8_offset_to_pointer(int /*long*/ str, int /*long*/ offset) {
1832    lock.lock();
1833    try {
1834        return _g_utf8_offset_to_pointer(str, offset);
1835    } finally {
1836        lock.unlock();
1837    }
1838}
1839public static final native int /*long*/ _g_utf8_pointer_to_offset(int /*long*/ str, int /*long*/ pos);
1840public static final int /*long*/ g_utf8_pointer_to_offset(int /*long*/ str, int /*long*/ pos) {
1841    lock.lock();
1842    try {
1843        return _g_utf8_pointer_to_offset(str, pos);
1844    } finally {
1845        lock.unlock();
1846    }
1847}
1848public static final native int /*long*/ _g_utf8_strlen(int /*long*/ str, int /*long*/ max);
1849public static final int /*long*/ g_utf8_strlen(int /*long*/ str, int /*long*/ max) {
1850    lock.lock();
1851    try {
1852        return _g_utf8_strlen(str, max);
1853    } finally {
1854        lock.unlock();
1855    }
1856}
1857public static final native int /*long*/ _g_utf8_to_utf16(byte[] str, int /*long*/ len, int /*long*/[] items_read, int /*long*/[] items_written, int /*long*/[] error);
1858public static final int /*long*/ g_utf8_to_utf16(byte[] str, int /*long*/ len, int /*long*/[] items_read, int /*long*/[] items_written, int /*long*/[] error) {
1859    lock.lock();
1860    try {
1861        return _g_utf8_to_utf16(str, len, items_read, items_written, error);
1862    } finally {
1863        lock.unlock();
1864    }
1865}
1866public static final native int /*long*/ _g_utf8_to_utf16(int /*long*/ str, int /*long*/ len, int /*long*/[] items_read, int /*long*/[] items_written, int /*long*/[] error);
1867public static final int /*long*/ g_utf8_to_utf16(int /*long*/ str, int /*long*/ len, int /*long*/[] items_read, int /*long*/[] items_written, int /*long*/[] error) {
1868    lock.lock();
1869    try {
1870        return _g_utf8_to_utf16(str, len, items_read, items_written, error);
1871    } finally {
1872        lock.unlock();
1873    }
1874}
1875public static final native int /*long*/ _gdk_atom_intern(byte[] atom_name, boolean only_if_exists);
1876public static final int /*long*/ gdk_atom_intern(byte[] atom_name, boolean only_if_exists) {
1877    lock.lock();
1878    try {
1879        return _gdk_atom_intern(atom_name, only_if_exists);
1880    } finally {
1881        lock.unlock();
1882    }
1883}
1884public static final native int /*long*/ _gdk_atom_name(int /*long*/ atom);
1885public static final int /*long*/ gdk_atom_name(int /*long*/ atom) {
1886    lock.lock();
1887    try {
1888        return _gdk_atom_name(atom);
1889    } finally {
1890        lock.unlock();
1891    }
1892}
1893public static final native void _gdk_beep();
1894public static final void gdk_beep() {
1895    lock.lock();
1896    try {
1897        _gdk_beep();
1898    } finally {
1899        lock.unlock();
1900    }
1901}
1902public static final native int /*long*/ _gdk_bitmap_create_from_data(int /*long*/ window, byte[] data, int width, int height);
1903public static final int /*long*/ gdk_bitmap_create_from_data(int /*long*/ window, byte[] data, int width, int height) {
1904    lock.lock();
1905    try {
1906        return _gdk_bitmap_create_from_data(window, data, width, height);
1907    } finally {
1908        lock.unlock();
1909    }
1910}
1911public static final native boolean _gdk_color_white(int /*long*/ colormap, GdkColor color);
1912public static final boolean gdk_color_white(int /*long*/ colormap, GdkColor color) {
1913    lock.lock();
1914    try {
1915        return _gdk_color_white(colormap, color);
1916    } finally {
1917        lock.unlock();
1918    }
1919}
1920public static final native boolean _gdk_colormap_alloc_color(int /*long*/ colormap, GdkColor color, boolean writeable, boolean best_match);
1921public static final boolean gdk_colormap_alloc_color(int /*long*/ colormap, GdkColor color, boolean writeable, boolean best_match) {
1922    lock.lock();
1923    try {
1924        return _gdk_colormap_alloc_color(colormap, color, writeable, best_match);
1925    } finally {
1926        lock.unlock();
1927    }
1928}
1929public static final native void _gdk_colormap_free_colors(int /*long*/ colormap, GdkColor colors, int ncolors);
1930public static final void gdk_colormap_free_colors(int /*long*/ colormap, GdkColor colors, int ncolors) {
1931    lock.lock();
1932    try {
1933        _gdk_colormap_free_colors(colormap, colors, ncolors);
1934    } finally {
1935        lock.unlock();
1936    }
1937}
1938public static final native int /*long*/ _gdk_colormap_get_system();
1939public static final int /*long*/ gdk_colormap_get_system() {
1940    lock.lock();
1941    try {
1942        return _gdk_colormap_get_system();
1943    } finally {
1944        lock.unlock();
1945    }
1946}
1947public static final native void _gdk_colormap_query_color(int /*long*/ colormap, int /*long*/ pixel, GdkColor result);
1948public static final void gdk_colormap_query_color(int /*long*/ colormap, int /*long*/ pixel, GdkColor result) {
1949    lock.lock();
1950    try {
1951        _gdk_colormap_query_color(colormap, pixel, result);
1952    } finally {
1953        lock.unlock();
1954    }
1955}
1956public static final native void _gdk_cursor_destroy(int /*long*/ cursor);
1957public static final void gdk_cursor_destroy(int /*long*/ cursor) {
1958    lock.lock();
1959    try {
1960        _gdk_cursor_destroy(cursor);
1961    } finally {
1962        lock.unlock();
1963    }
1964}
1965public static final native int /*long*/ _gdk_cursor_new(int /*long*/ cursor_type);
1966public static final int /*long*/ gdk_cursor_new(int /*long*/ cursor_type) {
1967    lock.lock();
1968    try {
1969        return _gdk_cursor_new(cursor_type);
1970    } finally {
1971        lock.unlock();
1972    }
1973}
1974public static final native int /*long*/ _gdk_cursor_new_from_pixmap(int /*long*/ source, int /*long*/ mask, GdkColor fg, GdkColor bg, int x, int y);
1975public static final int /*long*/ gdk_cursor_new_from_pixmap(int /*long*/ source, int /*long*/ mask, GdkColor fg, GdkColor bg, int x, int y) {
1976    lock.lock();
1977    try {
1978        return _gdk_cursor_new_from_pixmap(source, mask, fg, bg, x, y);
1979    } finally {
1980        lock.unlock();
1981    }
1982}
1983public static final native void _gdk_drag_status(int /*long*/ context, int action, int time);
1984public static final void gdk_drag_status(int /*long*/ context, int action, int time) {
1985    lock.lock();
1986    try {
1987        _gdk_drag_status(context, action, time);
1988    } finally {
1989        lock.unlock();
1990    }
1991}
1992public static final native void _gdk_draw_arc(int /*long*/ drawable, int /*long*/ gc, int filled, int x, int y, int width, int height, int angle1, int angle2);
1993public static final void gdk_draw_arc(int /*long*/ drawable, int /*long*/ gc, int filled, int x, int y, int width, int height, int angle1, int angle2) {
1994    lock.lock();
1995    try {
1996        _gdk_draw_arc(drawable, gc, filled, x, y, width, height, angle1, angle2);
1997    } finally {
1998        lock.unlock();
1999    }
2000}
2001public static final native void _gdk_draw_drawable(int /*long*/ drawable, int /*long*/ gc, int /*long*/ src, int xsrc, int ysrc, int xdest, int ydest, int width, int height);
2002public static final void gdk_draw_drawable(int /*long*/ drawable, int /*long*/ gc, int /*long*/ src, int xsrc, int ysrc, int xdest, int ydest, int width, int height) {
2003    lock.lock();
2004    try {
2005        _gdk_draw_drawable(drawable, gc, src, xsrc, ysrc, xdest, ydest, width, height);
2006    } finally {
2007        lock.unlock();
2008    }
2009}
2010public static final native void _gdk_draw_layout(int /*long*/ drawable, int /*long*/ gc, int x, int y, int /*long*/ layout);
2011public static final void gdk_draw_layout(int /*long*/ drawable, int /*long*/ gc, int x, int y, int /*long*/ layout) {
2012    lock.lock();
2013    try {
2014        _gdk_draw_layout(drawable, gc, x, y, layout);
2015    } finally {
2016        lock.unlock();
2017    }
2018}
2019public static final native void _gdk_draw_layout_with_colors(int /*long*/ drawable, int /*long*/ gc, int x, int y, int /*long*/ layout, GdkColor foreground, GdkColor background);
2020public static final void gdk_draw_layout_with_colors(int /*long*/ drawable, int /*long*/ gc, int x, int y, int /*long*/ layout, GdkColor foreground, GdkColor background) {
2021    lock.lock();
2022    try {
2023        _gdk_draw_layout_with_colors(drawable, gc, x, y, layout, foreground, background);
2024    } finally {
2025        lock.unlock();
2026    }
2027}
2028public static final native void _gdk_draw_line(int /*long*/ drawable, int /*long*/ gc, int x1, int y1, int x2, int y2);
2029public static final void gdk_draw_line(int /*long*/ drawable, int /*long*/ gc, int x1, int y1, int x2, int y2) {
2030    lock.lock();
2031    try {
2032        _gdk_draw_line(drawable, gc, x1, y1, x2, y2);
2033    } finally {
2034        lock.unlock();
2035    }
2036}
2037public static final native void _gdk_draw_lines(int /*long*/ drawable, int /*long*/ gc, int[] points, int npoints);
2038public static final void gdk_draw_lines(int /*long*/ drawable, int /*long*/ gc, int[] points, int npoints) {
2039    lock.lock();
2040    try {
2041        _gdk_draw_lines(drawable, gc, points, npoints);
2042    } finally {
2043        lock.unlock();
2044    }
2045}
2046public static final native void _gdk_draw_pixbuf(int /*long*/ drawable, int /*long*/ gc, int /*long*/ pixbuf, int xsrc, int ysrc, int xdest, int ydest, int width, int height, int dither, int x_dither, int y_dither);
2047public static final void gdk_draw_pixbuf(int /*long*/ drawable, int /*long*/ gc, int /*long*/ pixbuf, int xsrc, int ysrc, int xdest, int ydest, int width, int height, int dither, int x_dither, int y_dither) {
2048    lock.lock();
2049    try {
2050        _gdk_draw_pixbuf(drawable, gc, pixbuf, xsrc, ysrc, xdest, ydest, width, height, dither, x_dither, y_dither);
2051    } finally {
2052        lock.unlock();
2053    }
2054}
2055public static final native void _gdk_draw_point(int /*long*/ drawable, int /*long*/ gc, int x, int y);
2056public static final void gdk_draw_point(int /*long*/ drawable, int /*long*/ gc, int x, int y) {
2057    lock.lock();
2058    try {
2059        _gdk_draw_point(drawable, gc, x, y);
2060    } finally {
2061        lock.unlock();
2062    }
2063}
2064public static final native void _gdk_draw_polygon(int /*long*/ drawable, int /*long*/ gc, int filled, int[] points, int npoints);
2065public static final void gdk_draw_polygon(int /*long*/ drawable, int /*long*/ gc, int filled, int[] points, int npoints) {
2066    lock.lock();
2067    try {
2068        _gdk_draw_polygon(drawable, gc, filled, points, npoints);
2069    } finally {
2070        lock.unlock();
2071    }
2072}
2073public static final native void _gdk_draw_rectangle(int /*long*/ drawable, int /*long*/ gc, int filled, int x, int y, int width, int height);
2074public static final void gdk_draw_rectangle(int /*long*/ drawable, int /*long*/ gc, int filled, int x, int y, int width, int height) {
2075    lock.lock();
2076    try {
2077        _gdk_draw_rectangle(drawable, gc, filled, x, y, width, height);
2078    } finally {
2079        lock.unlock();
2080    }
2081}
2082public static final native int /*long*/ _gdk_drawable_get_image(int /*long*/ drawable, int x, int y, int width, int height);
2083public static final int /*long*/ gdk_drawable_get_image(int /*long*/ drawable, int x, int y, int width, int height) {
2084    lock.lock();
2085    try {
2086        return _gdk_drawable_get_image(drawable, x, y, width, height);
2087    } finally {
2088        lock.unlock();
2089    }
2090}
2091public static final native void _gdk_drawable_get_size(int /*long*/ drawable, int[] width, int[] height);
2092public static final void gdk_drawable_get_size(int /*long*/ drawable, int[] width, int[] height) {
2093    lock.lock();
2094    try {
2095        _gdk_drawable_get_size(drawable, width, height);
2096    } finally {
2097        lock.unlock();
2098    }
2099}
2100public static final native int /*long*/ _gdk_drawable_get_visible_region(int /*long*/ drawable);
2101public static final int /*long*/ gdk_drawable_get_visible_region(int /*long*/ drawable) {
2102    lock.lock();
2103    try {
2104        return _gdk_drawable_get_visible_region(drawable);
2105    } finally {
2106        lock.unlock();
2107    }
2108}
2109public static final native int /*long*/ _gdk_event_copy(int /*long*/ event);
2110public static final int /*long*/ gdk_event_copy(int /*long*/ event) {
2111    lock.lock();
2112    try {
2113        return _gdk_event_copy(event);
2114    } finally {
2115        lock.unlock();
2116    }
2117}
2118public static final native void _gdk_event_free(int /*long*/ event);
2119public static final void gdk_event_free(int /*long*/ event) {
2120    lock.lock();
2121    try {
2122        _gdk_event_free(event);
2123    } finally {
2124        lock.unlock();
2125    }
2126}
2127public static final native int /*long*/ _gdk_event_get();
2128public static final int /*long*/ gdk_event_get() {
2129    lock.lock();
2130    try {
2131        return _gdk_event_get();
2132    } finally {
2133        lock.unlock();
2134    }
2135}
2136public static final native boolean _gdk_event_get_root_coords(int /*long*/ event, double[] px, double[] py);
2137public static final boolean gdk_event_get_root_coords(int /*long*/ event, double[] px, double[] py) {
2138    lock.lock();
2139    try {
2140        return _gdk_event_get_root_coords(event, px, py);
2141    } finally {
2142        lock.unlock();
2143    }
2144}
2145public static final native boolean _gdk_event_get_coords(int /*long*/ event, double[] px, double[] py);
2146public static final boolean gdk_event_get_coords(int /*long*/ event, double[] px, double[] py) {
2147    lock.lock();
2148    try {
2149        return _gdk_event_get_coords(event, px, py);
2150    } finally {
2151        lock.unlock();
2152    }
2153}
2154public static final native int /*long*/ _gdk_event_get_graphics_expose(int /*long*/ window);
2155public static final int /*long*/ gdk_event_get_graphics_expose(int /*long*/ window) {
2156    lock.lock();
2157    try {
2158        return _gdk_event_get_graphics_expose(window);
2159    } finally {
2160        lock.unlock();
2161    }
2162}
2163public static final native boolean _gdk_event_get_state(int /*long*/ event, int[] pmod);
2164public static final boolean gdk_event_get_state(int /*long*/ event, int[] pmod) {
2165    lock.lock();
2166    try {
2167        return _gdk_event_get_state(event, pmod);
2168    } finally {
2169        lock.unlock();
2170    }
2171}
2172public static final native int _gdk_event_get_time(int /*long*/ event);
2173public static final int gdk_event_get_time(int /*long*/ event) {
2174    lock.lock();
2175    try {
2176        return _gdk_event_get_time(event);
2177    } finally {
2178        lock.unlock();
2179    }
2180}
2181public static final native void _gdk_event_handler_set(int /*long*/ func, int /*long*/ data, int /*long*/ notify);
2182public static final void gdk_event_handler_set(int /*long*/ func, int /*long*/ data, int /*long*/ notify) {
2183    lock.lock();
2184    try {
2185        _gdk_event_handler_set(func, data, notify);
2186    } finally {
2187        lock.unlock();
2188    }
2189}
2190public static final native void _gdk_event_put(int /*long*/ event);
2191public static final void gdk_event_put(int /*long*/ event) {
2192    lock.lock();
2193    try {
2194        _gdk_event_put(event);
2195    } finally {
2196        lock.unlock();
2197    }
2198}
2199public static final native void _gdk_error_trap_push();
2200public static final void gdk_error_trap_push() {
2201    lock.lock();
2202    try {
2203        _gdk_error_trap_push();
2204    } finally {
2205        lock.unlock();
2206    }
2207}
2208public static final native int _gdk_error_trap_pop();
2209public static final int gdk_error_trap_pop() {
2210    lock.lock();
2211    try {
2212        return _gdk_error_trap_pop();
2213    } finally {
2214        lock.unlock();
2215    }
2216}
2217public static final native void _gdk_flush();
2218public static final void gdk_flush() {
2219    lock.lock();
2220    try {
2221        _gdk_flush();
2222    } finally {
2223        lock.unlock();
2224    }
2225}
2226public static final native void _gdk_free_text_list(int /*long*/ list);
2227public static final void gdk_free_text_list(int /*long*/ list) {
2228    lock.lock();
2229    try {
2230        _gdk_free_text_list(list);
2231    } finally {
2232        lock.unlock();
2233    }
2234}
2235public static final native void _gdk_gc_get_values(int /*long*/ gc, GdkGCValues values);
2236public static final void gdk_gc_get_values(int /*long*/ gc, GdkGCValues values) {
2237    lock.lock();
2238    try {
2239        _gdk_gc_get_values(gc, values);
2240    } finally {
2241        lock.unlock();
2242    }
2243}
2244public static final native int /*long*/ _gdk_gc_new(int /*long*/ window);
2245public static final int /*long*/ gdk_gc_new(int /*long*/ window) {
2246    lock.lock();
2247    try {
2248        return _gdk_gc_new(window);
2249    } finally {
2250        lock.unlock();
2251    }
2252}
2253public static final native void _gdk_gc_set_background(int /*long*/ gc, GdkColor color);
2254public static final void gdk_gc_set_background(int /*long*/ gc, GdkColor color) {
2255    lock.lock();
2256    try {
2257        _gdk_gc_set_background(gc, color);
2258    } finally {
2259        lock.unlock();
2260    }
2261}
2262public static final native void _gdk_gc_set_clip_mask(int /*long*/ gc, int /*long*/ mask);
2263public static final void gdk_gc_set_clip_mask(int /*long*/ gc, int /*long*/ mask) {
2264    lock.lock();
2265    try {
2266        _gdk_gc_set_clip_mask(gc, mask);
2267    } finally {
2268        lock.unlock();
2269    }
2270}
2271public static final native void _gdk_gc_set_clip_origin(int /*long*/ gc, int x, int y);
2272public static final void gdk_gc_set_clip_origin(int /*long*/ gc, int x, int y) {
2273    lock.lock();
2274    try {
2275        _gdk_gc_set_clip_origin(gc, x, y);
2276    } finally {
2277        lock.unlock();
2278    }
2279}
2280public static final native void _gdk_gc_set_clip_rectangle(int /*long*/ gc, GdkRectangle rectangle);
2281public static final void gdk_gc_set_clip_rectangle(int /*long*/ gc, GdkRectangle rectangle) {
2282    lock.lock();
2283    try {
2284        _gdk_gc_set_clip_rectangle(gc, rectangle);
2285    } finally {
2286        lock.unlock();
2287    }
2288}
2289public static final native void _gdk_gc_set_clip_region(int /*long*/ gc, int /*long*/ region);
2290public static final void gdk_gc_set_clip_region(int /*long*/ gc, int /*long*/ region) {
2291    lock.lock();
2292    try {
2293        _gdk_gc_set_clip_region(gc, region);
2294    } finally {
2295        lock.unlock();
2296    }
2297}
2298public static final native void _gdk_gc_set_dashes(int /*long*/ gc, int dash_offset, byte[] dash_list, int n);
2299public static final void gdk_gc_set_dashes(int /*long*/ gc, int dash_offset, byte[] dash_list, int n) {
2300    lock.lock();
2301    try {
2302        _gdk_gc_set_dashes(gc, dash_offset, dash_list, n);
2303    } finally {
2304        lock.unlock();
2305    }
2306}
2307public static final native void _gdk_gc_set_exposures(int /*long*/ gc, boolean exposures);
2308public static final void gdk_gc_set_exposures(int /*long*/ gc, boolean exposures) {
2309    lock.lock();
2310    try {
2311        _gdk_gc_set_exposures(gc, exposures);
2312    } finally {
2313        lock.unlock();
2314    }
2315}
2316public static final native void _gdk_gc_set_fill(int /*long*/ gc, int fill);
2317public static final void gdk_gc_set_fill(int /*long*/ gc, int fill) {
2318    lock.lock();
2319    try {
2320        _gdk_gc_set_fill(gc, fill);
2321    } finally {
2322        lock.unlock();
2323    }
2324}
2325public static final native void _gdk_gc_set_foreground(int /*long*/ gc, GdkColor color);
2326public static final void gdk_gc_set_foreground(int /*long*/ gc, GdkColor color) {
2327    lock.lock();
2328    try {
2329        _gdk_gc_set_foreground(gc, color);
2330    } finally {
2331        lock.unlock();
2332    }
2333}
2334public static final native void _gdk_gc_set_function(int /*long*/ gc, int /*long*/ function);
2335public static final void gdk_gc_set_function(int /*long*/ gc, int /*long*/ function) {
2336    lock.lock();
2337    try {
2338        _gdk_gc_set_function(gc, function);
2339    } finally {
2340        lock.unlock();
2341    }
2342}
2343public static final native void _gdk_gc_set_line_attributes(int /*long*/ gc, int line_width, int line_style, int cap_style, int join_style);
2344public static final void gdk_gc_set_line_attributes(int /*long*/ gc, int line_width, int line_style, int cap_style, int join_style) {
2345    lock.lock();
2346    try {
2347        _gdk_gc_set_line_attributes(gc, line_width, line_style, cap_style, join_style);
2348    } finally {
2349        lock.unlock();
2350    }
2351}
2352public static final native void _gdk_gc_set_stipple(int /*long*/ gc, int /*long*/ stipple);
2353public static final void gdk_gc_set_stipple(int /*long*/ gc, int /*long*/ stipple) {
2354    lock.lock();
2355    try {
2356        _gdk_gc_set_stipple(gc, stipple);
2357    } finally {
2358        lock.unlock();
2359    }
2360}
2361public static final native void _gdk_gc_set_subwindow(int /*long*/ gc, int /*long*/ mode);
2362public static final void gdk_gc_set_subwindow(int /*long*/ gc, int /*long*/ mode) {
2363    lock.lock();
2364    try {
2365        _gdk_gc_set_subwindow(gc, mode);
2366    } finally {
2367        lock.unlock();
2368    }
2369}
2370public static final native void _gdk_gc_set_values(int /*long*/ gc, GdkGCValues values, int values_mask);
2371public static final void gdk_gc_set_values(int /*long*/ gc, GdkGCValues values, int values_mask) {
2372    lock.lock();
2373    try {
2374        _gdk_gc_set_values(gc, values, values_mask);
2375    } finally {
2376        lock.unlock();
2377    }
2378}
2379public static final native int /*long*/ _gdk_image_get(int /*long*/ window, int x, int y, int width, int height);
2380public static final int /*long*/ gdk_image_get(int /*long*/ window, int x, int y, int width, int height) {
2381    lock.lock();
2382    try {
2383        return _gdk_image_get(window, x, y, width, height);
2384    } finally {
2385        lock.unlock();
2386    }
2387}
2388public static final native int /*long*/ _gdk_image_get_pixel(int /*long*/ image, int x, int y);
2389public static final int /*long*/ gdk_image_get_pixel(int /*long*/ image, int x, int y) {
2390    lock.lock();
2391    try {
2392        return _gdk_image_get_pixel(image, x, y);
2393    } finally {
2394        lock.unlock();
2395    }
2396}
2397public static final native void _gdk_keyboard_ungrab(int time);
2398public static final void gdk_keyboard_ungrab(int time) {
2399    lock.lock();
2400    try {
2401        _gdk_keyboard_ungrab(time);
2402    } finally {
2403        lock.unlock();
2404    }
2405}
2406public static final native int /*long*/ _gdk_keymap_get_default();
2407public static final int /*long*/ gdk_keymap_get_default() {
2408    lock.lock();
2409    try {
2410        return _gdk_keymap_get_default();
2411    } finally {
2412        lock.unlock();
2413    }
2414}
2415public static final native boolean _gdk_keymap_translate_keyboard_state (int /*long*/ keymap, int hardware_keycode, int state, int group, int[] keyval, int[] effective_group, int[] level, int[] consumed_modifiers);
2416public static final boolean gdk_keymap_translate_keyboard_state (int /*long*/ keymap, int hardware_keycode, int state, int group, int[] keyval, int[] effective_group, int[] level, int[] consumed_modifiers) {
2417    lock.lock();
2418    try {
2419        return _gdk_keymap_translate_keyboard_state(keymap, hardware_keycode, state, group, keyval, effective_group, level, consumed_modifiers);
2420    } finally {
2421        lock.unlock();
2422    }
2423}
2424public static final native int _gdk_keyval_to_lower(int keyval);
2425public static final int gdk_keyval_to_lower(int keyval) {
2426    lock.lock();
2427    try {
2428        return _gdk_keyval_to_lower(keyval);
2429    } finally {
2430        lock.unlock();
2431    }
2432}
2433public static final native int _gdk_keyval_to_unicode(int keyval);
2434public static final int gdk_keyval_to_unicode(int keyval) {
2435    lock.lock();
2436    try {
2437        return _gdk_keyval_to_unicode(keyval);
2438    } finally {
2439        lock.unlock();
2440    }
2441}
2442public static final native int /*long*/ _gdk_pango_context_get();
2443public static final int /*long*/ gdk_pango_context_get() {
2444    lock.lock();
2445    try {
2446        return _gdk_pango_context_get();
2447    } finally {
2448        lock.unlock();
2449    }
2450}
2451public static final native void _gdk_pango_context_set_colormap(int /*long*/ context, int /*long*/ colormap);
2452public static final void gdk_pango_context_set_colormap(int /*long*/ context, int /*long*/ colormap) {
2453    lock.lock();
2454    try {
2455        _gdk_pango_context_set_colormap(context, colormap);
2456    } finally {
2457        lock.unlock();
2458    }
2459}
2460public static final native int /*long*/ _gdk_pango_layout_get_clip_region(int /*long*/ layout, int x_origin, int y_origin, int[] index_ranges, int n_ranges);
2461public static final int /*long*/ gdk_pango_layout_get_clip_region(int /*long*/ layout, int x_origin, int y_origin, int[] index_ranges, int n_ranges) {
2462    lock.lock();
2463    try {
2464        return _gdk_pango_layout_get_clip_region(layout, x_origin, y_origin, index_ranges, n_ranges);
2465    } finally {
2466        lock.unlock();
2467    }
2468}
2469public static final native void _gdk_pixbuf_copy_area(int /*long*/ src_pixbuf, int src_x, int src_y, int width, int height, int /*long*/ dest_pixbuf, int dest_x, int dest_y);
2470public static final void gdk_pixbuf_copy_area(int /*long*/ src_pixbuf, int src_x, int src_y, int width, int height, int /*long*/ dest_pixbuf, int dest_x, int dest_y) {
2471    lock.lock();
2472    try {
2473        _gdk_pixbuf_copy_area(src_pixbuf, src_x, src_y, width, height, dest_pixbuf, dest_x, dest_y);
2474    } finally {
2475        lock.unlock();
2476    }
2477}
2478public static final native int /*long*/ _gdk_pixbuf_get_from_drawable(int /*long*/ dest, int /*long*/ src, int /*long*/ cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height);
2479public static final int /*long*/ gdk_pixbuf_get_from_drawable(int /*long*/ dest, int /*long*/ src, int /*long*/ cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height) {
2480    lock.lock();
2481    try {
2482        return _gdk_pixbuf_get_from_drawable(dest, src, cmap, src_x, src_y, dest_x, dest_y, width, height);
2483    } finally {
2484        lock.unlock();
2485    }
2486}
2487public static final native boolean _gdk_pixbuf_get_has_alpha(int /*long*/ pixbuf);
2488public static final boolean gdk_pixbuf_get_has_alpha(int /*long*/ pixbuf) {
2489    lock.lock();
2490    try {
2491        return _gdk_pixbuf_get_has_alpha(pixbuf);
2492    } finally {
2493        lock.unlock();
2494    }
2495}
2496public static final native int _gdk_pixbuf_get_height(int /*long*/ pixbuf);
2497public static final int gdk_pixbuf_get_height(int /*long*/ pixbuf) {
2498    lock.lock();
2499    try {
2500        return _gdk_pixbuf_get_height(pixbuf);
2501    } finally {
2502        lock.unlock();
2503    }
2504}
2505public static final native int /*long*/ _gdk_pixbuf_get_pixels(int /*long*/ pixbuf);
2506public static final int /*long*/ gdk_pixbuf_get_pixels(int /*long*/ pixbuf) {
2507    lock.lock();
2508    try {
2509        return _gdk_pixbuf_get_pixels(pixbuf);
2510    } finally {
2511        lock.unlock();
2512    }
2513}
2514public static final native int _gdk_pixbuf_get_rowstride(int /*long*/ pixbuf);
2515public static final int gdk_pixbuf_get_rowstride(int /*long*/ pixbuf) {
2516    lock.lock();
2517    try {
2518        return _gdk_pixbuf_get_rowstride(pixbuf);
2519    } finally {
2520        lock.unlock();
2521    }
2522}
2523public static final native int _gdk_pixbuf_get_width(int /*long*/ pixbuf);
2524public static final int gdk_pixbuf_get_width(int /*long*/ pixbuf) {
2525    lock.lock();
2526    try {
2527        return _gdk_pixbuf_get_width(pixbuf);
2528    } finally {
2529        lock.unlock();
2530    }
2531}
2532public static final native int /*long*/ _gdk_pixbuf_new(int colorspace, boolean has_alpha, int bits_per_sample, int width, int height);
2533public static final int /*long*/ gdk_pixbuf_new(int colorspace, boolean has_alpha, int bits_per_sample, int width, int height) {
2534    lock.lock();
2535    try {
2536        return _gdk_pixbuf_new(colorspace, has_alpha, bits_per_sample, width, height);
2537    } finally {
2538        lock.unlock();
2539    }
2540}
2541public static final native void _gdk_pixbuf_render_to_drawable(int /*long*/ pixbuf, int /*long*/ drawable, int /*long*/ gc, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int dither, int x_dither, int y_dither);
2542public static final void gdk_pixbuf_render_to_drawable(int /*long*/ pixbuf, int /*long*/ drawable, int /*long*/ gc, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int dither, int x_dither, int y_dither) {
2543    lock.lock();
2544    try {
2545        _gdk_pixbuf_render_to_drawable(pixbuf, drawable, gc, src_x, src_y, dest_x, dest_y, width, height, dither, x_dither, y_dither);
2546    } finally {
2547        lock.unlock();
2548    }
2549}
2550public static final native void _gdk_pixbuf_render_to_drawable_alpha(int /*long*/ pixbuf, int /*long*/ drawable, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int alpha_mode, int alpha_threshold, int dither, int x_dither, int y_dither);
2551public static final void gdk_pixbuf_render_to_drawable_alpha(int /*long*/ pixbuf, int /*long*/ drawable, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int alpha_mode, int alpha_threshold, int dither, int x_dither, int y_dither) {
2552    lock.lock();
2553    try {
2554        _gdk_pixbuf_render_to_drawable_alpha(pixbuf, drawable, src_x, src_y, dest_x, dest_y, width, height, alpha_mode, alpha_threshold, dither, x_dither, y_dither);
2555    } finally {
2556        lock.unlock();
2557    }
2558}
2559public static final native void _gdk_pixbuf_render_pixmap_and_mask(int /*long*/ pixbuf, int /*long*/[] pixmap_return, int /*long*/[] mask_return, int alpha_threshold);
2560public static final void gdk_pixbuf_render_pixmap_and_mask(int /*long*/ pixbuf, int /*long*/[] pixmap_return, int /*long*/[] mask_return, int alpha_threshold) {
2561    lock.lock();
2562    try {
2563        _gdk_pixbuf_render_pixmap_and_mask(pixbuf, pixmap_return, mask_return, alpha_threshold);
2564    } finally {
2565        lock.unlock();
2566    }
2567}
2568public static final native void _gdk_pixbuf_scale(int /*long*/ src, int /*long*/ dest, int dest_x, int dest_y, int dest_width, int dest_height, double offset_x, double offset_y, double scale_x, double scale_y, int interp_type);
2569public static final void gdk_pixbuf_scale(int /*long*/ src, int /*long*/ dest, int dest_x, int dest_y, int dest_width, int dest_height, double offset_x, double offset_y, double scale_x, double scale_y, int interp_type) {
2570    lock.lock();
2571    try {
2572        _gdk_pixbuf_scale(src, dest, dest_x, dest_y, dest_width, dest_height, offset_x, offset_y, scale_x, scale_y, interp_type);
2573    } finally {
2574        lock.unlock();
2575    }
2576}
2577public static final native int /*long*/ _gdk_pixbuf_scale_simple(int /*long*/ src, int dest_width, int dest_height, int interp_type);
2578public static final int /*long*/ gdk_pixbuf_scale_simple(int /*long*/ src, int dest_width, int dest_height, int interp_type) {
2579    lock.lock();
2580    try {
2581        return _gdk_pixbuf_scale_simple(src, dest_width, dest_height, interp_type);
2582    } finally {
2583        lock.unlock();
2584    }
2585}
2586public static final native int /*long*/ _gdk_pixmap_new(int /*long*/ window, int width, int height, int depth);
2587public static final int /*long*/ gdk_pixmap_new(int /*long*/ window, int width, int height, int depth) {
2588    lock.lock();
2589    try {
2590        return _gdk_pixmap_new(window, width, height, depth);
2591    } finally {
2592        lock.unlock();
2593    }
2594}
2595public static final native int _gdk_pointer_grab(int /*long*/ window, boolean owner_events, int event_mask, int /*long*/ confine_to, int /*long*/ cursor, int time);
2596public static final int gdk_pointer_grab(int /*long*/ window, boolean owner_events, int event_mask, int /*long*/ confine_to, int /*long*/ cursor, int time) {
2597    lock.lock();
2598    try {
2599        return _gdk_pointer_grab(window, owner_events, event_mask, confine_to, cursor, time);
2600    } finally {
2601        lock.unlock();
2602    }
2603}
2604public static final native boolean _gdk_pointer_is_grabbed();
2605public static final boolean gdk_pointer_is_grabbed() {
2606    lock.lock();
2607    try {
2608        return _gdk_pointer_is_grabbed();
2609    } finally {
2610        lock.unlock();
2611    }
2612}
2613public static final native void _gdk_pointer_ungrab(int time);
2614public static final void gdk_pointer_ungrab(int time) {
2615    lock.lock();
2616    try {
2617        _gdk_pointer_ungrab(time);
2618    } finally {
2619        lock.unlock();
2620    }
2621}
2622public static final native boolean _gdk_property_get(int /*long*/ window, int /*long*/ property, int /*long*/ type, int /*long*/ offset, int /*long*/ length, int pdelete, int /*long*/[] actual_property_type, int[] actual_format, int[] actual_length, int /*long*/[] data);
2623public static final boolean gdk_property_get(int /*long*/ window, int /*long*/ property, int /*long*/ type, int /*long*/ offset, int /*long*/ length, int pdelete, int /*long*/[] actual_property_type, int[] actual_format, int[] actual_length, int /*long*/[] data) {
2624    lock.lock();
2625    try {
2626        return _gdk_property_get(window, property, type, offset, length, pdelete, actual_property_type, actual_format, actual_length, data);
2627    } finally {
2628        lock.unlock();
2629    }
2630}
2631public static final native void _gdk_region_destroy(int /*long*/ region);
2632public static final void gdk_region_destroy(int /*long*/ region) {
2633    lock.lock();
2634    try {
2635        _gdk_region_destroy(region);
2636    } finally {
2637        lock.unlock();
2638    }
2639}
2640public static final native boolean _gdk_region_empty(int /*long*/ region);
2641public static final boolean gdk_region_empty(int /*long*/ region) {
2642    lock.lock();
2643    try {
2644        return _gdk_region_empty(region);
2645    } finally {
2646        lock.unlock();
2647    }
2648}
2649public static final native void _gdk_region_get_clipbox(int /*long*/ region, GdkRectangle rectangle);
2650public static final void gdk_region_get_clipbox(int /*long*/ region, GdkRectangle rectangle) {
2651    lock.lock();
2652    try {
2653        _gdk_region_get_clipbox(region, rectangle);
2654    } finally {
2655        lock.unlock();
2656    }
2657}
2658public static final native void _gdk_region_get_rectangles(int /*long*/ region, int /*long*/[] rectangles, int[] n_rectangles);
2659public static final void gdk_region_get_rectangles(int /*long*/ region, int /*long*/[] rectangles, int[] n_rectangles) {
2660    lock.lock();
2661    try {
2662        _gdk_region_get_rectangles(region, rectangles, n_rectangles);
2663    } finally {
2664        lock.unlock();
2665    }
2666}
2667public static final native void _gdk_region_intersect(int /*long*/ source1, int /*long*/ source2);
2668public static final void gdk_region_intersect(int /*long*/ source1, int /*long*/ source2) {
2669    lock.lock();
2670    try {
2671        _gdk_region_intersect(source1, source2);
2672    } finally {
2673        lock.unlock();
2674    }
2675}
2676public static final native int /*long*/ _gdk_region_new();
2677public static final int /*long*/ gdk_region_new() {
2678    lock.lock();
2679    try {
2680        return _gdk_region_new();
2681    } finally {
2682        lock.unlock();
2683    }
2684}
2685public static final native void _gdk_region_offset(int /*long*/ region, int dx, int dy);
2686public static final void gdk_region_offset(int /*long*/ region, int dx, int dy) {
2687    lock.lock();
2688    try {
2689        _gdk_region_offset(region, dx, dy);
2690    } finally {
2691        lock.unlock();
2692    }
2693}
2694public static final native boolean _gdk_region_point_in(int /*long*/ region, int x, int y);
2695public static final boolean gdk_region_point_in(int /*long*/ region, int x, int y) {
2696    lock.lock();
2697    try {
2698        return _gdk_region_point_in(region, x, y);
2699    } finally {
2700        lock.unlock();
2701    }
2702}
2703public static final native int /*long*/ _gdk_region_polygon(int[] points, int npoints, int fill_rule);
2704public static final int /*long*/ gdk_region_polygon(int[] points, int npoints, int fill_rule) {
2705    lock.lock();
2706    try {
2707        return _gdk_region_polygon(points, npoints, fill_rule);
2708    } finally {
2709        lock.unlock();
2710    }
2711}
2712public static final native int /*long*/ _gdk_region_rectangle(GdkRectangle rectangle);
2713public static final int /*long*/ gdk_region_rectangle(GdkRectangle rectangle) {
2714    lock.lock();
2715    try {
2716        return _gdk_region_rectangle(rectangle);
2717    } finally {
2718        lock.unlock();
2719    }
2720}
2721public static final native int /*long*/ _gdk_region_rect_in(int /*long*/ region, GdkRectangle rect);
2722public static final int /*long*/ gdk_region_rect_in(int /*long*/ region, GdkRectangle rect) {
2723    lock.lock();
2724    try {
2725        return _gdk_region_rect_in(region, rect);
2726    } finally {
2727        lock.unlock();
2728    }
2729}
2730public static final native void _gdk_region_subtract(int /*long*/ source1, int /*long*/ source2);
2731public static final void gdk_region_subtract(int /*long*/ source1, int /*long*/ source2) {
2732    lock.lock();
2733    try {
2734        _gdk_region_subtract(source1, source2);
2735    } finally {
2736        lock.unlock();
2737    }
2738}
2739public static final native void _gdk_region_union(int /*long*/ source1, int /*long*/ source2);
2740public static final void gdk_region_union(int /*long*/ source1, int /*long*/ source2) {
2741    lock.lock();
2742    try {
2743        _gdk_region_union(source1, source2);
2744    } finally {
2745        lock.unlock();
2746    }
2747}
2748public static final native void _gdk_region_union_with_rect(int /*long*/ region, GdkRectangle rect);
2749public static final void gdk_region_union_with_rect(int /*long*/ region, GdkRectangle rect) {
2750    lock.lock();
2751    try {
2752        _gdk_region_union_with_rect(region, rect);
2753    } finally {
2754        lock.unlock();
2755    }
2756}
2757public static final native void _gdk_rgb_init();
2758public static final void gdk_rgb_init() {
2759    lock.lock();
2760    try {
2761        _gdk_rgb_init();
2762    } finally {
2763        lock.unlock();
2764    }
2765}
2766public static final native int /*long*/ _gdk_screen_get_default();
2767public static final int /*long*/ gdk_screen_get_default() {
2768    lock.lock();
2769    try {
2770        return _gdk_screen_get_default();
2771    } finally {
2772        lock.unlock();
2773    }
2774}
2775public static final native int _gdk_screen_get_monitor_at_window(int /*long*/ screen, int /*long*/ window);
2776public static final int gdk_screen_get_monitor_at_window(int /*long*/ screen, int /*long*/ window) {
2777    lock.lock();
2778    try {
2779        return _gdk_screen_get_monitor_at_window(screen, window);
2780    } finally {
2781        lock.unlock();
2782    }
2783}
2784public static final native void _gdk_screen_get_monitor_geometry (int /*long*/ screen, int monitor_num, GdkRectangle dest);
2785public static final void gdk_screen_get_monitor_geometry (int /*long*/ screen, int monitor_num, GdkRectangle dest) {
2786    lock.lock();
2787    try {
2788        _gdk_screen_get_monitor_geometry(screen, monitor_num, dest);
2789    } finally {
2790        lock.unlock();
2791    }
2792}
2793public static final native int _gdk_screen_get_n_monitors(int /*long*/ screen);
2794public static final int gdk_screen_get_n_monitors(int /*long*/ screen) {
2795    lock.lock();
2796    try {
2797        return _gdk_screen_get_n_monitors(screen);
2798    } finally {
2799        lock.unlock();
2800    }
2801}
2802public static final native int _gdk_screen_get_number(int /*long*/ screen);
2803public static final int gdk_screen_get_number(int /*long*/ screen) {
2804    lock.lock();
2805    try {
2806        return _gdk_screen_get_number(screen);
2807    } finally {
2808        lock.unlock();
2809    }
2810}
2811public static final native int _gdk_screen_height();
2812public static final int gdk_screen_height() {
2813    lock.lock();
2814    try {
2815        return _gdk_screen_height();
2816    } finally {
2817        lock.unlock();
2818    }
2819}
2820public static final native int _gdk_screen_width();
2821public static final int gdk_screen_width() {
2822    lock.lock();
2823    try {
2824        return _gdk_screen_width();
2825    } finally {
2826        lock.unlock();
2827    }
2828}
2829public static final native int _gdk_screen_width_mm();
2830public static final int gdk_screen_width_mm() {
2831    lock.lock();
2832    try {
2833        return _gdk_screen_width_mm();
2834    } finally {
2835        lock.unlock();
2836    }
2837}
2838public static final native void _gdk_set_program_class(byte[] program_class);
2839public static final void gdk_set_program_class(byte[] program_class) {
2840    lock.lock();
2841    try {
2842        _gdk_set_program_class(program_class);
2843    } finally {
2844        lock.unlock();
2845    }
2846}
2847public static final native boolean _gdk_utf8_to_compound_text(byte[] str, int /*long*/[] encoding, int[] format, int /*long*/[] ctext, int[] length);
2848public static final boolean gdk_utf8_to_compound_text(byte[] str, int /*long*/[] encoding, int[] format, int /*long*/[] ctext, int[] length) {
2849    lock.lock();
2850    try {
2851        return _gdk_utf8_to_compound_text(str, encoding, format, ctext, length);
2852    } finally {
2853        lock.unlock();
2854    }
2855}
2856public static final native int _gdk_text_property_to_utf8_list (int /*long*/ encoding, int format, int /*long*/ text, int length, int /*long*/[] list);
2857public static final int gdk_text_property_to_utf8_list (int /*long*/ encoding, int format, int /*long*/ text, int length, int /*long*/[] list) {
2858    lock.lock();
2859    try {
2860        return _gdk_text_property_to_utf8_list(encoding, format, text, length, list);
2861    } finally {
2862        lock.unlock();
2863    }
2864}
2865public static final native int _gdk_unicode_to_keyval(int wc);
2866public static final int gdk_unicode_to_keyval(int wc) {
2867    lock.lock();
2868    try {
2869        return _gdk_unicode_to_keyval(wc);
2870    } finally {
2871        lock.unlock();
2872    }
2873}
2874public static final native int /*long*/ _gdk_visual_get_system();
2875public static final int /*long*/ gdk_visual_get_system() {
2876    lock.lock();
2877    try {
2878        return _gdk_visual_get_system();
2879    } finally {
2880        lock.unlock();
2881    }
2882}
2883public static final native int /*long*/ _gdk_window_at_pointer(int[] win_x, int[] win_y);
2884public static final int /*long*/ gdk_window_at_pointer(int[] win_x, int[] win_y) {
2885    lock.lock();
2886    try {
2887        return _gdk_window_at_pointer(win_x, win_y);
2888    } finally {
2889        lock.unlock();
2890    }
2891}
2892public static final native void _gdk_window_begin_paint_rect(int /*long*/ window, GdkRectangle rectangle);
2893public static final void gdk_window_begin_paint_rect(int /*long*/ window, GdkRectangle rectangle) {
2894    lock.lock();
2895    try {
2896        _gdk_window_begin_paint_rect(window, rectangle);
2897    } finally {
2898        lock.unlock();
2899    }
2900}
2901public static final native void _gdk_window_destroy(int /*long*/ window);
2902public static final void gdk_window_destroy(int /*long*/ window) {
2903    lock.lock();
2904    try {
2905        _gdk_window_destroy(window);
2906    } finally {
2907        lock.unlock();
2908    }
2909}
2910public static final native void _gdk_window_end_paint(int /*long*/ window);
2911public static final void gdk_window_end_paint(int /*long*/ window) {
2912    lock.lock();
2913    try {
2914        _gdk_window_end_paint(window);
2915    } finally {
2916        lock.unlock();
2917    }
2918}
2919public static final native int /*long*/ _gdk_window_get_children(int /*long*/ window);
2920public static final int /*long*/ gdk_window_get_children(int /*long*/ window) {
2921    lock.lock();
2922    try {
2923        return _gdk_window_get_children(window);
2924    } finally {
2925        lock.unlock();
2926    }
2927}
2928public static final native int _gdk_window_get_events(int /*long*/ window);
2929public static final int gdk_window_get_events(int /*long*/ window) {
2930    lock.lock();
2931    try {
2932        return _gdk_window_get_events(window);
2933    } finally {
2934        lock.unlock();
2935    }
2936}
2937public static final native void _gdk_window_focus(int /*long*/ window, int timestamp);
2938public static final void gdk_window_focus(int /*long*/ window, int timestamp) {
2939    lock.lock();
2940    try {
2941        _gdk_window_focus(window, timestamp);
2942    } finally {
2943        lock.unlock();
2944    }
2945}
2946public static final native void _gdk_window_freeze_updates(int /*long*/ window);
2947public static final void gdk_window_freeze_updates(int /*long*/ window) {
2948    lock.lock();
2949    try {
2950        _gdk_window_freeze_updates(window);
2951    } finally {
2952        lock.unlock();
2953    }
2954}
2955public static final native void _gdk_window_get_frame_extents(int /*long*/ window, GdkRectangle rect);
2956public static final void gdk_window_get_frame_extents(int /*long*/ window, GdkRectangle rect) {
2957    lock.lock();
2958    try {
2959        _gdk_window_get_frame_extents(window, rect);
2960    } finally {
2961        lock.unlock();
2962    }
2963}
2964public static final native void _gdk_window_get_internal_paint_info(int /*long*/ window, int /*long*/ [] real_drawable, int[] x_offset, int[] y_offset);
2965public static final void gdk_window_get_internal_paint_info(int /*long*/ window, int /*long*/ [] real_drawable, int[] x_offset, int[] y_offset) {
2966    lock.lock();
2967    try {
2968        _gdk_window_get_internal_paint_info(window, real_drawable, x_offset, y_offset);
2969    } finally {
2970        lock.unlock();
2971    }
2972}
2973public static final native int _gdk_window_get_origin(int /*long*/ window, int[] x, int[] y);
2974public static final int gdk_window_get_origin(int /*long*/ window, int[] x, int[] y) {
2975    lock.lock();
2976    try {
2977        return _gdk_window_get_origin(window, x, y);
2978    } finally {
2979        lock.unlock();
2980    }
2981}
2982public static final native int /*long*/ _gdk_window_get_parent(int /*long*/ window);
2983public static final int /*long*/ gdk_window_get_parent(int /*long*/ window) {
2984    lock.lock();
2985    try {
2986        return _gdk_window_get_parent(window);
2987    } finally {
2988        lock.unlock();
2989    }
2990}
2991public static final native int /*long*/ _gdk_window_get_pointer(int /*long*/ window, int[] x, int[] y, int[] mask);
2992public static final int /*long*/ gdk_window_get_pointer(int /*long*/ window, int[] x, int[] y, int[] mask) {
2993    lock.lock();
2994    try {
2995        return _gdk_window_get_pointer(window, x, y, mask);
2996    } finally {
2997        lock.unlock();
2998    }
2999}
3000public static final native void _gdk_window_get_user_data(int /*long*/ window, int /*long*/[] data);
3001public static final void gdk_window_get_user_data(int /*long*/ window, int /*long*/[] data) {
3002    lock.lock();
3003    try {
3004        _gdk_window_get_user_data(window, data);
3005    } finally {
3006        lock.unlock();
3007    }
3008}
3009public static final native void _gdk_window_hide(int /*long*/ window);
3010public static final void gdk_window_hide(int /*long*/ window) {
3011    lock.lock();
3012    try {
3013        _gdk_window_hide(window);
3014    } finally {
3015        lock.unlock();
3016    }
3017}
3018public static final native void _gdk_window_invalidate_rect(int /*long*/ window, GdkRectangle rectangle, boolean invalidate_children);
3019public static final void gdk_window_invalidate_rect(int /*long*/ window, GdkRectangle rectangle, boolean invalidate_children) {
3020    lock.lock();
3021    try {
3022        _gdk_window_invalidate_rect(window, rectangle, invalidate_children);
3023    } finally {
3024        lock.unlock();
3025    }
3026}
3027public static final native void _gdk_window_invalidate_region(int /*long*/ window, int /*long*/ region, boolean invalidate_children);
3028public static final void gdk_window_invalidate_region(int /*long*/ window, int /*long*/ region, boolean invalidate_children) {
3029    lock.lock();
3030    try {
3031        _gdk_window_invalidate_region(window, region, invalidate_children);
3032    } finally {
3033        lock.unlock();
3034    }
3035}
3036public static final native void _gdk_window_move(int /*long*/ window, int x, int y);
3037public static final void gdk_window_move(int /*long*/ window, int x, int y) {
3038    lock.lock();
3039    try {
3040        _gdk_window_move(window, x, y);
3041    } finally {
3042        lock.unlock();
3043    }
3044}
3045public static final native int /*long*/ _gdk_window_new(int /*long*/ parent, GdkWindowAttr attributes, int attributes_mask);
3046public static final int /*long*/ gdk_window_new(int /*long*/ parent, GdkWindowAttr attributes, int attributes_mask) {
3047    lock.lock();
3048    try {
3049        return _gdk_window_new(parent, attributes, attributes_mask);
3050    } finally {
3051        lock.unlock();
3052    }
3053}
3054public static final native void _gdk_window_lower(int /*long*/ window);
3055public static final void gdk_window_lower(int /*long*/ window) {
3056    lock.lock();
3057    try {
3058        _gdk_window_lower(window);
3059    } finally {
3060        lock.unlock();
3061    }
3062}
3063public static final native void _gdk_window_process_all_updates();
3064public static final void gdk_window_process_all_updates() {
3065    lock.lock();
3066    try {
3067        _gdk_window_process_all_updates();
3068    } finally {
3069        lock.unlock();
3070    }
3071}
3072public static final native void _gdk_window_process_updates(int /*long*/ window, boolean update_children);
3073public static final void gdk_window_process_updates(int /*long*/ window, boolean update_children) {
3074    lock.lock();
3075    try {
3076        _gdk_window_process_updates(window, update_children);
3077    } finally {
3078        lock.unlock();
3079    }
3080}
3081public static final native void _gdk_window_raise(int /*long*/ window);
3082public static final void gdk_window_raise(int /*long*/ window) {
3083    lock.lock();
3084    try {
3085        _gdk_window_raise(window);
3086    } finally {
3087        lock.unlock();
3088    }
3089}
3090public static final native void _gdk_window_resize(int /*long*/ window, int width, int height);
3091public static final void gdk_window_resize(int /*long*/ window, int width, int height) {
3092    lock.lock();
3093    try {
3094        _gdk_window_resize(window, width, height);
3095    } finally {
3096        lock.unlock();
3097    }
3098}
3099public static final native void _gdk_window_scroll(int /*long*/ window, int dx, int dy);
3100public static final void gdk_window_scroll(int /*long*/ window, int dx, int dy) {
3101    lock.lock();
3102    try {
3103        _gdk_window_scroll(window, dx, dy);
3104    } finally {
3105        lock.unlock();
3106    }
3107}
3108public static final native void _gdk_window_set_accept_focus(int /*long*/ window, boolean accept_focus);
3109public static final void gdk_window_set_accept_focus(int /*long*/ window, boolean accept_focus) {
3110    lock.lock();
3111    try {
3112        _gdk_window_set_accept_focus(window, accept_focus);
3113    } finally {
3114        lock.unlock();
3115    }
3116}
3117public static final native void _gdk_window_set_back_pixmap(int /*long*/ window, int /*long*/ pixmap, boolean parent_relative);
3118public static final void gdk_window_set_back_pixmap(int /*long*/ window, int /*long*/ pixmap, boolean parent_relative) {
3119    lock.lock();
3120    try {
3121        _gdk_window_set_back_pixmap(window, pixmap, parent_relative);
3122    } finally {
3123        lock.unlock();
3124    }
3125}
3126public static final native void _gdk_window_set_cursor(int /*long*/ window, int /*long*/ cursor);
3127public static final void gdk_window_set_cursor(int /*long*/ window, int /*long*/ cursor) {
3128    lock.lock();
3129    try {
3130        _gdk_window_set_cursor(window, cursor);
3131    } finally {
3132        lock.unlock();
3133    }
3134}
3135public static final native void _gdk_window_set_decorations(int /*long*/ window, int decorations);
3136public static final void gdk_window_set_decorations(int /*long*/ window, int decorations) {
3137    lock.lock();
3138    try {
3139        _gdk_window_set_decorations(window, decorations);
3140    } finally {
3141        lock.unlock();
3142    }
3143}
3144public static final native void _gdk_window_set_events(int /*long*/ window, int event_mask);
3145public static final void gdk_window_set_events(int /*long*/ window, int event_mask) {
3146    lock.lock();
3147    try {
3148        _gdk_window_set_events(window, event_mask);
3149    } finally {
3150        lock.unlock();
3151    }
3152}
3153public static final native void _gdk_window_set_icon(int /*long*/ window, int /*long*/ icon_window, int /*long*/ pixmap, int /*long*/ mask);
3154public static final void gdk_window_set_icon(int /*long*/ window, int /*long*/ icon_window, int /*long*/ pixmap, int /*long*/ mask) {
3155    lock.lock();
3156    try {
3157        _gdk_window_set_icon(window, icon_window, pixmap, mask);
3158    } finally {
3159        lock.unlock();
3160    }
3161}
3162public static final native void _gdk_window_set_icon_list(int /*long*/ window, int /*long*/ pixbufs);
3163public static final void gdk_window_set_icon_list(int /*long*/ window, int /*long*/ pixbufs) {
3164    lock.lock();
3165    try {
3166        _gdk_window_set_icon_list(window, pixbufs);
3167    } finally {
3168        lock.unlock();
3169    }
3170}
3171public static final native void _gdk_window_set_keep_above(int /*long*/ window, boolean setting);
3172public static final void gdk_window_set_keep_above(int /*long*/ window, boolean setting) {
3173    lock.lock();
3174    try {
3175        _gdk_window_set_keep_above(window, setting);
3176    } finally {
3177        lock.unlock();
3178    }
3179}
3180public static final native void _gdk_window_set_override_redirect(int /*long*/ window, boolean override_redirect);
3181public static final void gdk_window_set_override_redirect(int /*long*/ window, boolean override_redirect) {
3182    lock.lock();
3183    try {
3184        _gdk_window_set_override_redirect(window, override_redirect);
3185    } finally {
3186        lock.unlock();
3187    }
3188}
3189public static final native void _gdk_window_set_user_data(int /*long*/ window, int /*long*/ user_data);
3190public static final void gdk_window_set_user_data(int /*long*/ window, int /*long*/ user_data) {
3191    lock.lock();
3192    try {
3193        _gdk_window_set_user_data(window, user_data);
3194    } finally {
3195        lock.unlock();
3196    }
3197}
3198public static final native void _gdk_window_shape_combine_region (int /*long*/ window, int /*long*/ shape_region, int offset_x, int offset_y);
3199public static final void gdk_window_shape_combine_region (int /*long*/ window, int /*long*/ shape_region, int offset_x, int offset_y) {
3200    lock.lock();
3201    try {
3202        _gdk_window_shape_combine_region(window, shape_region, offset_x, offset_y);
3203    } finally {
3204        lock.unlock();
3205    }
3206}
3207public static final native void _gdk_window_show(int /*long*/ window);
3208public static final void gdk_window_show(int /*long*/ window) {
3209    lock.lock();
3210    try {
3211        _gdk_window_show(window);
3212    } finally {
3213        lock.unlock();
3214    }
3215}
3216public static final native void _gdk_window_show_unraised(int /*long*/ window);
3217public static final void gdk_window_show_unraised(int /*long*/ window) {
3218    lock.lock();
3219    try {
3220        _gdk_window_show_unraised(window);
3221    } finally {
3222        lock.unlock();
3223    }
3224}
3225public static final native void _gdk_window_thaw_updates(int /*long*/ window);
3226public static final void gdk_window_thaw_updates(int /*long*/ window) {
3227    lock.lock();
3228    try {
3229        _gdk_window_thaw_updates(window);
3230    } finally {
3231        lock.unlock();
3232    }
3233}
3234public static final native int /*long*/ _gtk_accel_group_new();
3235public static final int /*long*/ gtk_accel_group_new() {
3236    lock.lock();
3237    try {
3238        return _gtk_accel_group_new();
3239    } finally {
3240        lock.unlock();
3241    }
3242}
3243public static final native boolean _gtk_accel_groups_activate(int /*long*/ accelGroup, int accelKey, int accelMods);
3244public static final boolean gtk_accel_groups_activate(int /*long*/ accelGroup, int accelKey, int accelMods) {
3245    lock.lock();
3246    try {
3247        return _gtk_accel_groups_activate(accelGroup, accelKey, accelMods);
3248    } finally {
3249        lock.unlock();
3250    }
3251}
3252public static final native void _gtk_accel_label_set_accel_widget(int /*long*/ accel_label, int /*long*/ accel_widget);
3253public static final void gtk_accel_label_set_accel_widget(int /*long*/ accel_label, int /*long*/ accel_widget) {
3254    lock.lock();
3255    try {
3256        _gtk_accel_label_set_accel_widget(accel_label, accel_widget);
3257    } finally {
3258        lock.unlock();
3259    }
3260}
3261public static final native void _gtk_adjustment_changed(int /*long*/ adjustment);
3262public static final void gtk_adjustment_changed(int /*long*/ adjustment) {
3263    lock.lock();
3264    try {
3265        _gtk_adjustment_changed(adjustment);
3266    } finally {
3267        lock.unlock();
3268    }
3269}
3270public static final native int /*long*/ _gtk_adjustment_new(double value, double lower, double upper, double step_increment, double page_increment, double page_size);
3271public static final int /*long*/ gtk_adjustment_new(double value, double lower, double upper, double step_increment, double page_increment, double page_size) {
3272    lock.lock();
3273    try {
3274        return _gtk_adjustment_new(value, lower, upper, step_increment, page_increment, page_size);
3275    } finally {
3276        lock.unlock();
3277    }
3278}
3279public static final native void _gtk_adjustment_set_value(int /*long*/ adjustment, double value);
3280public static final void gtk_adjustment_set_value(int /*long*/ adjustment, double value) {
3281    lock.lock();
3282    try {
3283        _gtk_adjustment_set_value(adjustment, value);
3284    } finally {
3285        lock.unlock();
3286    }
3287}
3288public static final native void _gtk_adjustment_value_changed(int /*long*/ adjustment);
3289public static final void gtk_adjustment_value_changed(int /*long*/ adjustment) {
3290    lock.lock();
3291    try {
3292        _gtk_adjustment_value_changed(adjustment);
3293    } finally {
3294        lock.unlock();
3295    }
3296}
3297public static final native int /*long*/ _gtk_arrow_new(int arrow_type, int shadow_type);
3298public static final int /*long*/ gtk_arrow_new(int arrow_type, int shadow_type) {
3299    lock.lock();
3300    try {
3301        return _gtk_arrow_new(arrow_type, shadow_type);
3302    } finally {
3303        lock.unlock();
3304    }
3305}
3306public static final native void _gtk_arrow_set(int /*long*/ arrow, int arrow_type, int shadow_type);
3307public static final void gtk_arrow_set(int /*long*/ arrow, int arrow_type, int shadow_type) {
3308    lock.lock();
3309    try {
3310        _gtk_arrow_set(arrow, arrow_type, shadow_type);
3311    } finally {
3312        lock.unlock();
3313    }
3314}
3315public static final native int /*long*/ _gtk_bin_get_child(int /*long*/ bin);
3316public static final int /*long*/ gtk_bin_get_child(int /*long*/ bin) {
3317    lock.lock();
3318    try {
3319        return _gtk_bin_get_child(bin);
3320    } finally {
3321        lock.unlock();
3322    }
3323}
3324public static final native void _gtk_box_set_child_packing(int /*long*/ box, int /*long*/ child, boolean expand, boolean fill, int padding, int pack_type);
3325public static final void gtk_box_set_child_packing(int /*long*/ box, int /*long*/ child, boolean expand, boolean fill, int padding, int pack_type) {
3326    lock.lock();
3327    try {
3328        _gtk_box_set_child_packing(box, child, expand, fill, padding, pack_type);
3329    } finally {
3330        lock.unlock();
3331    }
3332}
3333public static final native void _gtk_button_clicked(int /*long*/ button);
3334public static final void gtk_button_clicked(int /*long*/ button) {
3335    lock.lock();
3336    try {
3337        _gtk_button_clicked(button);
3338    } finally {
3339        lock.unlock();
3340    }
3341}
3342public static final native int /*long*/ _gtk_button_new();
3343public static final int /*long*/ gtk_button_new() {
3344    lock.lock();
3345    try {
3346        return _gtk_button_new();
3347    } finally {
3348        lock.unlock();
3349    }
3350}
3351public static final native void _gtk_button_set_relief(int /*long*/ button, int newstyle);
3352public static final void gtk_button_set_relief(int /*long*/ button, int newstyle) {
3353    lock.lock();
3354    try {
3355        _gtk_button_set_relief(button, newstyle);
3356    } finally {
3357        lock.unlock();
3358    }
3359}
3360public static final native void _gtk_cell_renderer_get_size(int /*long*/ cell, int /*long*/ widget, GdkRectangle area, int[] x_offset, int[] y_offset, int[] width, int[] height);
3361public static final void gtk_cell_renderer_get_size(int /*long*/ cell, int /*long*/ widget, GdkRectangle area, int[] x_offset, int[] y_offset, int[] width, int[] height) {
3362    lock.lock();
3363    try {
3364        _gtk_cell_renderer_get_size(cell, widget, area, x_offset, y_offset, width, height);
3365    } finally {
3366        lock.unlock();
3367    }
3368}
3369public static final native int /*long*/ _gtk_cell_renderer_pixbuf_new();
3370public static final int /*long*/ gtk_cell_renderer_pixbuf_new() {
3371    lock.lock();
3372    try {
3373        return _gtk_cell_renderer_pixbuf_new();
3374    } finally {
3375        lock.unlock();
3376    }
3377}
3378public static final native int /*long*/ _gtk_cell_renderer_text_new();
3379public static final int /*long*/ gtk_cell_renderer_text_new() {
3380    lock.lock();
3381    try {
3382        return _gtk_cell_renderer_text_new();
3383    } finally {
3384        lock.unlock();
3385    }
3386}
3387public static final native int /*long*/ _gtk_cell_renderer_toggle_new();
3388public static final int /*long*/ gtk_cell_renderer_toggle_new() {
3389    lock.lock();
3390    try {
3391        return _gtk_cell_renderer_toggle_new();
3392    } finally {
3393        lock.unlock();
3394    }
3395}
3396public static final native int /*long*/ _gtk_check_button_new();
3397public static final int /*long*/ gtk_check_button_new() {
3398    lock.lock();
3399    try {
3400        return _gtk_check_button_new();
3401    } finally {
3402        lock.unlock();
3403    }
3404}
3405public static final native boolean _gtk_check_menu_item_get_active(int /*long*/ check_menu_item);
3406public static final boolean gtk_check_menu_item_get_active(int /*long*/ check_menu_item) {
3407    lock.lock();
3408    try {
3409        return _gtk_check_menu_item_get_active(check_menu_item);
3410    } finally {
3411        lock.unlock();
3412    }
3413}
3414public static final native int /*long*/ _gtk_check_menu_item_new_with_label(byte[] label);
3415public static final int /*long*/ gtk_check_menu_item_new_with_label(byte[] label) {
3416    lock.lock();
3417    try {
3418        return _gtk_check_menu_item_new_with_label(label);
3419    } finally {
3420        lock.unlock();
3421    }
3422}
3423public static final native void _gtk_check_menu_item_set_active(int /*long*/ wid, boolean active);
3424public static final void gtk_check_menu_item_set_active(int /*long*/ wid, boolean active) {
3425    lock.lock();
3426    try {
3427        _gtk_check_menu_item_set_active(wid, active);
3428    } finally {
3429        lock.unlock();
3430    }
3431}
3432public static final native int /*long*/ _gtk_check_version(int required_major, int required_minor, int required_micro);
3433public static final int /*long*/ gtk_check_version(int required_major, int required_minor, int required_micro) {
3434    lock.lock();
3435    try {
3436        return _gtk_check_version(required_major, required_minor, required_micro);
3437    } finally {
3438        lock.unlock();
3439    }
3440}
3441public static final native void _gtk_clipboard_clear(int /*long*/ clipboard);
3442public static final void gtk_clipboard_clear(int /*long*/ clipboard) {
3443    lock.lock();
3444    try {
3445        _gtk_clipboard_clear(clipboard);
3446    } finally {
3447        lock.unlock();
3448    }
3449}
3450public static final native int /*long*/ _gtk_clipboard_get(int /*long*/ selection);
3451public static final int /*long*/ gtk_clipboard_get(int /*long*/ selection) {
3452    lock.lock();
3453    try {
3454        return _gtk_clipboard_get(selection);
3455    } finally {
3456        lock.unlock();
3457    }
3458}
3459public static final native boolean _gtk_clipboard_set_with_data(int /*long*/ clipboard, int /*long*/ target, int n_targets, int /*long*/ get_func, int /*long*/ clear_func, int /*long*/ user_data);
3460public static final boolean gtk_clipboard_set_with_data(int /*long*/ clipboard, int /*long*/ target, int n_targets, int /*long*/ get_func, int /*long*/ clear_func, int /*long*/ user_data) {
3461    lock.lock();
3462    try {
3463        return _gtk_clipboard_set_with_data(clipboard, target, n_targets, get_func, clear_func, user_data);
3464    } finally {
3465        lock.unlock();
3466    }
3467}
3468public static final native int /*long*/ _gtk_clipboard_wait_for_contents(int /*long*/ clipboard, int /*long*/ target);
3469public static final int /*long*/ gtk_clipboard_wait_for_contents(int /*long*/ clipboard, int /*long*/ target) {
3470    lock.lock();
3471    try {
3472        return _gtk_clipboard_wait_for_contents(clipboard, target);
3473    } finally {
3474        lock.unlock();
3475    }
3476}
3477public static final native int /*long*/ _gtk_color_selection_dialog_new(byte[] title);
3478public static final int /*long*/ gtk_color_selection_dialog_new(byte[] title) {
3479    lock.lock();
3480    try {
3481        return _gtk_color_selection_dialog_new(title);
3482    } finally {
3483        lock.unlock();
3484    }
3485}
3486public static final native void _gtk_color_selection_get_current_color(int /*long*/ colorsel, GdkColor color);
3487public static final void gtk_color_selection_get_current_color(int /*long*/ colorsel, GdkColor color) {
3488    lock.lock();
3489    try {
3490        _gtk_color_selection_get_current_color(colorsel, color);
3491    } finally {
3492        lock.unlock();
3493    }
3494}
3495public static final native void _gtk_color_selection_set_current_color(int /*long*/ colorsel, GdkColor color);
3496public static final void gtk_color_selection_set_current_color(int /*long*/ colorsel, GdkColor color) {
3497    lock.lock();
3498    try {
3499        _gtk_color_selection_set_current_color(colorsel, color);
3500    } finally {
3501        lock.unlock();
3502    }
3503}
3504public static final native void _gtk_color_selection_set_has_palette(int /*long*/ colorsel, boolean has_palette);
3505public static final void gtk_color_selection_set_has_palette(int /*long*/ colorsel, boolean has_palette) {
3506    lock.lock();
3507    try {
3508        _gtk_color_selection_set_has_palette(colorsel, has_palette);
3509    } finally {
3510        lock.unlock();
3511    }
3512}
3513public static final native void _gtk_combo_disable_activate(int /*long*/ combo);
3514public static final void gtk_combo_disable_activate(int /*long*/ combo) {
3515    lock.lock();
3516    try {
3517        _gtk_combo_disable_activate(combo);
3518    } finally {
3519        lock.unlock();
3520    }
3521}
3522public static final native int /*long*/ _gtk_combo_new();
3523public static final int /*long*/ gtk_combo_new() {
3524    lock.lock();
3525    try {
3526        return _gtk_combo_new();
3527    } finally {
3528        lock.unlock();
3529    }
3530}
3531public static final native void _gtk_combo_set_case_sensitive(int /*long*/ combo, boolean val);
3532public static final void gtk_combo_set_case_sensitive(int /*long*/ combo, boolean val) {
3533    lock.lock();
3534    try {
3535        _gtk_combo_set_case_sensitive(combo, val);
3536    } finally {
3537        lock.unlock();
3538    }
3539}
3540public static final native void _gtk_combo_set_popdown_strings(int /*long*/ combo, int /*long*/ strings);
3541public static final void gtk_combo_set_popdown_strings(int /*long*/ combo, int /*long*/ strings) {
3542    lock.lock();
3543    try {
3544        _gtk_combo_set_popdown_strings(combo, strings);
3545    } finally {
3546        lock.unlock();
3547    }
3548}
3549public static final native void _gtk_container_add(int /*long*/ container, int /*long*/ widget);
3550public static final void gtk_container_add(int /*long*/ container, int /*long*/ widget) {
3551    lock.lock();
3552    try {
3553        _gtk_container_add(container, widget);
3554    } finally {
3555        lock.unlock();
3556    }
3557}
3558public static final native void _gtk_container_forall(int /*long*/ container, int /*long*/ callback, int /*long*/ callback_data);
3559public static final void gtk_container_forall(int /*long*/ container, int /*long*/ callback, int /*long*/ callback_data) {
3560    lock.lock();
3561    try {
3562        _gtk_container_forall(container, callback, callback_data);
3563    } finally {
3564        lock.unlock();
3565    }
3566}
3567public static final native int _gtk_container_get_border_width(int /*long*/ container);
3568public static final int gtk_container_get_border_width(int /*long*/ container) {
3569    lock.lock();
3570    try {
3571        return _gtk_container_get_border_width(container);
3572    } finally {
3573        lock.unlock();
3574    }
3575}
3576public static final native int /*long*/ _gtk_container_get_children(int /*long*/ container);
3577public static final int /*long*/ gtk_container_get_children(int /*long*/ container) {
3578    lock.lock();
3579    try {
3580        return _gtk_container_get_children(container);
3581    } finally {
3582        lock.unlock();
3583    }
3584}
3585public static final native void _gtk_container_remove(int /*long*/ container, int /*long*/ widget);
3586public static final void gtk_container_remove(int /*long*/ container, int /*long*/ widget) {
3587    lock.lock();
3588    try {
3589        _gtk_container_remove(container, widget);
3590    } finally {
3591        lock.unlock();
3592    }
3593}
3594public static final native void _gtk_container_resize_children(int /*long*/ container);
3595public static final void gtk_container_resize_children(int /*long*/ container) {
3596    lock.lock();
3597    try {
3598        _gtk_container_resize_children(container);
3599    } finally {
3600        lock.unlock();
3601    }
3602}
3603public static final native void _gtk_container_set_border_width(int /*long*/ container, int border_width);
3604public static final void gtk_container_set_border_width(int /*long*/ container, int border_width) {
3605    lock.lock();
3606    try {
3607        _gtk_container_set_border_width(container, border_width);
3608    } finally {
3609        lock.unlock();
3610    }
3611}
3612public static final native int /*long*/ _gtk_dialog_add_button(int /*long*/ dialog, byte[] button_text, int response_id);
3613public static final int /*long*/ gtk_dialog_add_button(int /*long*/ dialog, byte[] button_text, int response_id) {
3614    lock.lock();
3615    try {
3616        return _gtk_dialog_add_button(dialog, button_text, response_id);
3617    } finally {
3618        lock.unlock();
3619    }
3620}
3621public static final native int _gtk_dialog_run(int /*long*/ dialog);
3622public static final int gtk_dialog_run(int /*long*/ dialog) {
3623    lock.lock();
3624    try {
3625        return _gtk_dialog_run(dialog);
3626    } finally {
3627        lock.unlock();
3628    }
3629}
3630public static final native int /*long*/ _gtk_drag_begin(int /*long*/ widget, int /*long*/ targets, int actions, int button, int /*long*/ event);
3631public static final int /*long*/ gtk_drag_begin(int /*long*/ widget, int /*long*/ targets, int actions, int button, int /*long*/ event) {
3632    lock.lock();
3633    try {
3634        return _gtk_drag_begin(widget, targets, actions, button, event);
3635    } finally {
3636        lock.unlock();
3637    }
3638}
3639public static final native boolean _gtk_drag_check_threshold(int /*long*/ widget, int start_x, int start_y, int current_x, int current_y);
3640public static final boolean gtk_drag_check_threshold(int /*long*/ widget, int start_x, int start_y, int current_x, int current_y) {
3641    lock.lock();
3642    try {
3643        return _gtk_drag_check_threshold(widget, start_x, start_y, current_x, current_y);
3644    } finally {
3645        lock.unlock();
3646    }
3647}
3648public static final native int /*long*/ _gtk_drag_dest_find_target(int /*long*/ widget, int /*long*/ context, int /*long*/ target_list);
3649public static final int /*long*/ gtk_drag_dest_find_target(int /*long*/ widget, int /*long*/ context, int /*long*/ target_list) {
3650    lock.lock();
3651    try {
3652        return _gtk_drag_dest_find_target(widget, context, target_list);
3653    } finally {
3654        lock.unlock();
3655    }
3656}
3657public static final native void _gtk_drag_dest_set(int /*long*/ widget, int flags, int /*long*/ targets, int n_targets, int actions);
3658public static final void gtk_drag_dest_set(int /*long*/ widget, int flags, int /*long*/ targets, int n_targets, int actions) {
3659    lock.lock();
3660    try {
3661        _gtk_drag_dest_set(widget, flags, targets, n_targets, actions);
3662    } finally {
3663        lock.unlock();
3664    }
3665}
3666public static final native void _gtk_drag_dest_unset(int /*long*/ widget);
3667public static final void gtk_drag_dest_unset(int /*long*/ widget) {
3668    lock.lock();
3669    try {
3670        _gtk_drag_dest_unset(widget);
3671    } finally {
3672        lock.unlock();
3673    }
3674}
3675public static final native void _gtk_drag_finish(int /*long*/ context, boolean success, boolean delete, int time);
3676public static final void gtk_drag_finish(int /*long*/ context, boolean success, boolean delete, int time) {
3677    lock.lock();
3678    try {
3679        _gtk_drag_finish(context, success, delete, time);
3680    } finally {
3681        lock.unlock();
3682    }
3683}
3684public static final native void _gtk_drag_get_data(int /*long*/ widget, int /*long*/ context, int /*long*/ target, int time);
3685public static final void gtk_drag_get_data(int /*long*/ widget, int /*long*/ context, int /*long*/ target, int time) {
3686    lock.lock();
3687    try {
3688        _gtk_drag_get_data(widget, context, target, time);
3689    } finally {
3690        lock.unlock();
3691    }
3692}
3693public static final native int /*long*/ _gtk_drawing_area_new();
3694public static final int /*long*/ gtk_drawing_area_new() {
3695    lock.lock();
3696    try {
3697        return _gtk_drawing_area_new();
3698    } finally {
3699        lock.unlock();
3700    }
3701}
3702public static final native void _gtk_editable_copy_clipboard(int /*long*/ editable);
3703public static final void gtk_editable_copy_clipboard(int /*long*/ editable) {
3704    lock.lock();
3705    try {
3706        _gtk_editable_copy_clipboard(editable);
3707    } finally {
3708        lock.unlock();
3709    }
3710}
3711public static final native void _gtk_editable_cut_clipboard(int /*long*/ editable);
3712public static final void gtk_editable_cut_clipboard(int /*long*/ editable) {
3713    lock.lock();
3714    try {
3715        _gtk_editable_cut_clipboard(editable);
3716    } finally {
3717        lock.unlock();
3718    }
3719}
3720public static final native void _gtk_editable_delete_selection(int /*long*/ editable);
3721public static final void gtk_editable_delete_selection(int /*long*/ editable) {
3722    lock.lock();
3723    try {
3724        _gtk_editable_delete_selection(editable);
3725    } finally {
3726        lock.unlock();
3727    }
3728}
3729public static final native void _gtk_editable_delete_text(int /*long*/ editable, int start_pos, int end_pos);
3730public static final void gtk_editable_delete_text(int /*long*/ editable, int start_pos, int end_pos) {
3731    lock.lock();
3732    try {
3733        _gtk_editable_delete_text(editable, start_pos, end_pos);
3734    } finally {
3735        lock.unlock();
3736    }
3737}
3738public static final native int /*long*/ _gtk_editable_get_chars(int /*long*/ editable, int start_pos, int end_pos);
3739public static final int /*long*/ gtk_editable_get_chars(int /*long*/ editable, int start_pos, int end_pos) {
3740    lock.lock();
3741    try {
3742        return _gtk_editable_get_chars(editable, start_pos, end_pos);
3743    } finally {
3744        lock.unlock();
3745    }
3746}
3747public static final native boolean _gtk_editable_get_editable(int /*long*/ editable);
3748public static final boolean gtk_editable_get_editable(int /*long*/ editable) {
3749    lock.lock();
3750    try {
3751        return _gtk_editable_get_editable(editable);
3752    } finally {
3753        lock.unlock();
3754    }
3755}
3756public static final native int _gtk_editable_get_position(int /*long*/ editable);
3757public static final int gtk_editable_get_position(int /*long*/ editable) {
3758    lock.lock();
3759    try {
3760        return _gtk_editable_get_position(editable);
3761    } finally {
3762        lock.unlock();
3763    }
3764}
3765public static final native boolean _gtk_editable_get_selection_bounds(int /*long*/ editable, int[] start, int[] end);
3766public static final boolean gtk_editable_get_selection_bounds(int /*long*/ editable, int[] start, int[] end) {
3767    lock.lock();
3768    try {
3769        return _gtk_editable_get_selection_bounds(editable, start, end);
3770    } finally {
3771        lock.unlock();
3772    }
3773}
3774public static final native void _gtk_editable_insert_text(int /*long*/ editable, byte[] new_text, int new_text_length, int[] position);
3775public static final void gtk_editable_insert_text(int /*long*/ editable, byte[] new_text, int new_text_length, int[] position) {
3776    lock.lock();
3777    try {
3778        _gtk_editable_insert_text(editable, new_text, new_text_length, position);
3779    } finally {
3780        lock.unlock();
3781    }
3782}
3783public static final native void _gtk_editable_paste_clipboard(int /*long*/ editable);
3784public static final void gtk_editable_paste_clipboard(int /*long*/ editable) {
3785    lock.lock();
3786    try {
3787        _gtk_editable_paste_clipboard(editable);
3788    } finally {
3789        lock.unlock();
3790    }
3791}
3792public static final native void _gtk_editable_select_region(int /*long*/ editable, int start, int end);
3793public static final void gtk_editable_select_region(int /*long*/ editable, int start, int end) {
3794    lock.lock();
3795    try {
3796        _gtk_editable_select_region(editable, start, end);
3797    } finally {
3798        lock.unlock();
3799    }
3800}
3801public static final native void _gtk_editable_set_editable(int /*long*/ entry, boolean editable);
3802public static final void gtk_editable_set_editable(int /*long*/ entry, boolean editable) {
3803    lock.lock();
3804    try {
3805        _gtk_editable_set_editable(entry, editable);
3806    } finally {
3807        lock.unlock();
3808    }
3809}
3810public static final native void _gtk_editable_set_position(int /*long*/ editable, int position);
3811public static final void gtk_editable_set_position(int /*long*/ editable, int position) {
3812    lock.lock();
3813    try {
3814        _gtk_editable_set_position(editable, position);
3815    } finally {
3816        lock.unlock();
3817    }
3818}
3819public static final native char _gtk_entry_get_invisible_char(int /*long*/ entry);
3820public static final char gtk_entry_get_invisible_char(int /*long*/ entry) {
3821    lock.lock();
3822    try {
3823        return _gtk_entry_get_invisible_char(entry);
3824    } finally {
3825        lock.unlock();
3826    }
3827}
3828public static final native int /*long*/ _gtk_entry_get_layout (int /*long*/ entry);
3829public static final int /*long*/ gtk_entry_get_layout (int /*long*/ entry) {
3830    lock.lock();
3831    try {
3832        return _gtk_entry_get_layout(entry);
3833    } finally {
3834        lock.unlock();
3835    }
3836}
3837public static final native int _gtk_entry_get_max_length(int /*long*/ entry);
3838public static final int gtk_entry_get_max_length(int /*long*/ entry) {
3839    lock.lock();
3840    try {
3841        return _gtk_entry_get_max_length(entry);
3842    } finally {
3843        lock.unlock();
3844    }
3845}
3846public static final native int /*long*/ _gtk_entry_get_text(int /*long*/ entry);
3847public static final int /*long*/ gtk_entry_get_text(int /*long*/ entry) {
3848    lock.lock();
3849    try {
3850        return _gtk_entry_get_text(entry);
3851    } finally {
3852        lock.unlock();
3853    }
3854}
3855public static final native boolean _gtk_entry_get_visibility(int /*long*/ entry);
3856public static final boolean gtk_entry_get_visibility(int /*long*/ entry) {
3857    lock.lock();
3858    try {
3859        return _gtk_entry_get_visibility(entry);
3860    } finally {
3861        lock.unlock();
3862    }
3863}
3864public static final native int /*long*/ _gtk_entry_new();
3865public static final int /*long*/ gtk_entry_new() {
3866    lock.lock();
3867    try {
3868        return _gtk_entry_new();
3869    } finally {
3870        lock.unlock();
3871    }
3872}
3873public static final native void _gtk_entry_set_activates_default(int /*long*/ entry, boolean setting);
3874public static final void gtk_entry_set_activates_default(int /*long*/ entry, boolean setting) {
3875    lock.lock();
3876    try {
3877        _gtk_entry_set_activates_default(entry, setting);
3878    } finally {
3879        lock.unlock();
3880    }
3881}
3882public static final native void _gtk_entry_set_alignment(int /*long*/ entry, float xalign);
3883public static final void gtk_entry_set_alignment(int /*long*/ entry, float xalign) {
3884    lock.lock();
3885    try {
3886        _gtk_entry_set_alignment(entry, xalign);
3887    } finally {
3888        lock.unlock();
3889    }
3890}
3891public static final native void _gtk_entry_set_has_frame(int /*long*/ entry, boolean setting);
3892public static final void gtk_entry_set_has_frame(int /*long*/ entry, boolean setting) {
3893    lock.lock();
3894    try {
3895        _gtk_entry_set_has_frame(entry, setting);
3896    } finally {
3897        lock.unlock();
3898    }
3899}
3900public static final native void _gtk_entry_set_invisible_char(int /*long*/ entry, char ch);
3901public static final void gtk_entry_set_invisible_char(int /*long*/ entry, char ch) {
3902    lock.lock();
3903    try {
3904        _gtk_entry_set_invisible_char(entry, ch);
3905    } finally {
3906        lock.unlock();
3907    }
3908}
3909public static final native void _gtk_entry_set_max_length(int /*long*/ entry, int max);
3910public static final void gtk_entry_set_max_length(int /*long*/ entry, int max) {
3911    lock.lock();
3912    try {
3913        _gtk_entry_set_max_length(entry, max);
3914    } finally {
3915        lock.unlock();
3916    }
3917}
3918public static final native void _gtk_entry_set_text(int /*long*/ entry, byte[] text);
3919public static final void gtk_entry_set_text(int /*long*/ entry, byte[] text) {
3920    lock.lock();
3921    try {
3922        _gtk_entry_set_text(entry, text);
3923    } finally {
3924        lock.unlock();
3925    }
3926}
3927public static final native void _gtk_entry_set_visibility(int /*long*/ entry, boolean visible);
3928public static final void gtk_entry_set_visibility(int /*long*/ entry, boolean visible) {
3929    lock.lock();
3930    try {
3931        _gtk_entry_set_visibility(entry, visible);
3932    } finally {
3933        lock.unlock();
3934    }
3935}
3936public static final native int _gtk_events_pending();
3937public static final int gtk_events_pending() {
3938    lock.lock();
3939    try {
3940        return _gtk_events_pending();
3941    } finally {
3942        lock.unlock();
3943    }
3944}
3945public static final native void _gtk_file_chooser_add_filter(int /*long*/ chooser, int /*long*/ filter);
3946public static final void gtk_file_chooser_add_filter(int /*long*/ chooser, int /*long*/ filter) {
3947    lock.lock();
3948    try {
3949        _gtk_file_chooser_add_filter(chooser, filter);
3950    } finally {
3951        lock.unlock();
3952    }
3953}
3954public static final native int /*long*/ _gtk_file_chooser_dialog_new(byte[] title, int /*long*/ parent, int action, int /*long*/ first_button_text, int first_button_id, int /*long*/ second_button_text, int second_button_id, int /*long*/ terminator);
3955public static final int /*long*/ gtk_file_chooser_dialog_new(byte[] title, int /*long*/ parent, int action, int /*long*/ first_button_text, int first_button_id, int /*long*/ second_button_text, int second_button_id, int /*long*/ terminator) {
3956    lock.lock();
3957    try {
3958        return _gtk_file_chooser_dialog_new(title, parent, action, first_button_text, first_button_id, second_button_text, second_button_id, terminator);
3959    } finally {
3960        lock.unlock();
3961    }
3962}
3963public static final native int /*long*/ _gtk_file_chooser_get_current_folder(int /*long*/ chooser);
3964public static final int /*long*/ gtk_file_chooser_get_current_folder(int /*long*/ chooser) {
3965    lock.lock();
3966    try {
3967        return _gtk_file_chooser_get_current_folder(chooser);
3968    } finally {
3969        lock.unlock();
3970    }
3971}
3972public static final native int /*long*/ _gtk_file_chooser_get_filename(int /*long*/ chooser);
3973public static final int /*long*/ gtk_file_chooser_get_filename(int /*long*/ chooser) {
3974    lock.lock();
3975    try {
3976        return _gtk_file_chooser_get_filename(chooser);
3977    } finally {
3978        lock.unlock();
3979    }
3980}
3981public static final native int /*long*/ _gtk_file_chooser_get_filenames(int /*long*/ chooser);
3982public static final int /*long*/ gtk_file_chooser_get_filenames(int /*long*/ chooser) {
3983    lock.lock();
3984    try {
3985        return _gtk_file_chooser_get_filenames(chooser);
3986    } finally {
3987        lock.unlock();
3988    }
3989}
3990public static final native void _gtk_file_chooser_set_current_folder(int /*long*/ chooser, byte[] filename);
3991public static final void gtk_file_chooser_set_current_folder(int /*long*/ chooser, byte[] filename) {
3992    lock.lock();
3993    try {
3994        _gtk_file_chooser_set_current_folder(chooser, filename);
3995    } finally {
3996        lock.unlock();
3997    }
3998}
3999public static final native void _gtk_file_chooser_set_current_name(int /*long*/ chooser, byte[] name);
4000public static final void gtk_file_chooser_set_current_name(int /*long*/ chooser, byte[] name) {
4001    lock.lock();
4002    try {
4003        _gtk_file_chooser_set_current_name(chooser, name);
4004    } finally {
4005        lock.unlock();
4006    }
4007}
4008public static final native void _gtk_file_chooser_set_extra_widget(int /*long*/ chooser, int /*long*/ extra_widget);
4009public static final void gtk_file_chooser_set_extra_widget(int /*long*/ chooser, int /*long*/ extra_widget) {
4010    lock.lock();
4011    try {
4012        _gtk_file_chooser_set_extra_widget(chooser, extra_widget);
4013    } finally {
4014        lock.unlock();
4015    }
4016}
4017public static final native void _gtk_file_chooser_set_filename(int /*long*/ chooser, byte[] name);
4018public static final void gtk_file_chooser_set_filename(int /*long*/ chooser, byte[] name) {
4019    lock.lock();
4020    try {
4021        _gtk_file_chooser_set_filename(chooser, name);
4022    } finally {
4023        lock.unlock();
4024    }
4025}
4026public static final native void _gtk_file_chooser_set_select_multiple(int /*long*/ chooser, boolean select_multiple);
4027public static final void gtk_file_chooser_set_select_multiple(int /*long*/ chooser, boolean select_multiple) {
4028    lock.lock();
4029    try {
4030        _gtk_file_chooser_set_select_multiple(chooser, select_multiple);
4031    } finally {
4032        lock.unlock();
4033    }
4034}
4035public static final native void _gtk_file_filter_add_pattern(int /*long*/ filter, byte[] pattern);
4036public static final void gtk_file_filter_add_pattern(int /*long*/ filter, byte[] pattern) {
4037    lock.lock();
4038    try {
4039        _gtk_file_filter_add_pattern(filter, pattern);
4040    } finally {
4041        lock.unlock();
4042    }
4043}
4044public static final native int /*long*/ _gtk_file_filter_new();
4045public static final int /*long*/ gtk_file_filter_new() {
4046    lock.lock();
4047    try {
4048        return _gtk_file_filter_new();
4049    } finally {
4050        lock.unlock();
4051    }
4052}
4053public static final native void _gtk_file_filter_set_name(int /*long*/ filter, byte[] name);
4054public static final void gtk_file_filter_set_name(int /*long*/ filter, byte[] name) {
4055    lock.lock();
4056    try {
4057        _gtk_file_filter_set_name(filter, name);
4058    } finally {
4059        lock.unlock();
4060    }
4061}
4062public static final native int /*long*/ _gtk_file_selection_get_filename(int /*long*/ filesel);
4063public static final int /*long*/ gtk_file_selection_get_filename(int /*long*/ filesel) {
4064    lock.lock();
4065    try {
4066        return _gtk_file_selection_get_filename(filesel);
4067    } finally {
4068        lock.unlock();
4069    }
4070}
4071public static final native int /*long*/ _gtk_file_selection_get_selections(int /*long*/ filesel);
4072public static final int /*long*/ gtk_file_selection_get_selections(int /*long*/ filesel) {
4073    lock.lock();
4074    try {
4075        return _gtk_file_selection_get_selections(filesel);
4076    } finally {
4077        lock.unlock();
4078    }
4079}
4080public static final native void _gtk_file_selection_hide_fileop_buttons(int /*long*/ filesel);
4081public static final void gtk_file_selection_hide_fileop_buttons(int /*long*/ filesel) {
4082    lock.lock();
4083    try {
4084        _gtk_file_selection_hide_fileop_buttons(filesel);
4085    } finally {
4086        lock.unlock();
4087    }
4088}
4089public static final native int /*long*/ _gtk_file_selection_new(byte[] title);
4090public static final int /*long*/ gtk_file_selection_new(byte[] title) {
4091    lock.lock();
4092    try {
4093        return _gtk_file_selection_new(title);
4094    } finally {
4095        lock.unlock();
4096    }
4097}
4098public static final native void _gtk_file_selection_set_filename(int /*long*/ filesel, int /*long*/ filename);
4099public static final void gtk_file_selection_set_filename(int /*long*/ filesel, int /*long*/ filename) {
4100    lock.lock();
4101    try {
4102        _gtk_file_selection_set_filename(filesel, filename);
4103    } finally {
4104        lock.unlock();
4105    }
4106}
4107public static final native void _gtk_file_selection_set_select_multiple(int /*long*/ filesel, boolean select_multiple);
4108public static final void gtk_file_selection_set_select_multiple(int /*long*/ filesel, boolean select_multiple) {
4109    lock.lock();
4110    try {
4111        _gtk_file_selection_set_select_multiple(filesel, select_multiple);
4112    } finally {
4113        lock.unlock();
4114    }
4115}
4116public static final native void _gtk_fixed_move(int /*long*/ fixed, int /*long*/ widget, int x, int y);
4117public static final void gtk_fixed_move(int /*long*/ fixed, int /*long*/ widget, int x, int y) {
4118    lock.lock();
4119    try {
4120        _gtk_fixed_move(fixed, widget, x, y);
4121    } finally {
4122        lock.unlock();
4123    }
4124}
4125public static final native int /*long*/ _gtk_fixed_new();
4126public static final int /*long*/ gtk_fixed_new() {
4127    lock.lock();
4128    try {
4129        return _gtk_fixed_new();
4130    } finally {
4131        lock.unlock();
4132    }
4133}
4134public static final native void _gtk_fixed_set_has_window(int /*long*/ fixed, boolean has_window);
4135public static final void gtk_fixed_set_has_window(int /*long*/ fixed, boolean has_window) {
4136    lock.lock();
4137    try {
4138        _gtk_fixed_set_has_window(fixed, has_window);
4139    } finally {
4140        lock.unlock();
4141    }
4142}
4143public static final native int /*long*/ _gtk_font_selection_dialog_get_font_name(int /*long*/ fsd);
4144public static final int /*long*/ gtk_font_selection_dialog_get_font_name(int /*long*/ fsd) {
4145    lock.lock();
4146    try {
4147        return _gtk_font_selection_dialog_get_font_name(fsd);
4148    } finally {
4149        lock.unlock();
4150    }
4151}
4152public static final native int /*long*/ _gtk_font_selection_dialog_new(byte[] title);
4153public static final int /*long*/ gtk_font_selection_dialog_new(byte[] title) {
4154    lock.lock();
4155    try {
4156        return _gtk_font_selection_dialog_new(title);
4157    } finally {
4158        lock.unlock();
4159    }
4160}
4161public static final native boolean _gtk_font_selection_dialog_set_font_name(int /*long*/ fsd, byte[] fontname);
4162public static final boolean gtk_font_selection_dialog_set_font_name(int /*long*/ fsd, byte[] fontname) {
4163    lock.lock();
4164    try {
4165        return _gtk_font_selection_dialog_set_font_name(fsd, fontname);
4166    } finally {
4167        lock.unlock();
4168    }
4169}
4170public static final native int /*long*/ _gtk_frame_new(byte[] label);
4171public static final int /*long*/ gtk_frame_new(byte[] label) {
4172    lock.lock();
4173    try {
4174        return _gtk_frame_new(label);
4175    } finally {
4176        lock.unlock();
4177    }
4178}
4179public static final native int /*long*/ _gtk_frame_get_label_widget(int /*long*/ frame);
4180public static final int /*long*/ gtk_frame_get_label_widget(int /*long*/ frame) {
4181    lock.lock();
4182    try {
4183        return _gtk_frame_get_label_widget(frame);
4184    } finally {
4185        lock.unlock();
4186    }
4187}
4188public static final native void _gtk_frame_set_label(int /*long*/ frame, byte[] label);
4189public static final void gtk_frame_set_label(int /*long*/ frame, byte[] label) {
4190    lock.lock();
4191    try {
4192        _gtk_frame_set_label(frame, label);
4193    } finally {
4194        lock.unlock();
4195    }
4196}
4197public static final native void _gtk_frame_set_label_widget(int /*long*/ frame, int /*long*/ label_widget);
4198public static final void gtk_frame_set_label_widget(int /*long*/ frame, int /*long*/ label_widget) {
4199    lock.lock();
4200    try {
4201        _gtk_frame_set_label_widget(frame, label_widget);
4202    } finally {
4203        lock.unlock();
4204    }
4205}
4206public static final native void _gtk_frame_set_shadow_type(int /*long*/ frame, int type);
4207public static final void gtk_frame_set_shadow_type(int /*long*/ frame, int type) {
4208    lock.lock();
4209    try {
4210        _gtk_frame_set_shadow_type(frame, type);
4211    } finally {
4212        lock.unlock();
4213    }
4214}
4215public static final native int /*long*/ _gtk_get_current_event();
4216public static final int /*long*/ gtk_get_current_event() {
4217    lock.lock();
4218    try {
4219        return _gtk_get_current_event();
4220    } finally {
4221        lock.unlock();
4222    }
4223}
4224public static final native boolean _gtk_get_current_event_state (int[] state);
4225public static final boolean gtk_get_current_event_state (int[] state) {
4226    lock.lock();
4227    try {
4228        return _gtk_get_current_event_state(state);
4229    } finally {
4230        lock.unlock();
4231    }
4232}
4233public static final native int _gtk_get_current_event_time();
4234public static final int gtk_get_current_event_time() {
4235    lock.lock();
4236    try {
4237        return _gtk_get_current_event_time();
4238    } finally {
4239        lock.unlock();
4240    }
4241}
4242public static final native int /*long*/ _gtk_get_default_language();
4243public static final int /*long*/ gtk_get_default_language() {
4244    lock.lock();
4245    try {
4246        return _gtk_get_default_language();
4247    } finally {
4248        lock.unlock();
4249    }
4250}
4251public static final native int /*long*/ _gtk_get_event_widget(int /*long*/ event);
4252public static final int /*long*/ gtk_get_event_widget(int /*long*/ event) {
4253    lock.lock();
4254    try {
4255        return _gtk_get_event_widget(event);
4256    } finally {
4257        lock.unlock();
4258    }
4259}
4260public static final native void _gtk_grab_add(int /*long*/ widget);
4261public static final void gtk_grab_add(int /*long*/ widget) {
4262    lock.lock();
4263    try {
4264        _gtk_grab_add(widget);
4265    } finally {
4266        lock.unlock();
4267    }
4268}
4269public static final native int /*long*/ _gtk_grab_get_current();
4270public static final int /*long*/ gtk_grab_get_current() {
4271    lock.lock();
4272    try {
4273        return _gtk_grab_get_current();
4274    } finally {
4275        lock.unlock();
4276    }
4277}
4278public static final native void _gtk_grab_remove(int /*long*/ widget);
4279public static final void gtk_grab_remove(int /*long*/ widget) {
4280    lock.lock();
4281    try {
4282        _gtk_grab_remove(widget);
4283    } finally {
4284        lock.unlock();
4285    }
4286}
4287public static final native int /*long*/ _gtk_hbox_new(boolean homogeneous, int spacing);
4288public static final int /*long*/ gtk_hbox_new(boolean homogeneous, int spacing) {
4289    lock.lock();
4290    try {
4291        return _gtk_hbox_new(homogeneous, spacing);
4292    } finally {
4293        lock.unlock();
4294    }
4295}
4296public static final native int /*long*/ _gtk_hscale_new(int /*long*/ adjustment);
4297public static final int /*long*/ gtk_hscale_new(int /*long*/ adjustment) {
4298    lock.lock();
4299    try {
4300        return _gtk_hscale_new(adjustment);
4301    } finally {
4302        lock.unlock();
4303    }
4304}
4305public static final native int /*long*/ _gtk_hscrollbar_new(int /*long*/ adjustment);
4306public static final int /*long*/ gtk_hscrollbar_new(int /*long*/ adjustment) {
4307    lock.lock();
4308    try {
4309        return _gtk_hscrollbar_new(adjustment);
4310    } finally {
4311        lock.unlock();
4312    }
4313}
4314public static final native int /*long*/ _gtk_hseparator_new();
4315public static final int /*long*/ gtk_hseparator_new() {
4316    lock.lock();
4317    try {
4318        return _gtk_hseparator_new();
4319    } finally {
4320        lock.unlock();
4321    }
4322}
4323public static final native int /*long*/ _gtk_icon_factory_lookup_default(byte[] stock_id);
4324public static final int /*long*/ gtk_icon_factory_lookup_default(byte[] stock_id) {
4325    lock.lock();
4326    try {
4327        return _gtk_icon_factory_lookup_default(stock_id);
4328    } finally {
4329        lock.unlock();
4330    }
4331}
4332public static final native int /*long*/ _gtk_icon_set_render_icon(int /*long*/ icon_set, int /*long*/ style, int direction, int state, int size, int /*long*/ widget, int /*long*/ detail);
4333public static final int /*long*/ gtk_icon_set_render_icon(int /*long*/ icon_set, int /*long*/ style, int direction, int state, int size, int /*long*/ widget, int /*long*/ detail) {
4334    lock.lock();
4335    try {
4336        return _gtk_icon_set_render_icon(icon_set, style, direction, state, size, widget, detail);
4337    } finally {
4338        lock.unlock();
4339    }
4340}
4341public static final native boolean _gtk_im_context_filter_keypress(int /*long*/ context, int /*long*/ event);
4342public static final boolean gtk_im_context_filter_keypress(int /*long*/ context, int /*long*/ event) {
4343    lock.lock();
4344    try {
4345        return _gtk_im_context_filter_keypress(context, event);
4346    } finally {
4347        lock.unlock();
4348    }
4349}
4350public static final native void _gtk_im_context_focus_in(int /*long*/ context);
4351public static final void gtk_im_context_focus_in(int /*long*/ context) {
4352    lock.lock();
4353    try {
4354        _gtk_im_context_focus_in(context);
4355    } finally {
4356        lock.unlock();
4357    }
4358}
4359public static final native void _gtk_im_context_focus_out(int /*long*/ context);
4360public static final void gtk_im_context_focus_out(int /*long*/ context) {
4361    lock.lock();
4362    try {
4363        _gtk_im_context_focus_out(context);
4364    } finally {
4365        lock.unlock();
4366    }
4367}
4368public static final native void _gtk_im_context_get_preedit_string(int /*long*/ context, int /*long*/[] str, int /*long*/[] attrs, int[] cursor_pos);
4369public static final void gtk_im_context_get_preedit_string(int /*long*/ context, int /*long*/[] str, int /*long*/[] attrs, int[] cursor_pos) {
4370    lock.lock();
4371    try {
4372        _gtk_im_context_get_preedit_string(context, str, attrs, cursor_pos);
4373    } finally {
4374        lock.unlock();
4375    }
4376}
4377public static final native int /*long*/ _gtk_im_context_get_type();
4378public static final int /*long*/ gtk_im_context_get_type() {
4379    lock.lock();
4380    try {
4381        return _gtk_im_context_get_type();
4382    } finally {
4383        lock.unlock();
4384    }
4385}
4386public static final native void _gtk_im_context_reset(int /*long*/ context);
4387public static final void gtk_im_context_reset(int /*long*/ context) {
4388    lock.lock();
4389    try {
4390        _gtk_im_context_reset(context);
4391    } finally {
4392        lock.unlock();
4393    }
4394}
4395public static final native void _gtk_im_context_set_client_window(int /*long*/ context, int /*long*/ window);
4396public static final void gtk_im_context_set_client_window(int /*long*/ context, int /*long*/ window) {
4397    lock.lock();
4398    try {
4399        _gtk_im_context_set_client_window(context, window);
4400    } finally {
4401        lock.unlock();
4402    }
4403}
4404public static final native void _gtk_im_context_set_cursor_location(int /*long*/ context, GdkRectangle area);
4405public static final void gtk_im_context_set_cursor_location(int /*long*/ context, GdkRectangle area) {
4406    lock.lock();
4407    try {
4408        _gtk_im_context_set_cursor_location(context, area);
4409    } finally {
4410        lock.unlock();
4411    }
4412}
4413public static final native void _gtk_im_multicontext_append_menuitems (int /*long*/ context, int /*long*/ menushell);
4414public static final void gtk_im_multicontext_append_menuitems (int /*long*/ context, int /*long*/ menushell) {
4415    lock.lock();
4416    try {
4417        _gtk_im_multicontext_append_menuitems(context, menushell);
4418    } finally {
4419        lock.unlock();
4420    }
4421}
4422public static final native int /*long*/ _gtk_im_multicontext_new();
4423public static final int /*long*/ gtk_im_multicontext_new() {
4424    lock.lock();
4425    try {
4426        return _gtk_im_multicontext_new();
4427    } finally {
4428        lock.unlock();
4429    }
4430}
4431public static final native int /*long*/ _gtk_image_menu_item_new_with_label(byte[] label);
4432public static final int /*long*/ gtk_image_menu_item_new_with_label(byte[] label) {
4433    lock.lock();
4434    try {
4435        return _gtk_image_menu_item_new_with_label(label);
4436    } finally {
4437        lock.unlock();
4438    }
4439}
4440public static final native void _gtk_image_menu_item_set_image(int /*long*/ menu_item, int /*long*/ image);
4441public static final void gtk_image_menu_item_set_image(int /*long*/ menu_item, int /*long*/ image) {
4442    lock.lock();
4443    try {
4444        _gtk_image_menu_item_set_image(menu_item, image);
4445    } finally {
4446        lock.unlock();
4447    }
4448}
4449public static final native int /*long*/ _gtk_image_new();
4450public static final int /*long*/ gtk_image_new() {
4451    lock.lock();
4452    try {
4453        return _gtk_image_new();
4454    } finally {
4455        lock.unlock();
4456    }
4457}
4458public static final native int /*long*/ _gtk_image_new_from_pixbuf(int /*long*/ pixbuf);
4459public static final int /*long*/ gtk_image_new_from_pixbuf(int /*long*/ pixbuf) {
4460    lock.lock();
4461    try {
4462        return _gtk_image_new_from_pixbuf(pixbuf);
4463    } finally {
4464        lock.unlock();
4465    }
4466}
4467public static final native int /*long*/ _gtk_image_new_from_pixmap(int /*long*/ pixmap, int /*long*/ mask);
4468public static final int /*long*/ gtk_image_new_from_pixmap(int /*long*/ pixmap, int /*long*/ mask) {
4469    lock.lock();
4470    try {
4471        return _gtk_image_new_from_pixmap(pixmap, mask);
4472    } finally {
4473        lock.unlock();
4474    }
4475}
4476public static final native void _gtk_image_set_from_pixbuf(int /*long*/ image, int /*long*/ pixbuf);
4477public static final void gtk_image_set_from_pixbuf(int /*long*/ image, int /*long*/ pixbuf) {
4478    lock.lock();
4479    try {
4480        _gtk_image_set_from_pixbuf(image, pixbuf);
4481    } finally {
4482        lock.unlock();
4483    }
4484}
4485public static final native void _gtk_image_set_from_pixmap(int /*long*/ image, int /*long*/ pixmap, int /*long*/ mask);
4486public static final void gtk_image_set_from_pixmap(int /*long*/ image, int /*long*/ pixmap, int /*long*/ mask) {
4487    lock.lock();
4488    try {
4489        _gtk_image_set_from_pixmap(image, pixmap, mask);
4490    } finally {
4491        lock.unlock();
4492    }
4493}
4494public static final native boolean _gtk_init_check(int /*long*/[] argc, int /*long*/[] argv);
4495public static final boolean gtk_init_check(int /*long*/[] argc, int /*long*/[] argv) {
4496    lock.lock();
4497    try {
4498        return _gtk_init_check(argc, argv);
4499    } finally {
4500        lock.unlock();
4501    }
4502}
4503public static final native int _gtk_label_get_mnemonic_keyval(int /*long*/ label);
4504public static final int gtk_label_get_mnemonic_keyval(int /*long*/ label) {
4505    lock.lock();
4506    try {
4507        return _gtk_label_get_mnemonic_keyval(label);
4508    } finally {
4509        lock.unlock();
4510    }
4511}
4512public static final native int /*long*/ _gtk_label_new(byte[] label);
4513public static final int /*long*/ gtk_label_new(byte[] label) {
4514    lock.lock();
4515    try {
4516        return _gtk_label_new(label);
4517    } finally {
4518        lock.unlock();
4519    }
4520}
4521public static final native int /*long*/ _gtk_label_new_with_mnemonic(byte[] str);
4522public static final int /*long*/ gtk_label_new_with_mnemonic(byte[] str) {
4523    lock.lock();
4524    try {
4525        return _gtk_label_new_with_mnemonic(str);
4526    } finally {
4527        lock.unlock();
4528    }
4529}
4530public static final native void _gtk_label_set_attributes(int /*long*/ label, int /*long*/ attrs);
4531public static final void gtk_label_set_attributes(int /*long*/ label, int /*long*/ attrs) {
4532    lock.lock();
4533    try {
4534        _gtk_label_set_attributes(label, attrs);
4535    } finally {
4536        lock.unlock();
4537    }
4538}
4539public static final native void _gtk_label_set_justify(int /*long*/ label, int jtype);
4540public static final void gtk_label_set_justify(int /*long*/ label, int jtype) {
4541    lock.lock();
4542    try {
4543        _gtk_label_set_justify(label, jtype);
4544    } finally {
4545        lock.unlock();
4546    }
4547}
4548public static final native void _gtk_label_set_line_wrap(int /*long*/ label, boolean wrap);
4549public static final void gtk_label_set_line_wrap(int /*long*/ label, boolean wrap) {
4550    lock.lock();
4551    try {
4552        _gtk_label_set_line_wrap(label, wrap);
4553    } finally {
4554        lock.unlock();
4555    }
4556}
4557public static final native void _gtk_label_set_text(int /*long*/ label, int /*long*/ str);
4558public static final void gtk_label_set_text(int /*long*/ label, int /*long*/ str) {
4559    lock.lock();
4560    try {
4561        _gtk_label_set_text(label, str);
4562    } finally {
4563        lock.unlock();
4564    }
4565}
4566public static final native void _gtk_label_set_text(int /*long*/ label, byte[] str);
4567public static final void gtk_label_set_text(int /*long*/ label, byte[] str) {
4568    lock.lock();
4569    try {
4570        _gtk_label_set_text(label, str);
4571    } finally {
4572        lock.unlock();
4573    }
4574}
4575public static final native void _gtk_label_set_text_with_mnemonic(int /*long*/ label, byte[] str);
4576public static final void gtk_label_set_text_with_mnemonic(int /*long*/ label, byte[] str) {
4577    lock.lock();
4578    try {
4579        _gtk_label_set_text_with_mnemonic(label, str);
4580    } finally {
4581        lock.unlock();
4582    }
4583}
4584public static final native void _gtk_list_append_items(int /*long*/ list, int /*long*/ items);
4585public static final void gtk_list_append_items(int /*long*/ list, int /*long*/ items) {
4586    lock.lock();
4587    try {
4588        _gtk_list_append_items(list, items);
4589    } finally {
4590        lock.unlock();
4591    }
4592}
4593public static final native void _gtk_list_clear_items(int /*long*/ list, int start, int end);
4594public static final void gtk_list_clear_items(int /*long*/ list, int start, int end) {
4595    lock.lock();
4596    try {
4597        _gtk_list_clear_items(list, start, end);
4598    } finally {
4599        lock.unlock();
4600    }
4601}
4602public static final native void _gtk_list_insert_items(int /*long*/ list, int /*long*/ items, int position);
4603public static final void gtk_list_insert_items(int /*long*/ list, int /*long*/ items, int position) {
4604    lock.lock();
4605    try {
4606        _gtk_list_insert_items(list, items, position);
4607    } finally {
4608        lock.unlock();
4609    }
4610}
4611public static final native int /*long*/ _gtk_list_item_new_with_label(byte[] label);
4612public static final int /*long*/ gtk_list_item_new_with_label(byte[] label) {
4613    lock.lock();
4614    try {
4615        return _gtk_list_item_new_with_label(label);
4616    } finally {
4617        lock.unlock();
4618    }
4619}
4620public static final native void _gtk_list_remove_items(int /*long*/ list, int /*long*/ items);
4621public static final void gtk_list_remove_items(int /*long*/ list, int /*long*/ items) {
4622    lock.lock();
4623    try {
4624        _gtk_list_remove_items(list, items);
4625    } finally {
4626        lock.unlock();
4627    }
4628}
4629public static final native void _gtk_list_select_item(int /*long*/ list, int item);
4630public static final void gtk_list_select_item(int /*long*/ list, int item) {
4631    lock.lock();
4632    try {
4633        _gtk_list_select_item(list, item);
4634    } finally {
4635        lock.unlock();
4636    }
4637}
4638public static final native void _gtk_list_unselect_all(int /*long*/ list);
4639public static final void gtk_list_unselect_all(int /*long*/ list) {
4640    lock.lock();
4641    try {
4642        _gtk_list_unselect_all(list);
4643    } finally {
4644        lock.unlock();
4645    }
4646}
4647public static final native void _gtk_list_unselect_item(int /*long*/ list, int item);
4648public static final void gtk_list_unselect_item(int /*long*/ list, int item) {
4649    lock.lock();
4650    try {
4651        _gtk_list_unselect_item(list, item);
4652    } finally {
4653        lock.unlock();
4654    }
4655}
4656public static final native void _gtk_list_store_append(int /*long*/ list_store, int /*long*/ iter);
4657public static final void gtk_list_store_append(int /*long*/ list_store, int /*long*/ iter) {
4658    lock.lock();
4659    try {
4660        _gtk_list_store_append(list_store, iter);
4661    } finally {
4662        lock.unlock();
4663    }
4664}
4665public static final native void _gtk_list_store_clear(int /*long*/ store);
4666public static final void gtk_list_store_clear(int /*long*/ store) {
4667    lock.lock();
4668    try {
4669        _gtk_list_store_clear(store);
4670    } finally {
4671        lock.unlock();
4672    }
4673}
4674public static final native void _gtk_list_store_insert(int /*long*/ list_store, int /*long*/ iter, int position);
4675public static final void gtk_list_store_insert(int /*long*/ list_store, int /*long*/ iter, int position) {
4676    lock.lock();
4677    try {
4678        _gtk_list_store_insert(list_store, iter, position);
4679    } finally {
4680        lock.unlock();
4681    }
4682}
4683public static final native int /*long*/ _gtk_list_store_newv(int numColumns, int /*long*/[] types);
4684public static final int /*long*/ gtk_list_store_newv(int numColumns, int /*long*/[] types) {
4685    lock.lock();
4686    try {
4687        return _gtk_list_store_newv(numColumns, types);
4688    } finally {
4689        lock.unlock();
4690    }
4691}
4692public static final native void _gtk_list_store_remove(int /*long*/ list_store, int /*long*/ iter);
4693public static final void gtk_list_store_remove(int /*long*/ list_store, int /*long*/ iter) {
4694    lock.lock();
4695    try {
4696        _gtk_list_store_remove(list_store, iter);
4697    } finally {
4698        lock.unlock();
4699    }
4700}
4701public static final native void _gtk_list_store_set(int /*long*/ store, int /*long*/ iter, int column, byte[] value, int /*long*/ terminator);
4702public static final void gtk_list_store_set(int /*long*/ store, int /*long*/ iter, int column, byte[] value, int /*long*/ terminator) {
4703    lock.lock();
4704    try {
4705        _gtk_list_store_set(store, iter, column, value, terminator);
4706    } finally {
4707        lock.unlock();
4708    }
4709}
4710public static final native void _gtk_list_store_set(int /*long*/ store, int /*long*/ iter, int column, int value, int /*long*/ terminator);
4711public static final void gtk_list_store_set(int /*long*/ store, int /*long*/ iter, int column, int value, int /*long*/ terminator) {
4712    lock.lock();
4713    try {
4714        _gtk_list_store_set(store, iter, column, value, terminator);
4715    } finally {
4716        lock.unlock();
4717    }
4718}
4719public static final native void _gtk_list_store_set(int /*long*/ store, int /*long*/ iter, int column, long value, int /*long*/ terminator);
4720public static final void gtk_list_store_set(int /*long*/ store, int /*long*/ iter, int column, long value, int /*long*/ terminator) {
4721    lock.lock();
4722    try {
4723        _gtk_list_store_set(store, iter, column, value, terminator);
4724    } finally {
4725        lock.unlock();
4726    }
4727}
4728public static final native void _gtk_list_store_set(int /*long*/ store, int /*long*/ iter, int column, GdkColor value, int /*long*/ terminator);
4729public static final void gtk_list_store_set(int /*long*/ store, int /*long*/ iter, int column, GdkColor value, int /*long*/ terminator) {
4730    lock.lock();
4731    try {
4732        _gtk_list_store_set(store, iter, column, value, terminator);
4733    } finally {
4734        lock.unlock();
4735    }
4736}
4737public static final native void _gtk_list_store_set(int /*long*/ store, int /*long*/ iter, int column, boolean value, int /*long*/ terminator);
4738public static final void gtk_list_store_set(int /*long*/ store, int /*long*/ iter, int column, boolean value, int /*long*/ terminator) {
4739    lock.lock();
4740    try {
4741        _gtk_list_store_set(store, iter, column, value, terminator);
4742    } finally {
4743        lock.unlock();
4744    }
4745}
4746public static final native int _gtk_major_version();
4747public static final int gtk_major_version() {
4748    lock.lock();
4749    try {
4750        return _gtk_major_version();
4751    } finally {
4752        lock.unlock();
4753    }
4754}
4755public static final native int _gtk_minor_version();
4756public static final int gtk_minor_version() {
4757    lock.lock();
4758    try {
4759        return _gtk_minor_version();
4760    } finally {
4761        lock.unlock();
4762    }
4763}
4764public static final native int _gtk_micro_version();
4765public static final int gtk_micro_version() {
4766    lock.lock();
4767    try {
4768        return _gtk_micro_version();
4769    } finally {
4770        lock.unlock();
4771    }
4772}
4773public static final native void _gtk_main();
4774public static final void gtk_main() {
4775    lock.lock();
4776    try {
4777        _gtk_main();
4778    } finally {
4779        lock.unlock();
4780    }
4781}
4782public static final native int _gtk_main_iteration();
4783public static final int gtk_main_iteration() {
4784    lock.lock();
4785    try {
4786        return _gtk_main_iteration();
4787    } finally {
4788        lock.unlock();
4789    }
4790}
4791public static final native void _gtk_main_do_event(int /*long*/ event);
4792public static final void gtk_main_do_event(int /*long*/ event) {
4793    lock.lock();
4794    try {
4795        _gtk_main_do_event(event);
4796    } finally {
4797        lock.unlock();
4798    }
4799}
4800public static final native int /*long*/ _gtk_menu_bar_new();
4801public static final int /*long*/ gtk_menu_bar_new() {
4802    lock.lock();
4803    try {
4804        return _gtk_menu_bar_new();
4805    } finally {
4806        lock.unlock();
4807    }
4808}
4809public static final native void _gtk_menu_item_remove_submenu(int /*long*/ menu_item);
4810public static final void gtk_menu_item_remove_submenu(int /*long*/ menu_item) {
4811    lock.lock();
4812    try {
4813        _gtk_menu_item_remove_submenu(menu_item);
4814    } finally {
4815        lock.unlock();
4816    }
4817}
4818public static final native void _gtk_menu_item_set_submenu(int /*long*/ menu_item, int /*long*/ submenu);
4819public static final void gtk_menu_item_set_submenu(int /*long*/ menu_item, int /*long*/ submenu) {
4820    lock.lock();
4821    try {
4822        _gtk_menu_item_set_submenu(menu_item, submenu);
4823    } finally {
4824        lock.unlock();
4825    }
4826}
4827public static final native int /*long*/ _gtk_menu_new();
4828public static final int /*long*/ gtk_menu_new() {
4829    lock.lock();
4830    try {
4831        return _gtk_menu_new();
4832    } finally {
4833        lock.unlock();
4834    }
4835}
4836public static final native void _gtk_menu_popdown(int /*long*/ menu);
4837public static final void gtk_menu_popdown(int /*long*/ menu) {
4838    lock.lock();
4839    try {
4840        _gtk_menu_popdown(menu);
4841    } finally {
4842        lock.unlock();
4843    }
4844}
4845public static final native void _gtk_menu_popup(int /*long*/ menu, int /*long*/ parent_menu_shell, int /*long*/ parent_menu_item, int /*long*/ func, int /*long*/ data, int button, int activate_time);
4846public static final void gtk_menu_popup(int /*long*/ menu, int /*long*/ parent_menu_shell, int /*long*/ parent_menu_item, int /*long*/ func, int /*long*/ data, int button, int activate_time) {
4847    lock.lock();
4848    try {
4849        _gtk_menu_popup(menu, parent_menu_shell, parent_menu_item, func, data, button, activate_time);
4850    } finally {
4851        lock.unlock();
4852    }
4853}
4854public static final native void _gtk_menu_shell_deactivate(int /*long*/ menu_shell);
4855public static final void gtk_menu_shell_deactivate(int /*long*/ menu_shell) {
4856    lock.lock();
4857    try {
4858        _gtk_menu_shell_deactivate(menu_shell);
4859    } finally {
4860        lock.unlock();
4861    }
4862}
4863public static final native void _gtk_menu_shell_insert(int /*long*/ menu_shell, int /*long*/ child, int position);
4864public static final void gtk_menu_shell_insert(int /*long*/ menu_shell, int /*long*/ child, int position) {
4865    lock.lock();
4866    try {
4867        _gtk_menu_shell_insert(menu_shell, child, position);
4868    } finally {
4869        lock.unlock();
4870    }
4871}
4872public static final native void _gtk_menu_shell_select_item(int /*long*/ menu_shell, int /*long*/ menu_item);
4873public static final void gtk_menu_shell_select_item(int /*long*/ menu_shell, int /*long*/ menu_item) {
4874    lock.lock();
4875    try {
4876        _gtk_menu_shell_select_item(menu_shell, menu_item);
4877    } finally {
4878        lock.unlock();
4879    }
4880}
4881public static final native int /*long*/ _gtk_message_dialog_new(int /*long*/ parent, int flags, int type, int buttons, byte[] message_format);
4882public static final int /*long*/ gtk_message_dialog_new(int /*long*/ parent, int flags, int type, int buttons, byte[] message_format) {
4883    lock.lock();
4884    try {
4885        return _gtk_message_dialog_new(parent, flags, type, buttons, message_format);
4886    } finally {
4887        lock.unlock();
4888    }
4889}
4890public static final native void _gtk_misc_set_alignment(int /*long*/ misc, float xalign, float yalign);
4891public static final void gtk_misc_set_alignment(int /*long*/ misc, float xalign, float yalign) {
4892    lock.lock();
4893    try {
4894        _gtk_misc_set_alignment(misc, xalign, yalign);
4895    } finally {
4896        lock.unlock();
4897    }
4898}
4899public static final native int _gtk_notebook_get_current_page(int /*long*/ notebook);
4900public static final int gtk_notebook_get_current_page(int /*long*/ notebook) {
4901    lock.lock();
4902    try {
4903        return _gtk_notebook_get_current_page(notebook);
4904    } finally {
4905        lock.unlock();
4906    }
4907}
4908public static final native boolean _gtk_notebook_get_scrollable(int /*long*/ notebook);
4909public static final boolean gtk_notebook_get_scrollable(int /*long*/ notebook) {
4910    lock.lock();
4911    try {
4912        return _gtk_notebook_get_scrollable(notebook);
4913    } finally {
4914        lock.unlock();
4915    }
4916}
4917public static final native void _gtk_notebook_insert_page(int /*long*/ notebook, int /*long*/ child, int /*long*/ tab_label, int position);
4918public static final void gtk_notebook_insert_page(int /*long*/ notebook, int /*long*/ child, int /*long*/ tab_label, int position) {
4919    lock.lock();
4920    try {
4921        _gtk_notebook_insert_page(notebook, child, tab_label, position);
4922    } finally {
4923        lock.unlock();
4924    }
4925}
4926public static final native int /*long*/ _gtk_notebook_new();
4927public static final int /*long*/ gtk_notebook_new() {
4928    lock.lock();
4929    try {
4930        return _gtk_notebook_new();
4931    } finally {
4932        lock.unlock();
4933    }
4934}
4935public static final native void _gtk_notebook_remove_page(int /*long*/ notebook, int page_num);
4936public static final void gtk_notebook_remove_page(int /*long*/ notebook, int page_num) {
4937    lock.lock();
4938    try {
4939        _gtk_notebook_remove_page(notebook, page_num);
4940    } finally {
4941        lock.unlock();
4942    }
4943}
4944public static final native void _gtk_notebook_set_current_page(int /*long*/ notebook, int page_num);
4945public static final void gtk_notebook_set_current_page(int /*long*/ notebook, int page_num) {
4946    lock.lock();
4947    try {
4948        _gtk_notebook_set_current_page(notebook, page_num);
4949    } finally {
4950        lock.unlock();
4951    }
4952}
4953public static final native void _gtk_notebook_set_scrollable(int /*long*/ notebook, boolean scrollable);
4954public static final void gtk_notebook_set_scrollable(int /*long*/ notebook, boolean scrollable) {
4955    lock.lock();
4956    try {
4957        _gtk_notebook_set_scrollable(notebook, scrollable);
4958    } finally {
4959        lock.unlock();
4960    }
4961}
4962public static final native void _gtk_notebook_set_show_tabs(int /*long*/ notebook, boolean show_tabs);
4963public static final void gtk_notebook_set_show_tabs(int /*long*/ notebook, boolean show_tabs) {
4964    lock.lock();
4965    try {
4966        _gtk_notebook_set_show_tabs(notebook, show_tabs);
4967    } finally {
4968        lock.unlock();
4969    }
4970}
4971public static final native void _gtk_notebook_set_tab_pos(int /*long*/ notebook, int pos);
4972public static final void gtk_notebook_set_tab_pos(int /*long*/ notebook, int pos) {
4973    lock.lock();
4974    try {
4975        _gtk_notebook_set_tab_pos(notebook, pos);
4976    } finally {
4977        lock.unlock();
4978    }
4979}
4980public static final native void _gtk_object_sink(int /*long*/ object);
4981public static final void gtk_object_sink(int /*long*/ object) {
4982    lock.lock();
4983    try {
4984        _gtk_object_sink(object);
4985    } finally {
4986        lock.unlock();
4987    }
4988}
4989public static final native void _gtk_paint_handle(int /*long*/ style, int /*long*/ window, int state_type, int shadow_type, GdkRectangle area, int /*long*/ widget, byte[] detail, int x , int y, int width, int height, int orientation);
4990public static final void gtk_paint_handle(int /*long*/ style, int /*long*/ window, int state_type, int shadow_type, GdkRectangle area, int /*long*/ widget, byte[] detail, int x , int y, int width, int height, int orientation) {
4991    lock.lock();
4992    try {
4993        _gtk_paint_handle(style, window, state_type, shadow_type, area, widget, detail, x, y, width, height, orientation);
4994    } finally {
4995        lock.unlock();
4996    }
4997}
4998public static final native void _gtk_paint_focus(int /*long*/ style, int /*long*/ window, int state_type, GdkRectangle area, int /*long*/ widget, byte[] detail, int x , int y, int width, int height);
4999public static final void gtk_paint_focus(int /*long*/ style, int /*long*/ window, int state_type, GdkRectangle area, int /*long*/ widget, byte[] detail, int x , int y, int width, int height) {
5000    lock.lock();
5001    try {
5002        _gtk_paint_focus(style, window, state_type, area, widget, detail, x, y, width, height);
5003    } finally {
5004        lock.unlock();
5005    }
5006}
5007public static final native int /*long*/ _gtk_plug_get_id(int /*long*/ plug);
5008public static final int /*long*/ gtk_plug_get_id(int /*long*/ plug) {
5009    lock.lock();
5010    try {
5011        return _gtk_plug_get_id(plug);
5012    } finally {
5013        lock.unlock();
5014    }
5015}
5016public static final native int /*long*/ _gtk_plug_new(int /*long*/ socket_id);
5017public static final int /*long*/ gtk_plug_new(int /*long*/ socket_id) {
5018    lock.lock();
5019    try {
5020        return _gtk_plug_new(socket_id);
5021    } finally {
5022        lock.unlock();
5023    }
5024}
5025public static final native int /*long*/ _gtk_progress_bar_new();
5026public static final int /*long*/ gtk_progress_bar_new() {
5027    lock.lock();
5028    try {
5029        return _gtk_progress_bar_new();
5030    } finally {
5031        lock.unlock();
5032    }
5033}
5034public static final native void _gtk_progress_bar_pulse(int /*long*/ pbar);
5035public static final void gtk_progress_bar_pulse(int /*long*/ pbar) {
5036    lock.lock();
5037    try {
5038        _gtk_progress_bar_pulse(pbar);
5039    } finally {
5040        lock.unlock();
5041    }
5042}
5043public static final native void _gtk_progress_bar_set_fraction(int /*long*/ pbar, double fraction);
5044public static final void gtk_progress_bar_set_fraction(int /*long*/ pbar, double fraction) {
5045    lock.lock();
5046    try {
5047        _gtk_progress_bar_set_fraction(pbar, fraction);
5048    } finally {
5049        lock.unlock();
5050    }
5051}
5052public static final native void _gtk_progress_bar_set_orientation(int /*long*/ pbar, int orientation);
5053public static final void gtk_progress_bar_set_orientation(int /*long*/ pbar, int orientation) {
5054    lock.lock();
5055    try {
5056        _gtk_progress_bar_set_orientation(pbar, orientation);
5057    } finally {
5058        lock.unlock();
5059    }
5060}
5061public static final native int /*long*/ _gtk_radio_button_get_group(int /*long*/ radio_button);
5062public static final int /*long*/ gtk_radio_button_get_group(int /*long*/ radio_button) {
5063    lock.lock();
5064    try {
5065        return _gtk_radio_button_get_group(radio_button);
5066    } finally {
5067        lock.unlock();
5068    }
5069}
5070public static final native int /*long*/ _gtk_radio_button_new(int /*long*/ group);
5071public static final int /*long*/ gtk_radio_button_new(int /*long*/ group) {
5072    lock.lock();
5073    try {
5074        return _gtk_radio_button_new(group);
5075    } finally {
5076        lock.unlock();
5077    }
5078}
5079public static final native int /*long*/ _gtk_radio_menu_item_get_group(int /*long*/ radio_menu_item);
5080public static final int /*long*/ gtk_radio_menu_item_get_group(int /*long*/ radio_menu_item) {
5081    lock.lock();
5082    try {
5083        return _gtk_radio_menu_item_get_group(radio_menu_item);
5084    } finally {
5085        lock.unlock();
5086    }
5087}
5088public static final native int /*long*/ _gtk_radio_menu_item_new(int /*long*/ group);
5089public static final int /*long*/ gtk_radio_menu_item_new(int /*long*/ group) {
5090    lock.lock();
5091    try {
5092        return _gtk_radio_menu_item_new(group);
5093    } finally {
5094        lock.unlock();
5095    }
5096}
5097public static final native int /*long*/ _gtk_radio_menu_item_new_with_label(int /*long*/ group, byte[] label);
5098public static final int /*long*/ gtk_radio_menu_item_new_with_label(int /*long*/ group, byte[] label) {
5099    lock.lock();
5100    try {
5101        return _gtk_radio_menu_item_new_with_label(group, label);
5102    } finally {
5103        lock.unlock();
5104    }
5105}
5106public static final native int /*long*/ _gtk_range_get_adjustment(int /*long*/ range);
5107public static final int /*long*/ gtk_range_get_adjustment(int /*long*/ range) {
5108    lock.lock();
5109    try {
5110        return _gtk_range_get_adjustment(range);
5111    } finally {
5112        lock.unlock();
5113    }
5114}
5115public static final native void _gtk_range_set_increments(int /*long*/ range, double step, double page);
5116public static final void gtk_range_set_increments(int /*long*/ range, double step, double page) {
5117    lock.lock();
5118    try {
5119        _gtk_range_set_increments(range, step, page);
5120    } finally {
5121        lock.unlock();
5122    }
5123}
5124public static final native void _gtk_range_set_inverted(int /*long*/ range, boolean setting);
5125public static final void gtk_range_set_inverted(int /*long*/ range, boolean setting) {
5126    lock.lock();
5127    try {
5128        _gtk_range_set_inverted(range, setting);
5129    } finally {
5130        lock.unlock();
5131    }
5132}
5133public static final native void _gtk_range_set_range(int /*long*/ range, double min, double max);
5134public static final void gtk_range_set_range(int /*long*/ range, double min, double max) {
5135    lock.lock();
5136    try {
5137        _gtk_range_set_range(range, min, max);
5138    } finally {
5139        lock.unlock();
5140    }
5141}
5142public static final native void _gtk_range_set_value(int /*long*/ range, double value);
5143public static final void gtk_range_set_value(int /*long*/ range, double value) {
5144    lock.lock();
5145    try {
5146        _gtk_range_set_value(range, value);
5147    } finally {
5148        lock.unlock();
5149    }
5150}
5151public static final native void _gtk_rc_parse_string(byte[] rc_string);
5152public static final void gtk_rc_parse_string(byte[] rc_string) {
5153    lock.lock();
5154    try {
5155        _gtk_rc_parse_string(rc_string);
5156    } finally {
5157        lock.unlock();
5158    }
5159}
5160public static final native int /*long*/ _gtk_rc_style_get_bg_pixmap_name(int /*long*/ style, int index);
5161public static final int /*long*/ gtk_rc_style_get_bg_pixmap_name(int /*long*/ style, int index) {
5162    lock.lock();
5163    try {
5164        return _gtk_rc_style_get_bg_pixmap_name(style, index);
5165    } finally {
5166        lock.unlock();
5167    }
5168}
5169public static final native int _gtk_rc_style_get_color_flags(int /*long*/ style, int index);
5170public static final int gtk_rc_style_get_color_flags(int /*long*/ style, int index) {
5171    lock.lock();
5172    try {
5173        return _gtk_rc_style_get_color_flags(style, index);
5174    } finally {
5175        lock.unlock();
5176    }
5177}
5178public static final native void _gtk_rc_style_set_bg(int /*long*/ style, int index, GdkColor color);
5179public static final void gtk_rc_style_set_bg(int /*long*/ style, int index, GdkColor color) {
5180    lock.lock();
5181    try {
5182        _gtk_rc_style_set_bg(style, index, color);
5183    } finally {
5184        lock.unlock();
5185    }
5186}
5187public static final native void _gtk_rc_style_set_bg_pixmap_name(int /*long*/ style, int index, int /*long*/ name);
5188public static final void gtk_rc_style_set_bg_pixmap_name(int /*long*/ style, int index, int /*long*/ name) {
5189    lock.lock();
5190    try {
5191        _gtk_rc_style_set_bg_pixmap_name(style, index, name);
5192    } finally {
5193        lock.unlock();
5194    }
5195}
5196public static final native void _gtk_rc_style_set_color_flags(int /*long*/ style, int index, int flag);
5197public static final void gtk_rc_style_set_color_flags(int /*long*/ style, int index, int flag) {
5198    lock.lock();
5199    try {
5200        _gtk_rc_style_set_color_flags(style, index, flag);
5201    } finally {
5202        lock.unlock();
5203    }
5204}
5205public static final native void _gtk_scale_set_digits(int /*long*/ scale, int digits);
5206public static final void gtk_scale_set_digits(int /*long*/ scale, int digits) {
5207    lock.lock();
5208    try {
5209        _gtk_scale_set_digits(scale, digits);
5210    } finally {
5211        lock.unlock();
5212    }
5213}
5214public static final native void _gtk_scale_set_draw_value(int /*long*/ scale, boolean draw_value);
5215public static final void gtk_scale_set_draw_value(int /*long*/ scale, boolean draw_value) {
5216    lock.lock();
5217    try {
5218        _gtk_scale_set_draw_value(scale, draw_value);
5219    } finally {
5220        lock.unlock();
5221    }
5222}
5223public static final native int /*long*/ _gtk_scrolled_window_get_hadjustment(int /*long*/ scrolled_window);
5224public static final int /*long*/ gtk_scrolled_window_get_hadjustment(int /*long*/ scrolled_window) {
5225    lock.lock();
5226    try {
5227        return _gtk_scrolled_window_get_hadjustment(scrolled_window);
5228    } finally {
5229        lock.unlock();
5230    }
5231}
5232public static final native void _gtk_scrolled_window_get_policy(int /*long*/ scrolled_window, int[] hscrollbar_policy, int[] vscrollbar_policy);
5233public static final void gtk_scrolled_window_get_policy(int /*long*/ scrolled_window, int[] hscrollbar_policy, int[] vscrollbar_policy) {
5234    lock.lock();
5235    try {
5236        _gtk_scrolled_window_get_policy(scrolled_window, hscrollbar_policy, vscrollbar_policy);
5237    } finally {
5238        lock.unlock();
5239    }
5240}
5241public static final native int _gtk_scrolled_window_get_shadow_type(int /*long*/ scrolled_window);
5242public static final int gtk_scrolled_window_get_shadow_type(int /*long*/ scrolled_window) {
5243    lock.lock();
5244    try {
5245        return _gtk_scrolled_window_get_shadow_type(scrolled_window);
5246    } finally {
5247        lock.unlock();
5248    }
5249}
5250public static final native int /*long*/ _gtk_scrolled_window_get_vadjustment(int /*long*/ scrolled_window);
5251public static final int /*long*/ gtk_scrolled_window_get_vadjustment(int /*long*/ scrolled_window) {
5252    lock.lock();
5253    try {
5254        return _gtk_scrolled_window_get_vadjustment(scrolled_window);
5255    } finally {
5256        lock.unlock();
5257    }
5258}
5259public static final native int /*long*/ _gtk_scrolled_window_new(int /*long*/ hadjustment, int /*long*/ vadjustment);
5260public static final int /*long*/ gtk_scrolled_window_new(int /*long*/ hadjustment, int /*long*/ vadjustment) {
5261    lock.lock();
5262    try {
5263        return _gtk_scrolled_window_new(hadjustment, vadjustment);
5264    } finally {
5265        lock.unlock();
5266    }
5267}
5268public static final native void _gtk_scrolled_window_set_placement(int /*long*/ scrolled_window, int placement);
5269public static final void gtk_scrolled_window_set_placement(int /*long*/ scrolled_window, int placement) {
5270    lock.lock();
5271    try {
5272        _gtk_scrolled_window_set_placement(scrolled_window, placement);
5273    } finally {
5274        lock.unlock();
5275    }
5276}
5277public static final native void _gtk_scrolled_window_set_policy(int /*long*/ scrolled_window, int hscrollbar_policy, int vscrollbar_policy);
5278public static final void gtk_scrolled_window_set_policy(int /*long*/ scrolled_window, int hscrollbar_policy, int vscrollbar_policy) {
5279    lock.lock();
5280    try {
5281        _gtk_scrolled_window_set_policy(scrolled_window, hscrollbar_policy, vscrollbar_policy);
5282    } finally {
5283        lock.unlock();
5284    }
5285}
5286public static final native void _gtk_scrolled_window_set_shadow_type(int /*long*/ scrolled_window, int type);
5287public static final void gtk_scrolled_window_set_shadow_type(int /*long*/ scrolled_window, int type) {
5288    lock.lock();
5289    try {
5290        _gtk_scrolled_window_set_shadow_type(scrolled_window, type);
5291    } finally {
5292        lock.unlock();
5293    }
5294}
5295public static final native int /*long*/ _gtk_settings_get_default();
5296public static final int /*long*/ gtk_settings_get_default() {
5297    lock.lock();
5298    try {
5299        return _gtk_settings_get_default();
5300    } finally {
5301        lock.unlock();
5302    }
5303}
5304public static final native void _gtk_selection_data_free(int /*long*/ selection_data);
5305public static final void gtk_selection_data_free(int /*long*/ selection_data) {
5306    lock.lock();
5307    try {
5308        _gtk_selection_data_free(selection_data);
5309    } finally {
5310        lock.unlock();
5311    }
5312}
5313public static final native void _gtk_selection_data_set(int /*long*/ selection_data, int /*long*/ type, int format, int /*long*/ data, int length);
5314public static final void gtk_selection_data_set(int /*long*/ selection_data, int /*long*/ type, int format, int /*long*/ data, int length) {
5315    lock.lock();
5316    try {
5317        _gtk_selection_data_set(selection_data, type, format, data, length);
5318    } finally {
5319        lock.unlock();
5320    }
5321}
5322public static final native int /*long*/ _gtk_separator_menu_item_new();
5323public static final int /*long*/ gtk_separator_menu_item_new() {
5324    lock.lock();
5325    try {
5326        return _gtk_separator_menu_item_new();
5327    } finally {
5328        lock.unlock();
5329    }
5330}
5331public static final native int /*long*/ _gtk_set_locale();
5332public static final int /*long*/ gtk_set_locale() {
5333    lock.lock();
5334    try {
5335        return _gtk_set_locale();
5336    } finally {
5337        lock.unlock();
5338    }
5339}
5340public static final native int /*long*/ _gtk_socket_get_id(int /*long*/ socket);
5341public static final int /*long*/ gtk_socket_get_id(int /*long*/ socket) {
5342    lock.lock();
5343    try {
5344        return _gtk_socket_get_id(socket);
5345    } finally {
5346        lock.unlock();
5347    }
5348}
5349public static final native int /*long*/ _gtk_socket_new();
5350public static final int /*long*/ gtk_socket_new() {
5351    lock.lock();
5352    try {
5353        return _gtk_socket_new();
5354    } finally {
5355        lock.unlock();
5356    }
5357}
5358public static final native int /*long*/ _gtk_spin_button_new(int /*long*/ adjustment, double climb_rate, int digits);
5359public static final int /*long*/ gtk_spin_button_new(int /*long*/ adjustment, double climb_rate, int digits) {
5360    lock.lock();
5361    try {
5362        return _gtk_spin_button_new(adjustment, climb_rate, digits);
5363    } finally {
5364        lock.unlock();
5365    }
5366}
5367public static final native int /*long*/ _gtk_spin_button_get_adjustment(int /*long*/ spin_button);
5368public static final int /*long*/ gtk_spin_button_get_adjustment(int /*long*/ spin_button) {
5369    lock.lock();
5370    try {
5371        return _gtk_spin_button_get_adjustment(spin_button);
5372    } finally {
5373        lock.unlock();
5374    }
5375}
5376
5377public static final native int _gtk_spin_button_get_digits(int /*long*/ spin_button);
5378public static final int gtk_spin_button_get_digits(int /*long*/ spin_button) {
5379    lock.lock();
5380    try {
5381        return _gtk_spin_button_get_digits(spin_button);
5382    } finally {
5383        lock.unlock();
5384    }
5385}
5386public static final native void _gtk_spin_button_set_digits(int /*long*/ spin_button, int digits);
5387public static final void gtk_spin_button_set_digits(int /*long*/ spin_button, int digits) {
5388    lock.lock();
5389    try {
5390        _gtk_spin_button_set_digits(spin_button, digits);
5391    } finally {
5392        lock.unlock();
5393    }
5394}
5395public static final native void _gtk_spin_button_set_increments(int /*long*/ spin_button, double step, double page);
5396public static final void gtk_spin_button_set_increments(int /*long*/ spin_button, double step, double page) {
5397    lock.lock();
5398    try {
5399        _gtk_spin_button_set_increments(spin_button, step, page);
5400    } finally {
5401        lock.unlock();
5402    }
5403}
5404public static final native void _gtk_spin_button_set_range(int /*long*/ spin_button, double max, double min);
5405public static final void gtk_spin_button_set_range(int /*long*/ spin_button, double max, double min) {
5406    lock.lock();
5407    try {
5408        _gtk_spin_button_set_range(spin_button, max, min);
5409    } finally {
5410        lock.unlock();
5411    }
5412}
5413public static final native void _gtk_spin_button_set_value(int /*long*/ spin_button, double value);
5414public static final void gtk_spin_button_set_value(int /*long*/ spin_button, double value) {
5415    lock.lock();
5416    try {
5417        _gtk_spin_button_set_value(spin_button, value);
5418    } finally {
5419        lock.unlock();
5420    }
5421}
5422public static final native void _gtk_spin_button_set_wrap(int /*long*/ spin_button, boolean wrap);
5423public static final void gtk_spin_button_set_wrap(int /*long*/ spin_button, boolean wrap) {
5424    lock.lock();
5425    try {
5426        _gtk_spin_button_set_wrap(spin_button, wrap);
5427    } finally {
5428        lock.unlock();
5429    }
5430}
5431public static final native void _gtk_style_get_base(int /*long*/ style, int index, GdkColor color);
5432public static final void gtk_style_get_base(int /*long*/ style, int index, GdkColor color) {
5433    lock.lock();
5434    try {
5435        _gtk_style_get_base(style, index, color);
5436    } finally {
5437        lock.unlock();
5438    }
5439}
5440public static final native void _gtk_style_get_black(int /*long*/ style, GdkColor color);
5441public static final void gtk_style_get_black(int /*long*/ style, GdkColor color) {
5442    lock.lock();
5443    try {
5444        _gtk_style_get_black(style, color);
5445    } finally {
5446        lock.unlock();
5447    }
5448}
5449public static final native void _gtk_style_get_bg(int /*long*/ style, int index, GdkColor color);
5450public static final void gtk_style_get_bg(int /*long*/ style, int index, GdkColor color) {
5451    lock.lock();
5452    try {
5453        _gtk_style_get_bg(style, index, color);
5454    } finally {
5455        lock.unlock();
5456    }
5457}
5458public static final native void _gtk_style_get_dark(int /*long*/ style, int index, GdkColor color);
5459public static final void gtk_style_get_dark(int /*long*/ style, int index, GdkColor color) {
5460    lock.lock();
5461    try {
5462        _gtk_style_get_dark(style, index, color);
5463    } finally {
5464        lock.unlock();
5465    }
5466}
5467public static final native void _gtk_style_get_fg(int /*long*/ style, int index, GdkColor color);
5468public static final void gtk_style_get_fg(int /*long*/ style, int index, GdkColor color) {
5469    lock.lock();
5470    try {
5471        _gtk_style_get_fg(style, index, color);
5472    } finally {
5473        lock.unlock();
5474    }
5475}
5476public static final native int /*long*/ _gtk_style_get_font_desc(int /*long*/ style);
5477public static final int /*long*/ gtk_style_get_font_desc(int /*long*/ style) {
5478    lock.lock();
5479    try {
5480        return _gtk_style_get_font_desc(style);
5481    } finally {
5482        lock.unlock();
5483    }
5484}
5485public static final native void _gtk_style_get_light(int /*long*/ style, int index, GdkColor color);
5486public static final void gtk_style_get_light(int /*long*/ style, int index, GdkColor color) {
5487    lock.lock();
5488    try {
5489        _gtk_style_get_light(style, index, color);
5490    } finally {
5491        lock.unlock();
5492    }
5493}
5494public static final native void _gtk_style_get_text(int /*long*/ style, int index, GdkColor color);
5495public static final void gtk_style_get_text(int /*long*/ style, int index, GdkColor color) {
5496    lock.lock();
5497    try {
5498        _gtk_style_get_text(style, index, color);
5499    } finally {
5500        lock.unlock();
5501    }
5502}
5503public static final native int _gtk_style_get_xthickness(int /*long*/ style);
5504public static final int gtk_style_get_xthickness(int /*long*/ style) {
5505    lock.lock();
5506    try {
5507        return _gtk_style_get_xthickness(style);
5508    } finally {
5509        lock.unlock();
5510    }
5511}
5512public static final native int _gtk_style_get_ythickness(int /*long*/ style);
5513public static final int gtk_style_get_ythickness(int /*long*/ style) {
5514    lock.lock();
5515    try {
5516        return _gtk_style_get_ythickness(style);
5517    } finally {
5518        lock.unlock();
5519    }
5520}
5521public static final native int /*long*/ _gtk_target_list_new(int /*long*/ targets, int ntargets);
5522public static final int /*long*/ gtk_target_list_new(int /*long*/ targets, int ntargets) {
5523    lock.lock();
5524    try {
5525        return _gtk_target_list_new(targets, ntargets);
5526    } finally {
5527        lock.unlock();
5528    }
5529}
5530public static final native void _gtk_target_list_unref(int /*long*/ list);
5531public static final void gtk_target_list_unref(int /*long*/ list) {
5532    lock.lock();
5533    try {
5534        _gtk_target_list_unref(list);
5535    } finally {
5536        lock.unlock();
5537    }
5538}
5539public static final native void _gtk_text_buffer_copy_clipboard(int /*long*/ buffer, int /*long*/ clipboard);
5540public static final void gtk_text_buffer_copy_clipboard(int /*long*/ buffer, int /*long*/ clipboard) {
5541    lock.lock();
5542    try {
5543        _gtk_text_buffer_copy_clipboard(buffer, clipboard);
5544    } finally {
5545        lock.unlock();
5546    }
5547}
5548public static final native void _gtk_text_buffer_cut_clipboard(int /*long*/ buffer, int /*long*/ clipboard, boolean default_editable);
5549public static final void gtk_text_buffer_cut_clipboard(int /*long*/ buffer, int /*long*/ clipboard, boolean default_editable) {
5550    lock.lock();
5551    try {
5552        _gtk_text_buffer_cut_clipboard(buffer, clipboard, default_editable);
5553    } finally {
5554        lock.unlock();
5555    }
5556}
5557public static final native void _gtk_text_buffer_delete(int /*long*/ buffer, byte[] start, byte[] end);
5558public static final void gtk_text_buffer_delete(int /*long*/ buffer, byte[] start, byte[] end) {
5559    lock.lock();
5560    try {
5561        _gtk_text_buffer_delete(buffer, start, end);
5562    } finally {
5563        lock.unlock();
5564    }
5565}
5566public static final native void _gtk_text_buffer_get_bounds(int /*long*/ buffer, byte[] start, byte[] end);
5567public static final void gtk_text_buffer_get_bounds(int /*long*/ buffer, byte[] start, byte[] end) {
5568    lock.lock();
5569    try {
5570        _gtk_text_buffer_get_bounds(buffer, start, end);
5571    } finally {
5572        lock.unlock();
5573    }
5574}
5575public static final native int _gtk_text_buffer_get_char_count(int /*long*/ buffer);
5576public static final int gtk_text_buffer_get_char_count(int /*long*/ buffer) {
5577    lock.lock();
5578    try {
5579        return _gtk_text_buffer_get_char_count(buffer);
5580    } finally {
5581        lock.unlock();
5582    }
5583}
5584public static final native void _gtk_text_buffer_get_end_iter(int /*long*/ buffer, byte[] iter);
5585public static final void gtk_text_buffer_get_end_iter(int /*long*/ buffer, byte[] iter) {
5586    lock.lock();
5587    try {
5588        _gtk_text_buffer_get_end_iter(buffer, iter);
5589    } finally {
5590        lock.unlock();
5591    }
5592}
5593public static final native int /*long*/ _gtk_text_buffer_get_insert(int /*long*/ buffer);
5594public static final int /*long*/ gtk_text_buffer_get_insert(int /*long*/ buffer) {
5595    lock.lock();
5596    try {
5597        return _gtk_text_buffer_get_insert(buffer);
5598    } finally {
5599        lock.unlock();
5600    }
5601}
5602public static final native void _gtk_text_buffer_get_iter_at_line(int /*long*/ buffer, byte[] iter, int line_number);
5603public static final void gtk_text_buffer_get_iter_at_line(int /*long*/ buffer, byte[] iter, int line_number) {
5604    lock.lock();
5605    try {
5606        _gtk_text_buffer_get_iter_at_line(buffer, iter, line_number);
5607    } finally {
5608        lock.unlock();
5609    }
5610}
5611public static final native void _gtk_text_buffer_get_iter_at_mark(int /*long*/ buffer, byte[] iter, int /*long*/ mark);
5612public static final void gtk_text_buffer_get_iter_at_mark(int /*long*/ buffer, byte[] iter, int /*long*/ mark) {
5613    lock.lock();
5614    try {
5615        _gtk_text_buffer_get_iter_at_mark(buffer, iter, mark);
5616    } finally {
5617        lock.unlock();
5618    }
5619}
5620public static final native void _gtk_text_buffer_get_iter_at_offset(int /*long*/ buffer, byte[] iter, int char_offset);
5621public static final void gtk_text_buffer_get_iter_at_offset(int /*long*/ buffer, byte[] iter, int char_offset) {
5622    lock.lock();
5623    try {
5624        _gtk_text_buffer_get_iter_at_offset(buffer, iter, char_offset);
5625    } finally {
5626        lock.unlock();
5627    }
5628}
5629public static final native int _gtk_text_buffer_get_line_count(int /*long*/ buffer);
5630public static final int gtk_text_buffer_get_line_count(int /*long*/ buffer) {
5631    lock.lock();
5632    try {
5633        return _gtk_text_buffer_get_line_count(buffer);
5634    } finally {
5635        lock.unlock();
5636    }
5637}
5638public static final native int /*long*/ _gtk_text_buffer_get_selection_bound(int /*long*/ buffer);
5639public static final int /*long*/ gtk_text_buffer_get_selection_bound(int /*long*/ buffer) {
5640    lock.lock();
5641    try {
5642        return _gtk_text_buffer_get_selection_bound(buffer);
5643    } finally {
5644        lock.unlock();
5645    }
5646}
5647public static final native boolean _gtk_text_buffer_get_selection_bounds(int /*long*/ buffer, byte[] start, byte[] end);
5648public static final boolean gtk_text_buffer_get_selection_bounds(int /*long*/ buffer, byte[] start, byte[] end) {
5649    lock.lock();
5650    try {
5651        return _gtk_text_buffer_get_selection_bounds(buffer, start, end);
5652    } finally {
5653        lock.unlock();
5654    }
5655}
5656public static final native int /*long*/ _gtk_text_buffer_get_text(int /*long*/ buffer, byte[] start, byte[] end, boolean include_hidden_chars);
5657public static final int /*long*/ gtk_text_buffer_get_text(int /*long*/ buffer, byte[] start, byte[] end, boolean include_hidden_chars) {
5658    lock.lock();
5659    try {
5660        return _gtk_text_buffer_get_text(buffer, start, end, include_hidden_chars);
5661    } finally {
5662        lock.unlock();
5663    }
5664}
5665public static final native void _gtk_text_buffer_insert(int /*long*/ buffer, byte[] iter, byte[] text, int len);
5666public static final void gtk_text_buffer_insert(int /*long*/ buffer, byte[] iter, byte[] text, int len) {
5667    lock.lock();
5668    try {
5669        _gtk_text_buffer_insert(buffer, iter, text, len);
5670    } finally {
5671        lock.unlock();
5672    }
5673}
5674public static final native void _gtk_text_buffer_insert(int /*long*/ buffer, int /*long*/ iter, byte[] text, int len);
5675public static final void gtk_text_buffer_insert(int /*long*/ buffer, int /*long*/ iter, byte[] text, int len) {
5676    lock.lock();
5677    try {
5678        _gtk_text_buffer_insert(buffer, iter, text, len);
5679    } finally {
5680        lock.unlock();
5681    }
5682}
5683public static final native void _gtk_text_buffer_move_mark(int /*long*/ buffer, int /*long*/ mark, byte[] where);
5684public static final void gtk_text_buffer_move_mark(int /*long*/ buffer, int /*long*/ mark, byte[] where) {
5685    lock.lock();
5686    try {
5687        _gtk_text_buffer_move_mark(buffer, mark, where);
5688    } finally {
5689        lock.unlock();
5690    }
5691}
5692public static final native void _gtk_text_buffer_paste_clipboard(int /*long*/ buffer, int /*long*/ clipboard, byte[] override_location, boolean default_editable);
5693public static final void gtk_text_buffer_paste_clipboard(int /*long*/ buffer, int /*long*/ clipboard, byte[] override_location, boolean default_editable) {
5694    lock.lock();
5695    try {
5696        _gtk_text_buffer_paste_clipboard(buffer, clipboard, override_location, default_editable);
5697    } finally {
5698        lock.unlock();
5699    }
5700}
5701public static final native void _gtk_text_buffer_place_cursor(int /*long*/ buffer, byte[] where);
5702public static final void gtk_text_buffer_place_cursor(int /*long*/ buffer, byte[] where) {
5703    lock.lock();
5704    try {
5705        _gtk_text_buffer_place_cursor(buffer, where);
5706    } finally {
5707        lock.unlock();
5708    }
5709}
5710public static final native void _gtk_text_buffer_set_text(int /*long*/ buffer, byte[] text, int len);
5711public static final void gtk_text_buffer_set_text(int /*long*/ buffer, byte[] text, int len) {
5712    lock.lock();
5713    try {
5714        _gtk_text_buffer_set_text(buffer, text, len);
5715    } finally {
5716        lock.unlock();
5717    }
5718}
5719public static final native int _gtk_text_iter_get_line(byte[] iter);
5720public static final int gtk_text_iter_get_line(byte[] iter) {
5721    lock.lock();
5722    try {
5723        return _gtk_text_iter_get_line(iter);
5724    } finally {
5725        lock.unlock();
5726    }
5727}
5728public static final native int _gtk_text_iter_get_offset(byte[] iter);
5729public static final int gtk_text_iter_get_offset(byte[] iter) {
5730    lock.lock();
5731    try {
5732        return _gtk_text_iter_get_offset(iter);
5733    } finally {
5734        lock.unlock();
5735    }
5736}
5737public static final native void _gtk_text_view_buffer_to_window_coords(int /*long*/ text_view, int win, int buffer_x, int buffer_y, int[] window_x, int[] window_y);
5738public static final void gtk_text_view_buffer_to_window_coords(int /*long*/ text_view, int win, int buffer_x, int buffer_y, int[] window_x, int[] window_y) {
5739    lock.lock();
5740    try {
5741        _gtk_text_view_buffer_to_window_coords(text_view, win, buffer_x, buffer_y, window_x, window_y);
5742    } finally {
5743        lock.unlock();
5744    }
5745}
5746public static final native int /*long*/ _gtk_text_view_get_buffer(int /*long*/ text_view);
5747public static final int /*long*/ gtk_text_view_get_buffer(int /*long*/ text_view) {
5748    lock.lock();
5749    try {
5750        return _gtk_text_view_get_buffer(text_view);
5751    } finally {
5752        lock.unlock();
5753    }
5754}
5755public static final native boolean _gtk_text_view_get_editable(int /*long*/ text_view);
5756public static final boolean gtk_text_view_get_editable(int /*long*/ text_view) {
5757    lock.lock();
5758    try {
5759        return _gtk_text_view_get_editable(text_view);
5760    } finally {
5761        lock.unlock();
5762    }
5763}
5764public static final native void _gtk_text_view_get_iter_at_location(int /*long*/ text_view, byte[] iter, int x, int y);
5765public static final void gtk_text_view_get_iter_at_location(int /*long*/ text_view, byte[] iter, int x, int y) {
5766    lock.lock();
5767    try {
5768        _gtk_text_view_get_iter_at_location(text_view, iter, x, y);
5769    } finally {
5770        lock.unlock();
5771    }
5772}
5773public static final native void _gtk_text_view_get_iter_location(int /*long*/ text_view, byte[] iter, GdkRectangle location);
5774public static final void gtk_text_view_get_iter_location(int /*long*/ text_view, byte[] iter, GdkRectangle location) {
5775    lock.lock();
5776    try {
5777        _gtk_text_view_get_iter_location(text_view, iter, location);
5778    } finally {
5779        lock.unlock();
5780    }
5781}
5782public static final native void _gtk_text_view_get_line_at_y(int /*long*/ text_view, byte[] target_iter, int y, int[] line_top);
5783public static final void gtk_text_view_get_line_at_y(int /*long*/ text_view, byte[] target_iter, int y, int[] line_top) {
5784    lock.lock();
5785    try {
5786        _gtk_text_view_get_line_at_y(text_view, target_iter, y, line_top);
5787    } finally {
5788        lock.unlock();
5789    }
5790}
5791public static final native void _gtk_text_view_get_visible_rect(int /*long*/ text_view, GdkRectangle visible_rect);
5792public static final void gtk_text_view_get_visible_rect(int /*long*/ text_view, GdkRectangle visible_rect) {
5793    lock.lock();
5794    try {
5795        _gtk_text_view_get_visible_rect(text_view, visible_rect);
5796    } finally {
5797        lock.unlock();
5798    }
5799}
5800public static final native int /*long*/ _gtk_text_view_get_window(int /*long*/ text_view, int win);
5801public static final int /*long*/ gtk_text_view_get_window(int /*long*/ text_view, int win) {
5802    lock.lock();
5803    try {
5804        return _gtk_text_view_get_window(text_view, win);
5805    } finally {
5806        lock.unlock();
5807    }
5808}
5809public static final native int /*long*/ _gtk_text_view_new();
5810public static final int /*long*/ gtk_text_view_new() {
5811    lock.lock();
5812    try {
5813        return _gtk_text_view_new();
5814    } finally {
5815        lock.unlock();
5816    }
5817}
5818public static final native void _gtk_text_view_scroll_mark_onscreen(int /*long*/ text_view, int /*long*/ mark);
5819public static final void gtk_text_view_scroll_mark_onscreen(int /*long*/ text_view, int /*long*/ mark) {
5820    lock.lock();
5821    try {
5822        _gtk_text_view_scroll_mark_onscreen(text_view, mark);
5823    } finally {
5824        lock.unlock();
5825    }
5826}
5827public static final native boolean _gtk_text_view_scroll_to_iter(int /*long*/ text_view, byte[] iter, double within_margin, boolean use_align, double xalign, double yalign);
5828public static final boolean gtk_text_view_scroll_to_iter(int /*long*/ text_view, byte[] iter, double within_margin, boolean use_align, double xalign, double yalign) {
5829    lock.lock();
5830    try {
5831        return _gtk_text_view_scroll_to_iter(text_view, iter, within_margin, use_align, xalign, yalign);
5832    } finally {
5833        lock.unlock();
5834    }
5835}
5836public static final native void _gtk_text_view_set_editable(int /*long*/ text_view, boolean setting);
5837public static final void gtk_text_view_set_editable(int /*long*/ text_view, boolean setting) {
5838    lock.lock();
5839    try {
5840        _gtk_text_view_set_editable(text_view, setting);
5841    } finally {
5842        lock.unlock();
5843    }
5844}
5845public static final native void _gtk_text_view_set_justification(int /*long*/ text_view, int justification);
5846public static final void gtk_text_view_set_justification(int /*long*/ text_view, int justification) {
5847    lock.lock();
5848    try {
5849        _gtk_text_view_set_justification(text_view, justification);
5850    } finally {
5851        lock.unlock();
5852    }
5853}
5854public static final native void _gtk_text_view_set_tabs(int /*long*/ text_view, int /*long*/ tabs);
5855public static final void gtk_text_view_set_tabs(int /*long*/ text_view, int /*long*/ tabs) {
5856    lock.lock();
5857    try {
5858        _gtk_text_view_set_tabs(text_view, tabs);
5859    } finally {
5860        lock.unlock();
5861    }
5862}
5863public static final native void _gtk_text_view_set_wrap_mode(int /*long*/ text_view, int wrap_mode);
5864public static final void gtk_text_view_set_wrap_mode(int /*long*/ text_view, int wrap_mode) {
5865    lock.lock();
5866    try {
5867        _gtk_text_view_set_wrap_mode(text_view, wrap_mode);
5868    } finally {
5869        lock.unlock();
5870    }
5871}
5872public static final native void _gtk_text_view_window_to_buffer_coords(int /*long*/ text_view, int win, int window_x, int window_y, int[] buffer_x, int[] buffer_y);
5873public static final void gtk_text_view_window_to_buffer_coords(int /*long*/ text_view, int win, int window_x, int window_y, int[] buffer_x, int[] buffer_y) {
5874    lock.lock();
5875    try {
5876        _gtk_text_view_window_to_buffer_coords(text_view, win, window_x, window_y, buffer_x, buffer_y);
5877    } finally {
5878        lock.unlock();
5879    }
5880}
5881public static final native int _gtk_timeout_add(int interval, int /*long*/ function, int /*long*/ data);
5882public static final int gtk_timeout_add(int interval, int /*long*/ function, int /*long*/ data) {
5883    lock.lock();
5884    try {
5885        return _gtk_timeout_add(interval, function, data);
5886    } finally {
5887        lock.unlock();
5888    }
5889}
5890public static final native void _gtk_timeout_remove(int timeout_handler_id);
5891public static final void gtk_timeout_remove(int timeout_handler_id) {
5892    lock.lock();
5893    try {
5894        _gtk_timeout_remove(timeout_handler_id);
5895    } finally {
5896        lock.unlock();
5897    }
5898}
5899public static final native boolean _gtk_toggle_button_get_active(int /*long*/ toggle_button);
5900public static final boolean gtk_toggle_button_get_active(int /*long*/ toggle_button) {
5901    lock.lock();
5902    try {
5903        return _gtk_toggle_button_get_active(toggle_button);
5904    } finally {
5905        lock.unlock();
5906    }
5907}
5908public static final native int /*long*/ _gtk_toggle_button_new();
5909public static final int /*long*/ gtk_toggle_button_new() {
5910    lock.lock();
5911    try {
5912        return _gtk_toggle_button_new();
5913    } finally {
5914        lock.unlock();
5915    }
5916}
5917public static final native void _gtk_toggle_button_set_active(int /*long*/ toggle_button, boolean is_active);
5918public static final void gtk_toggle_button_set_active(int /*long*/ toggle_button, boolean is_active) {
5919    lock.lock();
5920    try {
5921        _gtk_toggle_button_set_active(toggle_button, is_active);
5922    } finally {
5923        lock.unlock();
5924    }
5925}
5926public static final native void _gtk_toggle_button_set_mode(int /*long*/ toggle_button, boolean draw_indicator);
5927public static final void gtk_toggle_button_set_mode(int /*long*/ toggle_button, boolean draw_indicator) {
5928    lock.lock();
5929    try {
5930        _gtk_toggle_button_set_mode(toggle_button, draw_indicator);
5931    } finally {
5932        lock.unlock();
5933    }
5934}
5935public static final native void _gtk_toolbar_insert_widget(int /*long*/ toolbar, int /*long*/ widget, byte[] tooltip_text, byte[] tooltip_private_text, int position);
5936public static final void gtk_toolbar_insert_widget(int /*long*/ toolbar, int /*long*/ widget, byte[] tooltip_text, byte[] tooltip_private_text, int position) {
5937    lock.lock();
5938    try {
5939        _gtk_toolbar_insert_widget(toolbar, widget, tooltip_text, tooltip_private_text, position);
5940    } finally {
5941        lock.unlock();
5942    }
5943}
5944public static final native int /*long*/ _gtk_toolbar_new();
5945public static final int /*long*/ gtk_toolbar_new() {
5946    lock.lock();
5947    try {
5948        return _gtk_toolbar_new();
5949    } finally {
5950        lock.unlock();
5951    }
5952}
5953public static final native void _gtk_toolbar_set_orientation(int /*long*/ toolbar, int orientation);
5954public static final void gtk_toolbar_set_orientation(int /*long*/ toolbar, int orientation) {
5955    lock.lock();
5956    try {
5957        _gtk_toolbar_set_orientation(toolbar, orientation);
5958    } finally {
5959        lock.unlock();
5960    }
5961}
5962public static final native void _gtk_tooltips_disable(int /*long*/ tooltips);
5963public static final void gtk_tooltips_disable(int /*long*/ tooltips) {
5964    lock.lock();
5965    try {
5966        _gtk_tooltips_disable(tooltips);
5967    } finally {
5968        lock.unlock();
5969    }
5970}
5971public static final native void _gtk_tooltips_enable(int /*long*/ tooltips);
5972public static final void gtk_tooltips_enable(int /*long*/ tooltips) {
5973    lock.lock();
5974    try {
5975        _gtk_tooltips_enable(tooltips);
5976    } finally {
5977        lock.unlock();
5978    }
5979}
5980public static final native int /*long*/ _gtk_tooltips_new();
5981public static final int /*long*/ gtk_tooltips_new() {
5982    lock.lock();
5983    try {
5984        return _gtk_tooltips_new();
5985    } finally {
5986        lock.unlock();
5987    }
5988}
5989public static final native void _gtk_tooltips_set_tip(int /*long*/ tooltips, int /*long*/ widget, byte[] tip_text, byte[] tip_private);
5990public static final void gtk_tooltips_set_tip(int /*long*/ tooltips, int /*long*/ widget, byte[] tip_text, byte[] tip_private) {
5991    lock.lock();
5992    try {
5993        _gtk_tooltips_set_tip(tooltips, widget, tip_text, tip_private);
5994    } finally {
5995        lock.unlock();
5996    }
5997}
5998public static final native void _gtk_tree_model_get(int /*long*/ tree_model, int /*long*/ iter, int column, int[] value, int /*long*/ terminator);
5999public static final void gtk_tree_model_get(int /*long*/ tree_model, int /*long*/ iter, int column, int[] value, int /*long*/ terminator) {
6000    lock.lock();
6001    try {
6002        _gtk_tree_model_get(tree_model, iter, column, value, terminator);
6003    } finally {
6004        lock.unlock();
6005    }
6006}
6007public static final native void _gtk_tree_model_get(int /*long*/ tree_model, int /*long*/ iter, int column, long[] value, int /*long*/ terminator);
6008public static final void gtk_tree_model_get(int /*long*/ tree_model, int /*long*/ iter, int column, long[] value, int /*long*/ terminator) {
6009    lock.lock();
6010    try {
6011        _gtk_tree_model_get(tree_model, iter, column, value, terminator);
6012    } finally {
6013        lock.unlock();
6014    }
6015}
6016public static final native boolean _gtk_tree_model_get_iter(int /*long*/ tree_model, int /*long*/ iter, int /*long*/ path);
6017public static final boolean gtk_tree_model_get_iter(int /*long*/ tree_model, int /*long*/ iter, int /*long*/ path) {
6018    lock.lock();
6019    try {
6020        return _gtk_tree_model_get_iter(tree_model, iter, path);
6021    } finally {
6022        lock.unlock();
6023    }
6024}
6025public static final native boolean _gtk_tree_model_get_iter_first(int /*long*/ tree_model, int /*long*/ iter);
6026public static final boolean gtk_tree_model_get_iter_first(int /*long*/ tree_model, int /*long*/ iter) {
6027    lock.lock();
6028    try {
6029        return _gtk_tree_model_get_iter_first(tree_model, iter);
6030    } finally {
6031        lock.unlock();
6032    }
6033}
6034public static final native int _gtk_tree_model_get_n_columns(int /*long*/ tree_model);
6035public static final int gtk_tree_model_get_n_columns(int /*long*/ tree_model) {
6036    lock.lock();
6037    try {
6038        return _gtk_tree_model_get_n_columns(tree_model);
6039    } finally {
6040        lock.unlock();
6041    }
6042}
6043public static final native int /*long*/ _gtk_tree_model_get_path(int /*long*/ tree_model, int /*long*/ iter);
6044public static final int /*long*/ gtk_tree_model_get_path(int /*long*/ tree_model, int /*long*/ iter) {
6045    lock.lock();
6046    try {
6047        return _gtk_tree_model_get_path(tree_model, iter);
6048    } finally {
6049        lock.unlock();
6050    }
6051}
6052public static final native int /*long*/ _gtk_tree_model_get_type();
6053public static final int /*long*/ gtk_tree_model_get_type() {
6054    lock.lock();
6055    try {
6056        return _gtk_tree_model_get_type();
6057    } finally {
6058        lock.unlock();
6059    }
6060}
6061public static final native boolean _gtk_tree_model_iter_children(int /*long*/ model, int /*long*/ iter, int /*long*/ parent);
6062public static final boolean gtk_tree_model_iter_children(int /*long*/ model, int /*long*/ iter, int /*long*/ parent) {
6063    lock.lock();
6064    try {
6065        return _gtk_tree_model_iter_children(model, iter, parent);
6066    } finally {
6067        lock.unlock();
6068    }
6069}
6070public static final native int _gtk_tree_model_iter_n_children(int /*long*/ model, int /*long*/ iter);
6071public static final int gtk_tree_model_iter_n_children(int /*long*/ model, int /*long*/ iter) {
6072    lock.lock();
6073    try {
6074        return _gtk_tree_model_iter_n_children(model, iter);
6075    } finally {
6076        lock.unlock();
6077    }
6078}
6079public static final native boolean _gtk_tree_model_iter_next(int /*long*/ model, int /*long*/ iter);
6080public static final boolean gtk_tree_model_iter_next(int /*long*/ model, int /*long*/ iter) {
6081    lock.lock();
6082    try {
6083        return _gtk_tree_model_iter_next(model, iter);
6084    } finally {
6085        lock.unlock();
6086    }
6087}
6088public static final native boolean _gtk_tree_model_iter_nth_child(int /*long*/ tree_model, int /*long*/ iter, int /*long*/ parent, int n);
6089public static final boolean gtk_tree_model_iter_nth_child(int /*long*/ tree_model, int /*long*/ iter, int /*long*/ parent, int n) {
6090    lock.lock();
6091    try {
6092        return _gtk_tree_model_iter_nth_child(tree_model, iter, parent, n);
6093    } finally {
6094        lock.unlock();
6095    }
6096}
6097public static final native void _gtk_tree_path_append_index(int /*long*/ path, int index);
6098public static final void gtk_tree_path_append_index(int /*long*/ path, int index) {
6099    lock.lock();
6100    try {
6101        _gtk_tree_path_append_index(path, index);
6102    } finally {
6103        lock.unlock();
6104    }
6105}
6106public static final native int /*long*/ _gtk_tree_path_compare(int /*long*/ a, int /*long*/ b);
6107public static final int /*long*/ gtk_tree_path_compare(int /*long*/ a, int /*long*/ b) {
6108    lock.lock();
6109    try {
6110         return _gtk_tree_path_compare(a, b);
6111    } finally {
6112        lock.unlock();
6113    }
6114}
6115public static final native void _gtk_tree_path_down(int /*long*/ path);
6116public static final void gtk_tree_path_down(int /*long*/ path) {
6117    lock.lock();
6118    try {
6119         _gtk_tree_path_down(path);
6120    } finally {
6121        lock.unlock();
6122    }
6123}
6124public static final native void _gtk_tree_path_free(int /*long*/ path);
6125public static final void gtk_tree_path_free(int /*long*/ path) {
6126    lock.lock();
6127    try {
6128        _gtk_tree_path_free(path);
6129    } finally {
6130        lock.unlock();
6131    }
6132}
6133public static final native int _gtk_tree_path_get_depth(int /*long*/ path);
6134public static final int gtk_tree_path_get_depth(int /*long*/ path) {
6135    lock.lock();
6136    try {
6137        return _gtk_tree_path_get_depth(path);
6138    } finally {
6139        lock.unlock();
6140    }
6141}
6142public static final native int /*long*/ _gtk_tree_path_get_indices(int /*long*/ path);
6143public static final int /*long*/ gtk_tree_path_get_indices(int /*long*/ path) {
6144    lock.lock();
6145    try {
6146        return _gtk_tree_path_get_indices(path);
6147    } finally {
6148        lock.unlock();
6149    }
6150}
6151public static final native int /*long*/ _gtk_tree_path_new();
6152public static final int /*long*/ gtk_tree_path_new() {
6153    lock.lock();
6154    try {
6155        return _gtk_tree_path_new();
6156    } finally {
6157        lock.unlock();
6158    }
6159}
6160public static final native int /*long*/ _gtk_tree_path_new_first();
6161public static final int /*long*/ gtk_tree_path_new_first() {
6162    lock.lock();
6163    try {
6164        return _gtk_tree_path_new_first();
6165    } finally {
6166        lock.unlock();
6167    }
6168}
6169public static final native int /*long*/ _gtk_tree_path_new_from_string(byte[] path);
6170public static final int /*long*/ gtk_tree_path_new_from_string(byte[] path) {
6171    lock.lock();
6172    try {
6173        return _gtk_tree_path_new_from_string(path);
6174    } finally {
6175        lock.unlock();
6176    }
6177}
6178public static final native int /*long*/ _gtk_tree_path_new_from_string(int /*long*/ path);
6179public static final int /*long*/ gtk_tree_path_new_from_string(int /*long*/ path) {
6180    lock.lock();
6181    try {
6182        return _gtk_tree_path_new_from_string(path);
6183    } finally {
6184        lock.unlock();
6185    }
6186}
6187public static final native void _gtk_tree_path_next(int /*long*/ path);
6188public static final void gtk_tree_path_next(int /*long*/ path) {
6189    lock.lock();
6190    try {
6191        _gtk_tree_path_next(path);
6192    } finally {
6193        lock.unlock();
6194    }
6195}
6196public static final native boolean _gtk_tree_path_prev(int /*long*/ path);
6197public static final boolean gtk_tree_path_prev(int /*long*/ path) {
6198    lock.lock();
6199    try {
6200        return _gtk_tree_path_prev(path);
6201    } finally {
6202        lock.unlock();
6203    }
6204}
6205public static final native boolean _gtk_tree_path_up(int /*long*/ path);
6206public static final boolean gtk_tree_path_up(int /*long*/ path) {
6207    lock.lock();
6208    try {
6209        return _gtk_tree_path_up(path);
6210    } finally {
6211        lock.unlock();
6212    }
6213}
6214public static final native int _gtk_tree_selection_count_selected_rows(int /*long*/ selection);
6215public static final int gtk_tree_selection_count_selected_rows(int /*long*/ selection) {
6216    lock.lock();
6217    try {
6218        return _gtk_tree_selection_count_selected_rows(selection);
6219    } finally {
6220        lock.unlock();
6221    }
6222}
6223public static final native boolean _gtk_tree_selection_get_selected(int /*long*/ selection, int /*long*/[] model, int /*long*/ iter);
6224public static final boolean gtk_tree_selection_get_selected(int /*long*/ selection, int /*long*/[] model, int /*long*/ iter) {
6225    lock.lock();
6226    try {
6227        return _gtk_tree_selection_get_selected(selection, model, iter);
6228    } finally {
6229        lock.unlock();
6230    }
6231}
6232public static final native int /*long*/ _gtk_tree_selection_get_selected_rows(int /*long*/ selection, int /*long*/[] model);
6233public static final int /*long*/ gtk_tree_selection_get_selected_rows(int /*long*/ selection, int /*long*/[] model) {
6234    lock.lock();
6235    try {
6236        return _gtk_tree_selection_get_selected_rows(selection, model);
6237    } finally {
6238        lock.unlock();
6239    }
6240}
6241public static final native boolean _gtk_tree_selection_path_is_selected(int /*long*/ selection, int /*long*/ path);
6242public static final boolean gtk_tree_selection_path_is_selected(int /*long*/ selection, int /*long*/ path) {
6243    lock.lock();
6244    try {
6245        return _gtk_tree_selection_path_is_selected(selection, path);
6246    } finally {
6247        lock.unlock();
6248    }
6249}
6250public static final native void _gtk_tree_selection_select_all(int /*long*/ selection);
6251public static final void gtk_tree_selection_select_all(int /*long*/ selection) {
6252    lock.lock();
6253    try {
6254        _gtk_tree_selection_select_all(selection);
6255    } finally {
6256        lock.unlock();
6257    }
6258}
6259public static final native void _gtk_tree_selection_select_iter(int /*long*/ selection, int /*long*/ iter);
6260public static final void gtk_tree_selection_select_iter(int /*long*/ selection, int /*long*/ iter) {
6261    lock.lock();
6262    try {
6263        _gtk_tree_selection_select_iter(selection, iter);
6264    } finally {
6265        lock.unlock();
6266    }
6267}
6268public static final native void _gtk_tree_selection_selected_foreach(int /*long*/ selection, int /*long*/ func, int /*long*/ data);
6269public static final void gtk_tree_selection_selected_foreach(int /*long*/ selection, int /*long*/ func, int /*long*/ data) {
6270    lock.lock();
6271    try {
6272        _gtk_tree_selection_selected_foreach(selection, func, data);
6273    } finally {
6274        lock.unlock();
6275    }
6276}
6277public static final native void _gtk_tree_selection_set_mode(int /*long*/ selection, int mode);
6278public static final void gtk_tree_selection_set_mode(int /*long*/ selection, int mode) {
6279    lock.lock();
6280    try {
6281        _gtk_tree_selection_set_mode(selection, mode);
6282    } finally {
6283        lock.unlock();
6284    }
6285}
6286public static final native void _gtk_tree_selection_unselect_all(int /*long*/ selection);
6287public static final void gtk_tree_selection_unselect_all(int /*long*/ selection) {
6288    lock.lock();
6289    try {
6290        _gtk_tree_selection_unselect_all(selection);
6291    } finally {
6292        lock.unlock();
6293    }
6294}
6295public static final native void _gtk_tree_selection_unselect_iter(int /*long*/ selection, int /*long*/ iter);
6296public static final void gtk_tree_selection_unselect_iter(int /*long*/ selection, int /*long*/ iter) {
6297    lock.lock();
6298    try {
6299        _gtk_tree_selection_unselect_iter(selection, iter);
6300    } finally {
6301        lock.unlock();
6302    }
6303}
6304public static final native void _gtk_tree_store_append(int /*long*/ store, int /*long*/ iter, int /*long*/ parent);
6305public static final void gtk_tree_store_append(int /*long*/ store, int /*long*/ iter, int /*long*/ parent) {
6306    lock.lock();
6307    try {
6308        _gtk_tree_store_append(store, iter, parent);
6309    } finally {
6310        lock.unlock();
6311    }
6312}
6313public static final native void _gtk_tree_store_clear(int /*long*/ store);
6314public static final void gtk_tree_store_clear(int /*long*/ store) {
6315    lock.lock();
6316    try {
6317        _gtk_tree_store_clear(store);
6318    } finally {
6319        lock.unlock();
6320    }
6321}
6322public static final native void _gtk_tree_store_insert(int /*long*/ store, int /*long*/ iter, int /*long*/ parent, int position);
6323public static final void gtk_tree_store_insert(int /*long*/ store, int /*long*/ iter, int /*long*/ parent, int position) {
6324    lock.lock();
6325    try {
6326        _gtk_tree_store_insert(store, iter, parent, position);
6327    } finally {
6328        lock.unlock();
6329    }
6330}
6331public static final native int /*long*/ _gtk_tree_store_newv(int numColumns, int /*long*/[] types);
6332public static final int /*long*/ gtk_tree_store_newv(int numColumns, int /*long*/[] types) {
6333    lock.lock();
6334    try {
6335        return _gtk_tree_store_newv(numColumns, types);
6336    } finally {
6337        lock.unlock();
6338    }
6339}
6340public static final native void _gtk_tree_store_remove(int /*long*/ store, int /*long*/ iter);
6341public static final void gtk_tree_store_remove(int /*long*/ store, int /*long*/ iter) {
6342    lock.lock();
6343    try {
6344        _gtk_tree_store_remove(store, iter);
6345    } finally {
6346        lock.unlock();
6347    }
6348}
6349public static final native void _gtk_tree_store_set(int /*long*/ store, int /*long*/ iter, int column, byte[] value, int /*long*/ terminator);
6350public static final void gtk_tree_store_set(int /*long*/ store, int /*long*/ iter, int column, byte[] value, int /*long*/ terminator) {
6351    lock.lock();
6352    try {
6353        _gtk_tree_store_set(store, iter, column, value, terminator);
6354    } finally {
6355        lock.unlock();
6356    }
6357}
6358public static final native void _gtk_tree_store_set(int /*long*/ store, int /*long*/ iter, int column, int value, int /*long*/ terminator);
6359public static final void gtk_tree_store_set(int /*long*/ store, int /*long*/ iter, int column, int value, int /*long*/ terminator) {
6360    lock.lock();
6361    try {
6362        _gtk_tree_store_set(store, iter, column, value, terminator);
6363    } finally {
6364        lock.unlock();
6365    }
6366}
6367public static final native void _gtk_tree_store_set(int /*long*/ store, int /*long*/ iter, int column, long value, int /*long*/ terminator);
6368public static final void gtk_tree_store_set(int /*long*/ store, int /*long*/ iter, int column, long value, int /*long*/ terminator) {
6369    lock.lock();
6370    try {
6371        _gtk_tree_store_set(store, iter, column, value, terminator);
6372    } finally {
6373        lock.unlock();
6374    }
6375}
6376public static final native void _gtk_tree_store_set(int /*long*/ store, int /*long*/ iter, int column, GdkColor value, int /*long*/ terminator);
6377public static final void gtk_tree_store_set(int /*long*/ store, int /*long*/ iter, int column, GdkColor value, int /*long*/ terminator) {
6378    lock.lock();
6379    try {
6380        _gtk_tree_store_set(store, iter, column, value, terminator);
6381    } finally {
6382        lock.unlock();
6383    }
6384}
6385public static final native void _gtk_tree_store_set(int /*long*/ store, int /*long*/ iter, int column, boolean value, int /*long*/ terminator);
6386public static final void gtk_tree_store_set(int /*long*/ store, int /*long*/ iter, int column, boolean value, int /*long*/ terminator) {
6387    lock.lock();
6388    try {
6389        _gtk_tree_store_set(store,