• Main Page
  • Related Pages
  • Classes
  • Files
  • File List
  • File Members

compatibility.h

Go to the documentation of this file.
00001 #if ! GLIB_CHECK_VERSION (2, 14, 0)
00002 #define G_QUEUE_INIT {NULL, NULL, 0}
00003 #define g_queue_clear(q) do {g_list_free ((q)->head); (q)->head = NULL; (q)->tail = NULL; (q)->length = 0;} while (0)
00004 #define g_timeout_add_seconds(s, f, d) g_timeout_add (1000 * (s), (f), (d))
00005 #endif
00006 
00007 #ifdef GTK_CHECK_VERSION /* GTK headers included? */
00008 
00009 #if ! GTK_CHECK_VERSION (2, 10, 0)
00010 #define GDK_WINDOW_TYPE_HINT_TOOLTIP GDK_WINDOW_TYPE_HINT_MENU
00011 #endif
00012 
00013 #if ! GTK_CHECK_VERSION (2, 12, 0)
00014 #define gtk_widget_set_tooltip_text(...)
00015 #endif
00016 
00017 #if ! GTK_CHECK_VERSION (2, 14, 0)
00018 #define gtk_widget_get_window(w) ((w)->window)
00019 #endif
00020 
00021 #if ! GTK_CHECK_VERSION (2, 18, 0)
00022 #define gtk_widget_set_can_default(w, t) do {if (t) GTK_WIDGET_SET_FLAGS ((w), GTK_CAN_DEFAULT); else GTK_WIDGET_UNSET_FLAGS ((w), GTK_CAN_DEFAULT);} while (0)
00023 #define gtk_widget_set_can_focus(w, t) do {if (t) GTK_WIDGET_SET_FLAGS ((w), GTK_CAN_FOCUS); else GTK_WIDGET_UNSET_FLAGS ((w), GTK_CAN_FOCUS);} while (0)
00024 #endif
00025 
00026 #endif

Generated on Wed Apr 6 2011 for Audacious by  doxygen 1.7.1