1 #if !GTK_CHECK_VERSION(2, 14, 0)
2 # define gtk_dialog_get_content_area(d) ((d)->vbox)
3 # define gtk_widget_get_window(w) ((w)->window)
4 # define gtk_selection_data_get_data(s) ((s)->data)
5 #endif
6 #if !GTK_CHECK_VERSION(2, 18, 0)
7 # define gtk_widget_get_allocation(w, a) (*(a) = (w)->allocation)
8 # define gtk_widget_get_visible(w) GTK_WIDGET_VISIBLE(w)
9 # define gtk_widget_set_can_default(w, v) g_object_set((w), "can-default", v, NULL)
10 # define gtk_widget_set_can_focus(w, v) g_object_set((w), "can-focus", v, NULL)
11 #endif
12