From: Quentin Glidic sardemff7+git@sardemff7.net
Signed-off-by: Quentin Glidic sardemff7+git@sardemff7.net --- src/gtkcompat.h | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/src/gtkcompat.h b/src/gtkcompat.h index ca1c187..7e0276c 100644 --- a/src/gtkcompat.h +++ b/src/gtkcompat.h @@ -92,6 +92,12 @@ G_BEGIN_DECLS compat_widget_set_flag((widget), GTK_NO_WINDOW, !(has_window)) # define gtk_widget_set_can_focus(widget, can_focus) \ compat_widget_set_flag((widget), GTK_CAN_FOCUS, (can_focus)) +# define gtk_widget_set_can_default(widget, can_default) \ + compat_widget_set_flag((widget), GTK_CAN_DEFAULT, (can_default)) +# define gtk_widget_get_allocation(widget, alloc) \ + do { \ + (alloc) = (((GtkWidget *) (widget))->allocation + } while (0) #endif #if ! GTK_CHECK_VERSION(2, 20, 0) # define gtk_widget_get_mapped(widget) GTK_WIDGET_MAPPED(widget)