LiVES  2.4.1-svn
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
widget-helper-gtk.h
Go to the documentation of this file.
1 // widget-helper-gtk.h
2 // LiVES
3 // (c) G. Finch 2012 - 2015 <salsaman@gmail.com>
4 // released under the GNU GPL 3 or later
5 // see file ../COPYING or www.gnu.org for licensing details
6 
7 // widget implementation for GTK+
8 
9 #ifndef HAS_LIVES_WIDGET_HELPER_GTK_H
10 #define HAS_LIVES_WIDGET_HELPER_GTK_H
11 
12 #ifdef GUI_GTK
13 
14 #ifndef IS_MINGW
15 typedef gboolean boolean;
16 #endif
17 
18 #ifdef GDK_WINDOWING_WIN32
19 #include <gdk/gdkwin32.h>
20 
21 #ifndef GDK_IS_WIN32_DISPLAY
22 #define GDK_IS_WIN32_DISPLAY(display) (TRUE)
23 #endif
24 
25 #endif //GDK_WINDOWING_WIN32
26 
27 #ifdef GDK_WINDOWING_X11
28 
29 // needed for GDK_WINDOW_XID - for fileselector preview
30 // needed for gdk_x11_screen_get_window_manager_name()
31 
32 #include <gdk/gdkx.h>
33 
34 #ifndef GDK_IS_X11_DISPLAY
35 #define GDK_IS_X11_DISPLAY(display) (TRUE)
36 #endif
37 
38 #ifndef GDK_IS_WIN32_DISPLAY
39 #define GDK_IS_WIN32_DISPLAY(display) (FALSE)
40 #endif
41 
42 
43 #else
44 
45 #ifndef GDK_IS_X11_DISPLAY
46 #define GDK_IS_X11_DISPLAY(display) (FALSE)
47 #endif
48 
49 #endif // GDK_WINDOWING_X11
50 
51 #endif // GUI_GTK
52 
53 
54 #ifdef PAINTER_CAIRO
55 
56 #ifndef GUI_GTK
57 #include <cairo/cairo.h>
58 #endif
59 
60 
61 typedef cairo_t lives_painter_t;
62 typedef cairo_surface_t lives_painter_surface_t;
63 
64 boolean lives_painter_surface_destroy(lives_painter_surface_t *);
65 
66 
67 typedef cairo_format_t lives_painter_format_t;
68 
69 #define LIVES_PAINTER_FORMAT_A1 CAIRO_FORMAT_A1
70 #define LIVES_PAINTER_FORMAT_A8 CAIRO_FORMAT_A8
71 #define LIVES_PAINTER_FORMAT_ARGB32 CAIRO_FORMAT_ARGB32
72 
73 
74 typedef cairo_content_t lives_painter_content_t; // eg. color, alpha, color+alpha
75 
76 #define LIVES_PAINTER_CONTENT_COLOR CAIRO_CONTENT_COLOR
77 
78 
79 typedef cairo_operator_t lives_painter_operator_t;
80 
81 #define LIVES_PAINTER_OPERATOR_UNKNOWN CAIRO_OPERATOR_OVER
82 #define LIVES_PAINTER_OPERATOR_DEFAULT CAIRO_OPERATOR_OVER
83 
84 #define LIVES_PAINTER_OPERATOR_DEST_OUT CAIRO_OPERATOR_DEST_OUT
85 #if CAIRO_VERSION < CAIRO_VERSION_ENCODE(1, 10, 0)
86 #define LIVES_PAINTER_OPERATOR_DIFFERENCE CAIRO_OPERATOR_OVER
87 #define LIVES_PAINTER_OPERATOR_OVERLAY CAIRO_OPERATOR_OVER
88 #else
89 #define LIVES_PAINTER_OPERATOR_DIFFERENCE CAIRO_OPERATOR_DIFFERENCE
90 #define LIVES_PAINTER_OPERATOR_OVERLAY CAIRO_OPERATOR_OVERLAY
91 #endif
92 
93 typedef cairo_fill_rule_t lives_painter_fill_rule_t;
94 
95 #define LIVES_PAINTER_FILL_RULE_WINDING CAIRO_FILL_RULE_WINDING
96 #define LIVES_PAINTER_FILL_RULE_EVEN_ODD CAIRO_FILL_RULE_EVEN_ODD
97 
98 
99 #endif
100 
101 
102 #ifdef GUI_GTK
103 
104 #include "support.h"
105 
106 
107 
109 #ifndef G_ENCODE_VERSION
110 #define G_ENCODE_VERSION(major,minor) ((major) << 16 | (minor) << 8)
111 #endif
112 
113 #define lives_free(a) g_free(a)
114 #define lives_malloc(a) g_malloc(a)
115 #define lives_malloc0(a) g_malloc0(a)
116 #define lives_realloc(a,b) g_realloc(a,b)
117 #define lives_try_malloc0_n(a,b) g_try_malloc0_n(a,b)
118 #define lives_try_malloc(a) g_try_malloc(a)
119 #define lives_try_malloc0(a) g_try_malloc0(a)
120 #define lives_try_realloc(a,b) g_try_realloc(a,b)
121 
122 
123 typedef GError LiVESError;
124 
125 typedef GList LiVESList;
126 typedef GSList LiVESSList;
127 
128 typedef gpointer livespointer;
129 typedef gconstpointer livesconstpointer;
130 
131 typedef GClosure LiVESWidgetClosure;
132 
133 typedef GObject LiVESObject;
134 
135 typedef GLogLevelFlags LiVESLogLevelFlags;
136 
137 #define LIVES_LOG_LEVEL_WARNING G_LOG_LEVEL_WARNING
138 #define LIVES_LOG_LEVEL_MASK G_LOG_LEVEL_MASK
139 #define LIVES_LOG_LEVEL_CRITICAL G_LOG_LEVEL_CRITICAL
140 #define LIVES_LOG_FATAL_MASK G_LOG_FATAL_MASK
141 
143 
144 #if GTK_CHECK_VERSION(3,10,0)
145 #define LIVES_TABLE_IS_GRID 1
146 #endif
147 
148 #define return_true gtk_true
149 
150 typedef void (*LiVESGuiCallback)(void);
151 typedef void (*LiVESWidgetCallback)(GtkWidget *widget, gpointer data);
152 typedef gboolean(*LiVESWidgetSourceFunc)(gpointer data);
153 typedef gint(*LiVESCompareFunc)(gconstpointer a, gconstpointer b);
154 
155 #define LIVES_LITTLE_ENDIAN G_LITTLE_ENDIAN
156 #define LIVES_BIG_ENDIAN G_BIG_ENDIAN
157 
158 #define LIVES_MAXINT G_MAXINT
159 #define LIVES_MAXUINT32 G_MAXUINT32
160 #define LIVES_MAXSIZE G_MAXSIZE
161 #define LIVES_MAXFLOAT G_MAXFLOAT
162 
163 #define LIVES_GUI_CALLBACK(f) ((LiVESGuiCallback) (f))
164 
165 #define lives_printerr(args...) g_printerr(args)
166 #define lives_strdup_printf(args...) g_strdup_printf(args)
167 #define lives_strdup_vprintf(args...) g_strdup_vprintf(args)
168 #define lives_strndup_printf(args...) g_strndup_printf(args)
169 #define lives_strndup(a,b) g_strndup(a,b)
170 #define lives_snprintf(a,b,args...) g_snprintf(a,b,args)
171 #define lives_strsplit(a,b,c) g_strsplit(a,b,c)
172 #define lives_strfreev(a) g_strfreev(a)
173 #define lives_ascii_strcasecmp(a,b) g_ascii_strcasecmp(a,b)
174 #define lives_ascii_strncasecmp(a,b,c) g_ascii_strncasecmp(a,b,c)
175 #define lives_strconcat(a,args...) g_strconcat(a,args)
176 #define lives_strstrip(a) g_strstrip(a)
177 #define lives_strrstr(a,b) g_strrstr(a,b)
178 #define lives_strstr_len(a,b,c) g_strstr_len(a,b,c)
179 #define lives_strdelimit(a,b,c) g_strdelimit(a,b,c)
180 
181 #define LIVES_NORMALIZE_DEFAULT G_NORMALIZE_DEFAULT
182 
183 #define lives_utf8_normalize(a,b,c) g_utf8_normalize(a,b,c)
184 
185 
186 #define lives_list_nth_data(list,i) g_list_nth_data(list,i)
187 #define lives_list_nth(list,i) g_list_nth(list,i)
188 #define lives_list_length(list) g_list_length(list)
189 #define lives_list_free(list) g_list_free(list)
190 #define lives_list_append(list,data) g_list_append(list,data)
191 #define lives_list_prepend(list,data) g_list_prepend(list,data)
192 #define lives_list_find(list,data) g_list_find(list,data)
193 #define lives_list_previous(list) g_list_previous(list)
194 #define lives_list_last(list) g_list_last(list)
195 #define lives_list_delete_link(list,link) g_list_delete_link(list,link)
196 #define lives_list_copy(list) g_list_copy(list)
197 #define lives_list_next(list) g_list_next(list)
198 #define lives_list_first(list) g_list_first(list)
199 #define lives_list_remove(list,data) g_list_remove(list,data)
200 #define lives_list_remove_link(list,data) g_list_remove_link(list,data)
201 #define lives_list_concat(list,data) g_list_concat(list,data)
202 #define lives_list_insert(list,data,pos) g_list_insert(list,data,pos)
203 #define lives_list_index(list,data) g_list_index(list,data)
204 #define lives_list_find_custom(list,data,func) g_list_find_custom(list,data,func)
205 
206 #define lives_slist_free(list) g_slist_free(list)
207 #define lives_slist_length(list) g_slist_length(list)
208 #define lives_slist_nth_data(list,i) g_slist_nth_data(list,i)
209 #define lives_slist_append(list,data) g_slist_append(list,data)
210 
211 #define lives_build_filename(args...) g_build_filename(args)
212 #define lives_filename_to_utf8(a,b,c,d,e) g_filename_to_utf8(a,b,c,d,e)
213 #define lives_filename_from_utf8(a,b,c,d,e) g_filename_from_utf8(a,b,c,d,e)
214 
215 #define lives_utf8_strdown(a,b) g_utf8_strdown(a,b)
216 
217 #define lives_find_program_in_path(a) g_find_program_in_path(a)
218 
219 #define lives_idle_add(a,b) g_idle_add(a,b)
220 #define lives_idle_add_full(a,b,c,d) g_idle_add_full(a,b,c,d)
221 
222 #define lives_set_application_name(a) g_set_application_name(a)
223 #define lives_get_application_name() g_get_application_name()
224 
225 #define lives_usleep(a) g_usleep(a)
226 
227 #define lives_mkdir_with_parents(a,b) g_mkdir_with_parents(a,b)
228 
229 #define lives_strtod(a,b) g_strtod(a,b)
230 
231 #define lives_path_get_basename(a) g_path_get_basename(a)
232 
233 #define LIVES_UNLIKELY(a) G_UNLIKELY(a)
234 #define LIVES_LIKELY(a) G_LIKELY(a)
235 
236 #define lives_file_test(a,b) g_file_test(a,b)
237 
238 #define lives_get_current_dir() g_get_current_dir()
239 
240 #define lives_error_free(a) g_error_free(a)
241 
242 #define lives_strerror(a) g_strerror(a)
243 
244 #define lives_cclosure_new(a,b,c) g_cclosure_new(a,b,c)
245 
246 #define lives_path_get_dirname(a) g_path_get_dirname(a)
247 
248 #define U82L(String) ( g_locale_from_utf8 (String,-1,NULL,NULL,NULL) )
249 #define L2U8(String) ( g_locale_to_utf8 (String,-1,NULL,NULL,NULL) )
250 
251 #define U82F(String) ( g_filename_from_utf8 (String,-1,NULL,NULL,NULL) )
252 #define F2U8(String) ( g_filename_to_utf8 (String,-1,NULL,NULL,NULL) )
253 
254 
255 #define LIVES_FILE_TEST_EXISTS G_FILE_TEST_EXISTS
256 #define LIVES_FILE_TEST_IS_DIR G_FILE_TEST_IS_DIR
257 #define LIVES_FILE_TEST_IS_REGULAR G_FILE_TEST_IS_REGULAR
258 
259 #define LIVES_DIR_SEPARATOR_S G_DIR_SEPARATOR_S
260 
261 typedef GtkJustification LiVESJustification;
262 
263 #define LIVES_JUSTIFY_LEFT GTK_JUSTIFY_LEFT
264 #define LIVES_JUSTIFY_RIGHT GTK_JUSTIFY_RIGHT
265 #define LIVES_JUSTIFY_CENTER GTK_JUSTIFY_CENTER
266 #define LIVES_JUSTIFY_FILL GTK_JUSTIFY_RIGHT
267 
268 typedef GtkOrientation LiVESOrientation;
269 #define LIVES_ORIENTATION_HORIZONTAL GTK_ORIENTATION_HORIZONTAL
270 #define LIVES_ORIENTATION_VERTICAL GTK_ORIENTATION_VERTICAL
271 
272 typedef GdkEvent LiVESXEvent;
273 typedef GdkXEvent LiVESXXEvent;
274 typedef GdkEventButton LiVESXEventButton;
275 typedef GdkEventMotion LiVESXEventMotion;
276 typedef GdkEventScroll LiVESXEventScroll;
277 typedef GdkEventExpose LiVESXEventExpose;
278 typedef GdkEventCrossing LiVESXEventCrossing;
279 typedef GdkEventConfigure LiVESXEventConfigure;
280 typedef GdkEventFocus LiVESXEventFocus;
281 typedef GdkEvent LiVESXEventDelete;
282 typedef GdkDisplay LiVESXDisplay;
283 typedef GdkScreen LiVESXScreen;
284 typedef GdkDevice LiVESXDevice;
285 
286 
287 #define LIVES_SCROLL_UP GDK_SCROLL_UP
288 #define LIVES_SCROLL_DOWN GDK_SCROLL_DOWN
289 
290 #if GTK_CHECK_VERSION(3,0,0)
291 #undef LIVES_HAS_DEVICE_MANAGER
292 #define LIVES_HAS_DEVICE_MANAGER 1
293 typedef GdkDeviceManager LiVESXDeviceManager;
294 #endif
295 
296 #if GTK_CHECK_VERSION(3,0,0)
297 #define LIVES_WIDGET_EXPOSE_EVENT "draw"
298 #define LIVES_GUI_OBJECT(a) a
299 #else
300 #define LIVES_GUI_OBJECT(a) GTK_OBJECT(a)
301 #define LIVES_WIDGET_EXPOSE_EVENT "expose_event"
302 #define LIVES_GUI_OBJECT_CLASS(a) GTK_OBJECT_CLASS(a)
303 #endif
304 
305 #define lives_widget_object_set_data(a, b, c) g_object_set_data(a, b, c)
306 #define lives_widget_object_get_data(a, b) g_object_get_data(a, b)
307 
308 #define LIVES_WIDGET_OBJECT(a) G_OBJECT(a)
309 
310 typedef GMemVTable LiVESMemVTable;
311 typedef GIOChannel LiVESIOChannel;
312 
313 typedef GtkTargetEntry LiVESTargetEntry;
314 
315 typedef GdkFilterReturn LiVESFilterReturn;
316 
317 #define LIVES_FILTER_REMOVE GDK_FILTER_REMOVE
318 #define LIVES_FILTER_CONTINUE GDK_FILTER_CONTINUE
319 
320 // events
321 #define LIVES_WIDGET_SCROLL_EVENT "scroll-event"
322 #define LIVES_WIDGET_CONFIGURE_EVENT "configure-event"
323 #define LIVES_WIDGET_ENTER_EVENT "enter-notify-event"
324 #define LIVES_WIDGET_BUTTON_PRESS_EVENT "button-press-event"
325 #define LIVES_WIDGET_BUTTON_RELEASE_EVENT "button-release-event"
326 #define LIVES_WIDGET_MOTION_NOTIFY_EVENT "motion-notify-event"
327 #define LIVES_WIDGET_LEAVE_NOTIFY_EVENT "leave-notify-event"
328 #define LIVES_WIDGET_FOCUS_OUT_EVENT "focus-out-event"
329 #define LIVES_WIDGET_DELETE_EVENT "delete-event"
330 
331 // signals
332 #define LIVES_WIDGET_CLICKED_SIGNAL "clicked"
333 #define LIVES_WIDGET_TOGGLED_SIGNAL "toggled"
334 #define LIVES_WIDGET_CHANGED_SIGNAL "changed"
335 #define LIVES_WIDGET_ACTIVATE_SIGNAL "activate"
336 #define LIVES_WIDGET_VALUE_CHANGED_SIGNAL "value-changed"
337 #define LIVES_WIDGET_SELECTION_CHANGED_SIGNAL "selection-changed"
338 #define LIVES_WIDGET_CURRENT_FOLDER_CHANGED_SIGNAL "current-folder-changed"
339 #define LIVES_WIDGET_RESPONSE_SIGNAL "response"
340 #define LIVES_WIDGET_DRAG_DATA_RECEIVED_SIGNAL "drag-data-received"
341 #define LIVES_WIDGET_SIZE_PREPARED_SIGNAL "size-prepared"
342 #define LIVES_WIDGET_MODE_CHANGED_SIGNAL "mode-changed"
343 #define LIVES_WIDGET_ACCEPT_POSITION_SIGNAL "accept-position"
344 #define LIVES_WIDGET_SWITCH_PAGE_SIGNAL "switch-page"
345 #define LIVES_WIDGET_UNMAP_SIGNAL "unmap"
346 #define LIVES_WIDGET_EDITED_SIGNAL "edited"
347 #define LIVES_WIDGET_COLOR_SET_SIGNAL "color-set"
348 #define LIVES_WIDGET_SET_FOCUS_CHILD_SIGNAL "set-focus-child"
349 
350 #if GTK_CHECK_VERSION(3,0,0)
351 #define LIVES_WIDGET_STATE_CHANGED_SIGNAL "state-flags-changed"
352 #else
353 #define LIVES_WIDGET_STATE_CHANGED_SIGNAL "state-changed"
354 #endif
355 
356 
357 typedef GtkWidget LiVESWidget;
358 typedef GtkWindow LiVESWindow;
359 typedef GtkContainer LiVESContainer;
360 typedef GtkBin LiVESBin;
361 typedef GtkDialog LiVESDialog;
362 typedef GtkBox LiVESBox;
363 typedef GtkFrame LiVESFrame;
364 typedef GtkComboBox LiVESCombo;
365 typedef GtkComboBox LiVESComboBox;
366 typedef GtkButton LiVESButton;
367 typedef GtkButtonBox LiVESButtonBox;
368 typedef GtkToggleButton LiVESToggleButton;
369 
370 typedef GtkTextView LiVESTextView;
371 typedef GtkTextBuffer LiVESTextBuffer;
372 typedef GtkTextMark LiVESTextMark;
373 typedef GtkTextIter LiVESTextIter;
374 
375 typedef GtkEntry LiVESEntry;
376 typedef GtkEntryCompletion LiVESEntryCompletion;
377 typedef GtkRadioButton LiVESRadioButton;
378 typedef GtkSpinButton LiVESSpinButton;
379 typedef GtkColorButton LiVESColorButton;
380 typedef GtkToolButton LiVESToolButton;
381 typedef GtkLabel LiVESLabel;
382 typedef GtkImage LiVESImage;
383 typedef GtkFileChooser LiVESFileChooser;
384 typedef GtkAlignment LiVESAlignment;
385 typedef GtkMenu LiVESMenu;
386 typedef GtkMenuShell LiVESMenuShell;
387 typedef GtkMenuItem LiVESMenuItem;
388 typedef GtkMenuToolButton LiVESMenuToolButton;
389 typedef GtkCheckMenuItem LiVESCheckMenuItem;
390 typedef GtkImageMenuItem LiVESImageMenuItem;
391 typedef GtkRadioMenuItem LiVESRadioMenuItem;
392 
393 typedef GtkNotebook LiVESNotebook;
394 
395 typedef GtkExpander LiVESExpander;
396 
397 typedef GtkProgressBar LiVESProgressBar;
398 
399 typedef GtkAboutDialog LiVESAboutDialog;
400 
401 #define LIVES_COL_TYPE_STRING G_TYPE_STRING
402 #define LIVES_COL_TYPE_INT G_TYPE_INT
403 #define LIVES_COL_TYPE_UINT G_TYPE_UINT
404 #define LIVES_COL_TYPE_BOOLEAN G_TYPE_BOOLEAN
405 #define LIVES_COL_TYPE_PIXBUF GDK_TYPE_PIXBUF
406 
407 
408 typedef GtkTreeView LiVESTreeView;
409 typedef GtkTreeViewColumn LiVESTreeViewColumn;
410 
411 typedef GtkTreeViewColumnSizing LiVESTreeViewColumnSizing;
412 #define LIVES_TREE_VIEW_COLUMN_GROW_ONLY GTK_TREE_VIEW_COLUMN_GROW_ONLY
413 #define LIVES_TREE_VIEW_COLUMN_AUTOSIZE GTK_TREE_VIEW_COLUMN_AUTOSIZE
414 #define LIVES_TREE_VIEW_COLUMN_FIXED GTK_TREE_VIEW_COLUMN_FIXED
415 
416 
417 typedef GtkCellRenderer LiVESCellRenderer;
418 typedef GtkTreeModel LiVESTreeModel;
419 typedef GtkTreeIter LiVESTreeIter;
420 typedef GtkTreePath LiVESTreePath;
421 typedef GtkTreeStore LiVESTreeStore;
422 typedef GtkTreeSelection LiVESTreeSelection;
423 typedef GtkListStore LiVESListStore;
424 
425 
426 typedef GtkScrolledWindow LiVESScrolledWindow;
427 typedef GtkScrollbar LiVESScrollbar;
428 typedef GtkHScrollbar LiVESHScrollbar;
429 typedef GtkToolbar LiVESToolbar;
430 typedef GtkToolItem LiVESToolItem;
431 
432 #if GTK_CHECK_VERSION(2,14,0)
433 typedef GtkScaleButton LiVESScaleButton;
434 #else
435 typedef GtkRange LiVESScaleButton;
436 #endif
437 
438 #if GTK_CHECK_VERSION(3,2,0)
439 typedef GtkGrid LiVESGrid;
440 #undef LIVES_HAS_GRID_WIDGET
441 #define LIVES_HAS_GRID_WIDGET 1
442 #else
443 typedef LiVESWidget LiVESGrid;
444 #endif
445 
446 #ifdef LIVES_TABLE_IS_GRID
447 typedef GtkGrid LiVESTable;
448 #else
449 typedef GtkTable LiVESTable;
450 #endif
451 
452 typedef GtkEditable LiVESEditable;
453 
454 #if GTK_CHECK_VERSION(3,0,0)
455 #define LIVES_WIDGET_COLOR_HAS_ALPHA (1)
456 #define LIVES_WIDGET_COLOR_SCALE(x) (x)
457 #define LIVES_WIDGET_COLOR_SCALE_255(x) ((double)x/255.)
458 typedef GdkRGBA LiVESWidgetColor;
459 
460 typedef GtkStateFlags LiVESWidgetState;
461 
462 #define LIVES_WIDGET_STATE_NORMAL GTK_STATE_FLAG_NORMAL
463 #define LIVES_WIDGET_STATE_ACTIVE GTK_STATE_FLAG_ACTIVE
464 #define LIVES_WIDGET_STATE_PRELIGHT GTK_STATE_FLAG_PRELIGHT
465 #define LIVES_WIDGET_STATE_SELECTED GTK_STATE_FLAG_SELECTED
466 #define LIVES_WIDGET_STATE_INSENSITIVE GTK_STATE_FLAG_INSENSITIVE
467 #define LIVES_WIDGET_STATE_INCONSISTENT GTK_STATE_FLAG_INCONSISTENT
468 #define LIVES_WIDGET_STATE_FOCUSED GTK_STATE_FLAG_FOCUSED
469 #define LIVES_WIDGET_STATE_BACKDROP GTK_STATE_FLAG_BACKDROP
470 
471 #else
472 #define LIVES_WIDGET_COLOR_HAS_ALPHA (0)
473 #define LIVES_WIDGET_COLOR_SCALE(x) ((double)x/65535.)
474 #define LIVES_WIDGET_COLOR_SCALE_255(x) ((int)((double)x*256.+.5))
475 typedef GdkColor LiVESWidgetColor;
476 typedef GtkStateType LiVESWidgetState;
477 
478 #define LIVES_WIDGET_STATE_NORMAL GTK_STATE_NORMAL
479 #define LIVES_WIDGET_STATE_ACTIVE GTK_STATE_ACTIVE
480 #define LIVES_WIDGET_STATE_PRELIGHT GTK_STATE_PRELIGHT
481 #define LIVES_WIDGET_STATE_SELECTED GTK_STATE_SELECTED
482 #define LIVES_WIDGET_STATE_INSENSITIVE GTK_STATE_INSENSITIVE
483 #define LIVES_WIDGET_STATE_INCONSISTENT (GTK_STATE_INSENSITIVE+1)
484 #define LIVES_WIDGET_STATE_FOCUSED (GTK_STATE_INSENSITIVE+2)
485 #define LIVES_WIDGET_STATE_BACKDROP (GTK_STATE_INSENSITIVE+3)
486 #endif
487 
488 
489 typedef int LiVESResponseType;
490 #define LIVES_RESPONSE_NONE GTK_RESPONSE_NONE
491 #define LIVES_RESPONSE_OK GTK_RESPONSE_OK
492 #define LIVES_RESPONSE_CANCEL GTK_RESPONSE_CANCEL
493 #define LIVES_RESPONSE_ACCEPT GTK_RESPONSE_ACCEPT
494 #define LIVES_RESPONSE_YES GTK_RESPONSE_YES
495 #define LIVES_RESPONSE_NO GTK_RESPONSE_NO
496 
497 // positive values for custom responses
498 #define LIVES_RESPONSE_INVALID 0
499 #define LIVES_RESPONSE_RETRY 1
500 #define LIVES_RESPONSE_ABORT 2
501 #define LIVES_RESPONSE_RESET 3
502 #define LIVES_RESPONSE_SHOW_DETAILS 4
503 
504 
505 typedef GtkAttachOptions LiVESAttachOptions;
506 #define LIVES_EXPAND GTK_EXPAND
507 #define LIVES_SHRINK GTK_SHRINK
508 #define LIVES_FILL GTK_FILL
509 
510 
511 typedef GtkWindowType LiVESWindowType;
512 #define LIVES_WINDOW_TOPLEVEL GTK_WINDOW_TOPLEVEL
513 #define LIVES_WINDOW_POPUP GTK_WINDOW_POPUP
514 
515 
516 typedef GtkDialogFlags LiVESDialogFlags;
517 
518 typedef GtkMessageType LiVESMessageType;
519 #define LIVES_MESSAGE_INFO GTK_MESSAGE_INFO
520 #define LIVES_MESSAGE_WARNING GTK_MESSAGE_WARNING
521 #define LIVES_MESSAGE_QUESTION GTK_MESSAGE_QUESTION
522 #define LIVES_MESSAGE_ERROR GTK_MESSAGE_ERROR
523 #define LIVES_MESSAGE_OTHER GTK_MESSAGE_OTHER
524 
525 typedef GtkButtonsType LiVESButtonsType;
526 #define LIVES_BUTTONS_NONE GTK_BUTTONS_NONE
527 
528 
529 typedef GtkFileChooserAction LiVESFileChooserAction;
530 #define LIVES_FILE_CHOOSER_ACTION_OPEN GTK_FILE_CHOOSER_ACTION_OPEN
531 #define LIVES_FILE_CHOOSER_ACTION_SAVE GTK_FILE_CHOOSER_ACTION_SAVE
532 #define LIVES_FILE_CHOOSER_ACTION_SELECT_FOLDER GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER
533 #define LIVES_FILE_CHOOSER_ACTION_CREATE_FOLDER GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER
534 #define LIVES_FILE_CHOOSER_ACTION_SELECT_DEVICE ((GtkFileChooserAction)(GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER+1))
535 
536 
537 typedef GtkIconSize LiVESIconSize;
538 #define LIVES_ICON_SIZE_INVALID GTK_ICON_SIZE_INVALID
539 #define LIVES_ICON_SIZE_MENU GTK_ICON_SIZE_MENU
540 #define LIVES_ICON_SIZE_SMALL_TOOLBAR GTK_ICON_SIZE_SMALL_TOOLBAR
541 #define LIVES_ICON_SIZE_LARGE_TOOLBAR GTK_ICON_SIZE_LARGE_TOOLBAR
542 #define LIVES_ICON_SIZE_BUTTON GTK_ICON_SIZE_BUTTON
543 #define LIVES_ICON_SIZE_DND GTK_ICON_SIZE_DND
544 #define LIVES_ICON_SIZE_DIALOG GTK_ICON_SIZE_DIALOG
545 
546 
547 
548 // scrolledwindow policies
549 typedef GtkPolicyType LiVESPolicyType;
550 #define LIVES_POLICY_ALWAYS GTK_POLICY_ALWAYS
551 #define LIVES_POLICY_AUTOMATIC GTK_POLICY_AUTOMATIC
552 #define LIVES_POLICY_NEVER GTK_POLICY_NEVER
553 
554 
555 typedef GtkPositionType LiVESPositionType;
556 #define LIVES_POS_LEFT GTK_POS_LEFT
557 #define LIVES_POS_RIGHT GTK_POS_RIGHT
558 #define LIVES_POS_TOP GTK_POS_TOP
559 #define LIVES_POS_BOTTOM GTK_POS_BOTTOM
560 
561 
562 typedef GtkArrowType LiVESArrowType;
563 #define LIVES_ARROW_UP GTK_ARROW_UP
564 #define LIVES_ARROW_DOWN GTK_ARROW_DOWN
565 #define LIVES_ARROW_LEFT GTK_ARROW_LEFT
566 #define LIVES_ARROW_RIGHT GTK_ARROW_RIGHT
567 #define LIVES_ARROW_NONE GTK_ARROW_NONE
568 
569 
570 typedef GtkWrapMode LiVESWrapMode;
571 #define LIVES_WRAP_NONE GTK_WRAP_NONE
572 //#define LIVES_WRAP_CHAR GTK_WRAP_CHAR
573 #define LIVES_WRAP_WORD GTK_WRAP_WORD
574 //#define LIVES_WRAP_WORD_CHAR GTK_WRAP_WORD_CHAR
575 
576 typedef GtkReliefStyle LiVESReliefStyle;
577 #define LIVES_RELIEF_NORMAL GTK_RELIEF_NORMAL
578 #define LIVES_RELIEF_HALF GTK_RELIEF_HALF
579 #define LIVES_RELIEF_NONE GTK_RELIEF_NONE
580 
581 #define LIVES_ACCEL_VISIBLE GTK_ACCEL_VISIBLE
582 
583 typedef GtkToolbarStyle LiVESToolbarStyle;
584 #define LIVES_TOOLBAR_ICONS GTK_TOOLBAR_ICONS
585 #define LIVES_TOOLBAR_TEXT GTK_TOOLBAR_TEXT
586 
587 
588 typedef GtkSelectionMode LiVESSelectionMode;
589 #define LIVES_SELECTION_NONE GTK_SELECTION_NONE
590 #define LIVES_SELECTION_SINGLE GTK_SELECTION_SINGLE
591 //#define LIVES_SELECTION_BROWSE GTK_SELECTION_BROWSE
592 #define LIVES_SELECTION_MULTIPLE GTK_SELECTION_MULTIPLE
593 
594 typedef GtkButtonBoxStyle LiVESButtonBoxStyle;
595 #define LIVES_BUTTONBOX_DEFAULT_STYLE GTK_BUTTONBOX_DEFAULT_STYLE
596 #define LIVES_BUTTONBOX_SPREAD GTK_BUTTONBOX_SPREAD
597 #define LIVES_BUTTONBOX_EDGE GTK_BUTTONBOX_EDGE
598 #define LIVES_BUTTONBOX_START GTK_BUTTONBOX_START
599 #define LIVES_BUTTONBOX_END GTK_BUTTONBOX_END
600 #define LIVES_BUTTONBOX_CENTER GTK_BUTTONBOX_CENTER
601 
602 
603 typedef GdkEventMask LiVESEventMask;
604 #define LIVES_EXPOSURE_MASK GDK_EXPOSURE_MASK
605 #define LIVES_POINTER_MOTION_MASK GDK_POINTER_MOTION_MASK
606 #define LIVES_POINTER_MOTION_HINT_MASK GDK_POINTER_MOTION_HINT_MASK
607 #define LIVES_BUTTON_MOTION_MASK GDK_BUTTON_MOTION_MASK
608 #define LIVES_BUTTON1_MOTION_MASK GDK_BUTTON1_MOTION_MASK
609 #define LIVES_BUTTON2_MOTION_MASK GDK_BUTTON2_MOTION_MASK
610 #define LIVES_BUTTON3_MOTION_MASK GDK_BUTTON3_MOTION_MASK
611 #define LIVES_BUTTON_PRESS_MASK GDK_BUTTON_PRESS_MASK
612 #define LIVES_BUTTON_RELEASE_MASK GDK_BUTTON_RELEASE_MASK
613 #define LIVES_KEY_PRESS_MASK GDK_KEY_PRESS_MASK
614 #define LIVES_KEY_RELEASE_MASK GDK_KEY_RELEASE_MASK
615 #define LIVES_ENTER_NOTIFY_MASK GDK_ENTER_NOTIFY_MASK
616 #define LIVES_LEAVE_NOTIFY_MASK GDK_LEAVE_NOTIFY_MASK
617 #define LIVES_FOCUS_CHANGE_MASK GDK_FOCUS_CHANGE_MASK
618 #define LIVES_STRUCTURE_MASK GDK_STRUCTURE_MASK
619 #define LIVES_PROPERTY_CHANGE_MASK GDK_PROPERTY_CHANGE_MASK
620 #define LIVES_VISIBILITY_NOTIFY_MASK GDK_VISIBILITY_NOTIFY_MASK
621 #define LIVES_PROXIMITY_IN_MASK GDK_PROXIMITY_IN_MASK
622 #define LIVES_PROXIMITY_OUT_MASK GDK_PROXIMITY_OUT_MASK
623 #define LIVES_SUBSTRUCTURE_MASK GDK_SUBSTRUCTURE_MASK
624 #define LIVES_SCROLL_MASK GDK_SCROLL_MASK
625 
626 
627 #define LIVES_BUTTON_PRESS GDK_BUTTON_PRESS
628 #define LIVES_BUTTON_RELEASE GDK_BUTTON_RELEASE
629 #define LIVES_BUTTON2_PRESS GDK_2BUTTON_PRESS
630 
631 #if GTK_CHECK_VERSION(3,4,0)
632 #define LIVES_TOUCH_MASK GDK_TOUCH_MASK
633 #define LIVES_SMOOTH_SCROLL_MASK GDK_SMOOTH_SCROLL_MASK
634 #endif
635 
636 #define LIVES_ALL_EVENTS_MASK GDK_ALL_EVENTS_MASK
637 
638 
639 typedef GtkShadowType LiVESShadowType;
640 #define LIVES_SHADOW_NONE GTK_SHADOW_NONE
641 #define LIVES_SHADOW_IN GTK_SHADOW_IN
642 #define LIVES_SHADOW_OUT GTK_SHADOW_OUT
643 #define LIVES_SHADOW_ETCHED_IN GTK_SHADOW_ETCHED_IN
644 #define LIVES_SHADOW_ETCHED_OUT GTK_SHADOW_ETCHED_OUT
645 
646 typedef GtkWindowPosition LiVESWindowPosition;
647 #define LIVES_WIN_POS_CENTER_ALWAYS GTK_WIN_POS_CENTER_ALWAYS
648 
649 
650 #if GTK_CHECK_VERSION(3,0,0)
651 typedef GtkScale LiVESRuler;
652 typedef GtkBox LiVESVBox;
653 typedef GtkBox LiVESHBox;
654 #else
655 typedef GtkRuler LiVESRuler;
656 typedef GtkVBox LiVESVBox;
657 typedef GtkHBox LiVESHBox;
658 #endif
659 
660 typedef GtkEventBox LiVESEventBox;
661 
662 typedef GtkRange LiVESRange;
663 
664 typedef GtkAdjustment LiVESAdjustment;
665 
666 typedef GdkPixbuf LiVESPixbuf;
667 
668 typedef GdkWindow LiVESXWindow;
669 
670 typedef GdkCursor LiVESXCursor;
671 
672 typedef GdkModifierType LiVESXModifierType;
673 
674 typedef GtkAccelGroup LiVESAccelGroup;
675 typedef GtkAccelFlags LiVESAccelFlags;
676 
677 typedef GtkRequisition LiVESRequisition;
678 
679 typedef GtkPaned LiVESPaned;
680 
681 typedef GtkScale LiVESScale;
682 
683 typedef GdkPixbufDestroyNotify LiVESPixbufDestroyNotify;
684 
685 typedef GdkInterpType LiVESInterpType;
686 
687 #define LIVES_WIDGET(widget) GTK_WIDGET(widget)
688 #define LIVES_PIXBUF(widget) GDK_PIXBUF(widget)
689 #define LIVES_WINDOW(widget) GTK_WINDOW(widget)
690 #define LIVES_XWINDOW(widget) GDK_WINDOW(widget)
691 #define LIVES_BOX(widget) GTK_BOX(widget)
692 #define LIVES_EVENT_BOX(widget) GTK_EVENT_BOX(widget)
693 #define LIVES_ENTRY(widget) GTK_ENTRY(widget)
694 #define LIVES_FRAME(widget) GTK_FRAME(widget)
695 #define LIVES_CONTAINER(widget) GTK_CONTAINER(widget)
696 #define LIVES_BIN(widget) GTK_BIN(widget)
697 #define LIVES_ADJUSTMENT(widget) GTK_ADJUSTMENT(widget)
698 #define LIVES_DIALOG(widget) GTK_DIALOG(widget)
699 #define LIVES_SCALE(widget) GTK_SCALE(widget)
700 #define LIVES_PANED(widget) GTK_PANED(widget)
701 #define LIVES_COMBO(widget) GTK_COMBO_BOX(widget)
702 #define LIVES_COMBO_BOX(widget) GTK_COMBO_BOX(widget)
703 #define LIVES_BUTTON(widget) GTK_BUTTON(widget)
704 #define LIVES_BUTTON_BOX(widget) GTK_BUTTON_BOX(widget)
705 #define LIVES_LABEL(widget) GTK_LABEL(widget)
706 #define LIVES_ALIGNMENT(widget) GTK_ALIGNMENT(widget)
707 #define LIVES_FILES_CHOOSER(widget) GTK_FILE_CHOOSER(widget)
708 #define LIVES_RADIO_BUTTON(widget) GTK_RADIO_BUTTON(widget)
709 #define LIVES_SPIN_BUTTON(widget) GTK_SPIN_BUTTON(widget)
710 #define LIVES_COLOR_BUTTON(widget) GTK_COLOR_BUTTON(widget)
711 #define LIVES_TOOL_BUTTON(widget) GTK_TOOL_BUTTON(widget)
712 
713 #define LIVES_MENU(widget) GTK_MENU(widget)
714 #define LIVES_MENU_SHELL(widget) GTK_MENU_SHELL(widget)
715 #define LIVES_MENU_TOOL_BUTTON(widget) GTK_MENU_TOOL_BUTTON(widget)
716 #define LIVES_MENU_ITEM(widget) GTK_MENU_ITEM(widget)
717 #define LIVES_IMAGE(widget) GTK_IMAGE(widget)
718 #define LIVES_CHECK_MENU_ITEM(widget) GTK_CHECK_MENU_ITEM(widget)
719 #define LIVES_RADIO_MENU_ITEM(widget) GTK_RADIO_MENU_ITEM(widget)
720 #define LIVES_FILE_CHOOSER(widget) GTK_FILE_CHOOSER(widget)
721 #define LIVES_SCROLLED_WINDOW(widget) GTK_SCROLLED_WINDOW(widget)
722 #define LIVES_TOOLBAR(widget) GTK_TOOLBAR(widget)
723 #define LIVES_TOOL_ITEM(widget) GTK_TOOL_ITEM(widget)
724 
725 #define LIVES_NOTEBOOK(widget) GTK_NOTEBOOK(widget)
726 
727 #define LIVES_PROGRESS_BAR(widget) GTK_PROGRESS_BAR(widget)
728 
729 #define LIVES_EXPANDER(widget) GTK_EXPANDER(widget)
730 
731 #define LIVES_MISC(widget) GTK_MISC(widget)
732 
733 #if GTK_CHECK_VERSION(2,14,0)
734 #define LIVES_SCALE_BUTTON(widget) GTK_SCALE_BUTTON(widget)
735 #else
736 #define LIVES_SCALE_BUTTON(widget) GTK_RANGE(widget)
737 #endif
738 
739 #define LIVES_TOGGLE_BUTTON(widget) GTK_TOGGLE_BUTTON(widget)
740 #define LIVES_TEXT_VIEW(widget) GTK_TEXT_VIEW(widget)
741 #define LIVES_TEXT_BUFFER(widget) GTK_TEXT_BUFFER(widget)
742 
743 #define LIVES_TREE_VIEW(widget) GTK_TREE_VIEW(widget)
744 #define LIVES_TREE_MODEL(object) GTK_TREE_MODEL(object)
745 
746 #define LIVES_LIST_STORE(object) GTK_LIST_STORE(object)
747 
748 #define LIVES_ACCEL_GROUP(object) GTK_ACCEL_GROUP(object)
749 
750 
751 #if GTK_CHECK_VERSION(3,0,0)
752 #define LIVES_RULER(widget) GTK_SCALE(widget)
753 #define LIVES_ORIENTABLE(widget) GTK_ORIENTABLE(widget)
754 #define LIVES_VBOX(widget) GTK_BOX(widget)
755 #define LIVES_HBOX(widget) GTK_BOX(widget)
756 #else
757 #define LIVES_RULER(widget) GTK_RULER(widget)
758 #define LIVES_VBOX(widget) GTK_VBOX(widget)
759 #define LIVES_HBOX(widget) GTK_HBOX(widget)
760 #endif
761 
762 #if GTK_CHECK_VERSION(3,2,0)
763 #define LIVES_GRID(widget) GTK_GRID(widget)
764 #else
765 #define LIVES_GRID(widget) GTK_WIDGET(widget)
766 #endif
767 
768 #if GTK_CHECK_VERSION(3,10,0)
769 #define LIVES_IMAGE_MENU_ITEM(widget) GTK_MENU_ITEM(widget)
770 #else
771 #define LIVES_IMAGE_MENU_ITEM(widget) GTK_IMAGE_MENU_ITEM(widget)
772 #undef LIVES_HAS_IMAGE_MENU_ITEM
773 #define LIVES_HAS_IMAGE_MENU_ITEM 1
774 #endif
775 
776 #if LIVES_TABLE_IS_GRID
777 #define LIVES_TABLE(widget) GTK_GRID(widget)
778 #else
779 #define LIVES_TABLE(widget) GTK_TABLE(widget)
780 #endif
781 
782 #define LIVES_RANGE(widget) GTK_RANGE(widget)
783 
784 #define LIVES_EDITABLE(widget) GTK_EDITABLE(widget)
785 
786 
787 #define LIVES_XEVENT(event) GDK_EVENT(event)
788 
789 #define LIVES_IS_WIDGET_OBJECT(object) G_IS_OBJECT(object)
790 #define LIVES_IS_WIDGET(widget) GTK_IS_WIDGET(widget)
791 #define LIVES_IS_WINDOW(widget) GTK_IS_WINDOW(widget)
792 #define LIVES_IS_XWINDOW(widget) GDK_IS_WINDOW(widget)
793 #define LIVES_IS_PIXBUF(widget) GDK_IS_PIXBUF(widget)
794 #define LIVES_IS_CONTAINER(widget) GTK_IS_CONTAINER(widget)
795 
796 #if GTK_CHECK_VERSION(3,0,0)
797 #define LIVES_IS_HBOX(widget) (GTK_IS_BOX(widget)&&gtk_orientable_get_orientation(GTK_ORIENTABLE(widget))==GTK_ORIENTATION_HORIZONTAL)
798 #define LIVES_IS_VBOX(widget) (GTK_IS_BOX(widget)&&gtk_orientable_get_orientation(GTK_ORIENTABLE(widget))==GTK_ORIENTATION_HORIZONTAL)
799 #define LIVES_IS_SCROLLABLE(widget) GTK_IS_SCROLLABLE(widget)
800 #else
801 #define LIVES_IS_HBOX(widget) GTK_IS_HBOX(widget)
802 #define LIVES_IS_VBOX(widget) GTK_IS_VBOX(widget)
803 #endif
804 
805 #define LIVES_IS_COMBO(widget) GTK_IS_COMBO_BOX(widget)
806 #define LIVES_IS_LABEL(widget) GTK_IS_LABEL(widget)
807 #define LIVES_IS_BUTTON(widget) GTK_IS_BUTTON(widget)
808 #define LIVES_IS_SPIN_BUTTON(widget) GTK_IS_SPIN_BUTTON(widget)
809 #define LIVES_IS_TOGGLE_BUTTON(widget) GTK_IS_TOGGLE_BUTTON(widget)
810 #define LIVES_IS_IMAGE(widget) GTK_IS_IMAGE(widget)
811 #define LIVES_IS_ENTRY(widget) GTK_IS_ENTRY(widget)
812 #define LIVES_IS_RANGE(widget) GTK_IS_RANGE(widget)
813 #define LIVES_IS_PROGRESS_BAR(widget) GTK_IS_PROGRESS_BAR(widget)
814 #define LIVES_IS_TEXT_VIEW(widget) GTK_IS_TEXT_VIEW(widget)
815 #define LIVES_IS_MENU_ITEM(widget) GTK_IS_MENU_ITEM(widget)
816 #define LIVES_IS_FILE_CHOOSER(widget) GTK_IS_FILE_CHOOSER(widget)
817 
818 // (image resize) interpolation types
819 #define LIVES_INTERP_BEST GDK_INTERP_HYPER
820 #define LIVES_INTERP_NORMAL GDK_INTERP_BILINEAR
821 #define LIVES_INTERP_FAST GDK_INTERP_NEAREST
822 
823 
824 #if GTK_CHECK_VERSION(3,10,0)
825 #define LIVES_STOCK_YES "gtk-yes" // non-standard image ?
826 #define LIVES_STOCK_APPLY "gtk-apply" // non-standard image ?
827 #define LIVES_STOCK_CANCEL "gtk-cancel" // non-standard image ?
828 #define LIVES_STOCK_OK "gtk-ok" // non-standard image ?
829 #define LIVES_STOCK_UNDO "edit-undo"
830 #define LIVES_STOCK_REDO "edit-redo"
831 #define LIVES_STOCK_ADD "list-add"
832 #define LIVES_STOCK_REMOVE "list-remove"
833 #define LIVES_STOCK_NO "media-record"
834 #define LIVES_STOCK_QUIT "application-exit"
835 #define LIVES_STOCK_OPEN "document-open"
836 #define LIVES_STOCK_CLOSE "window-close"
837 #define LIVES_STOCK_CLEAR "edit-clear"
838 #define LIVES_STOCK_DELETE "edit-delete"
839 #define LIVES_STOCK_SAVE_AS "document-save-as"
840 #define LIVES_STOCK_SAVE "document-save"
841 #define LIVES_STOCK_REFRESH "view-refresh"
842 #define LIVES_STOCK_REVERT_TO_SAVED "document-revert"
843 #define LIVES_STOCK_GO_BACK "go-previous"
844 #define LIVES_STOCK_GO_FORWARD "go-next"
845 #define LIVES_STOCK_REFRESH "view-refresh"
846 #define LIVES_STOCK_MEDIA_PLAY "media-playback-start"
847 #define LIVES_STOCK_MEDIA_STOP "media-playback-stop"
848 #define LIVES_STOCK_MEDIA_REWIND "media-seek-backward"
849 #define LIVES_STOCK_MEDIA_RECORD "media-record"
850 #define LIVES_STOCK_MEDIA_PAUSE "media-pause"
851 #define LIVES_STOCK_PREFERENCES "preferences-system"
852 #define LIVES_STOCK_DIALOG_INFO "dialog-information"
853 #define LIVES_STOCK_MISSING_IMAGE "image-missing"
854 
855 char LIVES_STOCK_LABEL_CANCEL[32];
856 char LIVES_STOCK_LABEL_OK[32];
857 char LIVES_STOCK_LABEL_YES[32];
858 char LIVES_STOCK_LABEL_NO[32];
859 char LIVES_STOCK_LABEL_SAVE[32];
860 char LIVES_STOCK_LABEL_SAVE_AS[32];
861 char LIVES_STOCK_LABEL_OPEN[32];
862 char LIVES_STOCK_LABEL_QUIT[32];
863 char LIVES_STOCK_LABEL_APPLY[32];
864 char LIVES_STOCK_LABEL_CLOSE[32];
865 char LIVES_STOCK_LABEL_REVERT[32];
866 char LIVES_STOCK_LABEL_REFRESH[32];
867 char LIVES_STOCK_LABEL_DELETE[32];
868 char LIVES_STOCK_LABEL_GO_FORWARD[32];
869 
870 
871 #else
872 #define LIVES_STOCK_UNDO GTK_STOCK_UNDO
873 #define LIVES_STOCK_REDO GTK_STOCK_REDO
874 #define LIVES_STOCK_ADD GTK_STOCK_ADD
875 #define LIVES_STOCK_APPLY GTK_STOCK_APPLY
876 #define LIVES_STOCK_REMOVE GTK_STOCK_REMOVE
877 #define LIVES_STOCK_NO GTK_STOCK_NO
878 #define LIVES_STOCK_YES GTK_STOCK_YES
879 #define LIVES_STOCK_QUIT GTK_STOCK_QUIT
880 #define LIVES_STOCK_OPEN GTK_STOCK_OPEN
881 #define LIVES_STOCK_CLOSE GTK_STOCK_CLOSE
882 #define LIVES_STOCK_CANCEL GTK_STOCK_CANCEL
883 #define LIVES_STOCK_OK GTK_STOCK_OK
884 #define LIVES_STOCK_CLEAR GTK_STOCK_CLEAR
885 #define LIVES_STOCK_DELETE GTK_STOCK_DELETE
886 #define LIVES_STOCK_SAVE_AS GTK_STOCK_SAVE_AS
887 #define LIVES_STOCK_SAVE GTK_STOCK_SAVE
888 #define LIVES_STOCK_REFRESH GTK_STOCK_REFRESH
889 #define LIVES_STOCK_REVERT_TO_SAVED GTK_STOCK_REVERT_TO_SAVED
890 #define LIVES_STOCK_GO_BACK GTK_STOCK_GO_BACK
891 #define LIVES_STOCK_GO_FORWARD GTK_STOCK_GO_FORWARD
892 #define LIVES_STOCK_REFRESH GTK_STOCK_REFRESH
893 #define LIVES_STOCK_PREFERENCES GTK_STOCK_PREFERENCES
894 #define LIVES_STOCK_DIALOG_INFO GTK_STOCK_DIALOG_INFO
895 #define LIVES_STOCK_MISSING_IMAGE GTK_STOCK_MISSING_IMAGE
896 
897 #define LIVES_STOCK_LABEL_CANCEL GTK_STOCK_CANCEL
898 #define LIVES_STOCK_LABEL_OK GTK_STOCK_OK
899 #define LIVES_STOCK_LABEL_OPEN GTK_STOCK_OPEN
900 #define LIVES_STOCK_LABEL_SAVE GTK_STOCK_SAVE
901 #define LIVES_STOCK_LABEL_QUIT GTK_STOCK_QUIT
902 
903 #define LIVES_STOCK_MEDIA_PAUSE GTK_STOCK_MEDIA_PAUSE
904 #define LIVES_STOCK_MEDIA_PLAY GTK_STOCK_MEDIA_PLAY
905 #define LIVES_STOCK_MEDIA_STOP GTK_STOCK_MEDIA_STOP
906 #define LIVES_STOCK_MEDIA_REWIND GTK_STOCK_MEDIA_REWIND
907 #define LIVES_STOCK_MEDIA_RECORD GTK_STOCK_MEDIA_RECORD
908 
909 #endif
910 
911 
912 #define LIVES_CONTROL_MASK GDK_CONTROL_MASK
913 #define LIVES_ALT_MASK GDK_MOD1_MASK
914 #define LIVES_SHIFT_MASK GDK_SHIFT_MASK
915 #define LIVES_LOCK_MASK GDK_LOCK_MASK
916 
917 #ifdef GDK_KEY_a
918 #define LIVES_KEY_Left GDK_KEY_Left
919 #define LIVES_KEY_Right GDK_KEY_Right
920 #define LIVES_KEY_Up GDK_KEY_Up
921 #define LIVES_KEY_Down GDK_KEY_Down
922 
923 #define LIVES_KEY_BackSpace GDK_KEY_BackSpace
924 #define LIVES_KEY_Return GDK_KEY_Return
925 #define LIVES_KEY_Tab GDK_KEY_Tab
926 #define LIVES_KEY_Home GDK_KEY_Home
927 #define LIVES_KEY_End GDK_KEY_End
928 #define LIVES_KEY_Slash GDK_KEY_slash
929 #define LIVES_KEY_Space GDK_KEY_space
930 #define LIVES_KEY_Plus GDK_KEY_plus
931 #define LIVES_KEY_Minus GDK_KEY_minus
932 #define LIVES_KEY_Equal GDK_KEY_equal
933 
934 #define LIVES_KEY_1 GDK_KEY_1
935 #define LIVES_KEY_2 GDK_KEY_2
936 #define LIVES_KEY_3 GDK_KEY_3
937 #define LIVES_KEY_4 GDK_KEY_4
938 #define LIVES_KEY_5 GDK_KEY_5
939 #define LIVES_KEY_6 GDK_KEY_6
940 #define LIVES_KEY_7 GDK_KEY_7
941 #define LIVES_KEY_8 GDK_KEY_8
942 #define LIVES_KEY_9 GDK_KEY_9
943 #define LIVES_KEY_0 GDK_KEY_0
944 
945 #define LIVES_KEY_a GDK_KEY_a
946 #define LIVES_KEY_b GDK_KEY_b
947 #define LIVES_KEY_c GDK_KEY_c
948 #define LIVES_KEY_d GDK_KEY_d
949 #define LIVES_KEY_e GDK_KEY_e
950 #define LIVES_KEY_f GDK_KEY_f
951 #define LIVES_KEY_g GDK_KEY_g
952 #define LIVES_KEY_h GDK_KEY_h
953 #define LIVES_KEY_i GDK_KEY_i
954 #define LIVES_KEY_j GDK_KEY_j
955 #define LIVES_KEY_k GDK_KEY_k
956 #define LIVES_KEY_l GDK_KEY_l
957 #define LIVES_KEY_m GDK_KEY_m
958 #define LIVES_KEY_n GDK_KEY_n
959 #define LIVES_KEY_o GDK_KEY_o
960 #define LIVES_KEY_p GDK_KEY_p
961 #define LIVES_KEY_q GDK_KEY_q
962 #define LIVES_KEY_r GDK_KEY_r
963 #define LIVES_KEY_s GDK_KEY_s
964 #define LIVES_KEY_t GDK_KEY_t
965 #define LIVES_KEY_u GDK_KEY_u
966 #define LIVES_KEY_v GDK_KEY_v
967 #define LIVES_KEY_w GDK_KEY_w
968 #define LIVES_KEY_x GDK_KEY_x
969 #define LIVES_KEY_y GDK_KEY_y
970 #define LIVES_KEY_z GDK_KEY_z
971 
972 #define LIVES_KEY_F1 GDK_KEY_F1
973 #define LIVES_KEY_F2 GDK_KEY_F2
974 #define LIVES_KEY_F3 GDK_KEY_F3
975 #define LIVES_KEY_F4 GDK_KEY_F4
976 #define LIVES_KEY_F5 GDK_KEY_F5
977 #define LIVES_KEY_F6 GDK_KEY_F6
978 #define LIVES_KEY_F7 GDK_KEY_F7
979 #define LIVES_KEY_F8 GDK_KEY_F8
980 #define LIVES_KEY_F9 GDK_KEY_F9
981 #define LIVES_KEY_F10 GDK_KEY_F10
982 #define LIVES_KEY_F11 GDK_KEY_F11
983 #define LIVES_KEY_F12 GDK_KEY_F12
984 
985 #define LIVES_KEY_Page_Up GDK_KEY_Page_Up
986 #define LIVES_KEY_Page_Down GDK_KEY_Page_Down
987 
988 #define LIVES_KEY_Escape GDK_KEY_Escape
989 
990 #else
991 #define LIVES_KEY_Left GDK_Left
992 #define LIVES_KEY_Right GDK_Right
993 #define LIVES_KEY_Up GDK_Up
994 #define LIVES_KEY_Down GDK_Down
995 
996 #define LIVES_KEY_BackSpace GDK_BackSpace
997 #define LIVES_KEY_Return GDK_Return
998 #define LIVES_KEY_Tab GDK_Tab
999 #define LIVES_KEY_Home GDK_Home
1000 #define LIVES_KEY_End GDK_End
1001 #define LIVES_KEY_Slash GDK_slash
1002 #define LIVES_KEY_Space GDK_space
1003 #define LIVES_KEY_Plus GDK_plus
1004 #define LIVES_KEY_Minus GDK_minus
1005 #define LIVES_KEY_Equal GDK_equal
1006 
1007 #define LIVES_KEY_1 GDK_1
1008 #define LIVES_KEY_2 GDK_2
1009 #define LIVES_KEY_3 GDK_3
1010 #define LIVES_KEY_4 GDK_4
1011 #define LIVES_KEY_5 GDK_5
1012 #define LIVES_KEY_6 GDK_6
1013 #define LIVES_KEY_7 GDK_7
1014 #define LIVES_KEY_8 GDK_8
1015 #define LIVES_KEY_9 GDK_9
1016 #define LIVES_KEY_0 GDK_0
1017 
1018 #define LIVES_KEY_a GDK_a
1019 #define LIVES_KEY_b GDK_b
1020 #define LIVES_KEY_c GDK_c
1021 #define LIVES_KEY_d GDK_d
1022 #define LIVES_KEY_e GDK_e
1023 #define LIVES_KEY_f GDK_f
1024 #define LIVES_KEY_g GDK_g
1025 #define LIVES_KEY_h GDK_h
1026 #define LIVES_KEY_i GDK_i
1027 #define LIVES_KEY_j GDK_j
1028 #define LIVES_KEY_k GDK_k
1029 #define LIVES_KEY_l GDK_l
1030 #define LIVES_KEY_m GDK_m
1031 #define LIVES_KEY_n GDK_n
1032 #define LIVES_KEY_o GDK_o
1033 #define LIVES_KEY_p GDK_p
1034 #define LIVES_KEY_q GDK_q
1035 #define LIVES_KEY_r GDK_r
1036 #define LIVES_KEY_s GDK_s
1037 #define LIVES_KEY_t GDK_t
1038 #define LIVES_KEY_u GDK_u
1039 #define LIVES_KEY_v GDK_v
1040 #define LIVES_KEY_w GDK_w
1041 #define LIVES_KEY_x GDK_x
1042 #define LIVES_KEY_y GDK_y
1043 #define LIVES_KEY_z GDK_z
1044 
1045 #define LIVES_KEY_F1 GDK_F1
1046 #define LIVES_KEY_F2 GDK_F2
1047 #define LIVES_KEY_F3 GDK_F3
1048 #define LIVES_KEY_F4 GDK_F4
1049 #define LIVES_KEY_F5 GDK_F5
1050 #define LIVES_KEY_F6 GDK_F6
1051 #define LIVES_KEY_F7 GDK_F7
1052 #define LIVES_KEY_F8 GDK_F8
1053 #define LIVES_KEY_F9 GDK_F9
1054 #define LIVES_KEY_F10 GDK_F10
1055 #define LIVES_KEY_F11 GDK_F11
1056 #define LIVES_KEY_F12 GDK_F12
1057 
1058 #define LIVES_KEY_Page_Up GDK_Page_Up
1059 #define LIVES_KEY_Page_Down GDK_Page_Down
1060 
1061 #define LIVES_KEY_Escape GDK_Escape
1062 
1063 #endif
1064 
1065 #define LIVES_INT_TO_POINTER GINT_TO_POINTER
1066 #define LIVES_UINT_TO_POINTER GUINT_TO_POINTER
1067 #define LIVES_POINTER_TO_INT GPOINTER_TO_INT
1068 
1069 // pango stuff
1070 typedef PangoLayout LingoLayout;
1071 #define lingo_layout_set_alignment(a,b) pango_layout_set_alignment(a,b)
1072 
1073 #define LINGO_ALIGN_LEFT PANGO_ALIGN_LEFT
1074 #define LINGO_ALIGN_RIGHT PANGO_ALIGN_RIGHT
1075 #define LINGO_ALIGN_CENTER PANGO_ALIGN_CENTER
1076 
1077 #define lingo_layout_set_text(a,b,c) pango_layout_set_text(a,b,c)
1078 #define lingo_painter_show_layout(a,b) pango_cairo_show_layout(a,b)
1079 
1080 #define lingo_layout_get_size(a,b,c,d,e) pango_layout_get_size(a,b,c)
1081 
1082 #define LINGO_SCALE PANGO_SCALE
1083 
1084 #endif
1085 
1086 
1087 #endif
int boolean
Definition: videoplugin.h:50
LIVES_INLINE boolean lives_painter_surface_destroy(lives_painter_surface_t *surf)
Definition: widget-helper.c:150