Fix fallback gtk_widget_get_allocation definitions
This commit is contained in:
parent
1261405a0f
commit
1f9dbe9f25
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@
|
|||
#endif
|
||||
#if !GTK_CHECK_VERSION (2, 18, 0)
|
||||
#define gtk_widget_set_window(wdgt, wndw) wdgt->window = wndw
|
||||
#define gtk_widget_get_allocation (wdgt, alloc) *alloc = wdgt->allocation
|
||||
#define gtk_widget_get_allocation(wdgt, alloc) *alloc = wdgt->allocation
|
||||
#define gtk_widget_is_drawable GTK_WIDGET_DRAWABLE
|
||||
#define gtk_widget_get_drawable GTK_WIDGET_VISIBLE
|
||||
#endif
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <math.h>
|
||||
|
||||
#if !GTK_CHECK_VERSION (2, 18, 0)
|
||||
#define gtk_widget_get_allocation (wdgt, alloc) *alloc = wdgt->allocation
|
||||
#define gtk_widget_get_allocation(wdgt, alloc) *alloc = wdgt->allocation
|
||||
#define gtk_widget_set_has_window(wdgt, wnd) \
|
||||
if (wnd) GTK_WIDGET_UNSET_FLAGS (wdgt, GTK_NO_WINDOW); \
|
||||
else GTK_WIDGET_SET_FLAGS (wdgt, GTK_NO_WINDOW)
|
||||
|
|
Loading…
Reference in a new issue