Commit c2303c71a09ef11964dd4d26eee5f868938253c8
1 parent
dcb8845e
Exists in
master
and in
1 other branch
Correcoes para compilacao no mingw64
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
accessible.c
... | ... | @@ -727,8 +727,13 @@ static void v3270_accessible_get_size(AtkComponent *component,gint *width, gint |
727 | 727 | if (widget == NULL) |
728 | 728 | return; |
729 | 729 | |
730 | +#if GTK_CHECK_VERSION(3,0,0) | |
730 | 731 | *width = gtk_widget_get_allocated_width (widget); |
731 | 732 | *height = gtk_widget_get_allocated_height (widget); |
733 | +#else | |
734 | + *width = widget->allocation.width; | |
735 | + *height = widget->allocation.height; | |
736 | +#endif // GTK(3,0,0) | |
732 | 737 | } |
733 | 738 | |
734 | 739 | static gboolean v3270_accessible_grab_focus(AtkComponent *component) | ... | ... |