forked from AuroraMiddleware/gtk
gtk/gtkmenu.c: Avoid compound literals
We only start requiring compound literals from GTK+-3.90, so fix this so that pre-C99 compilers can build GTK+-3.22 properly.
This commit is contained in:
parent
be1af1e01b
commit
45cf4c7d57
@ -5202,7 +5202,10 @@ gtk_menu_position (GtkMenu *menu,
|
||||
|
||||
if (grab_device && attach_widget)
|
||||
{
|
||||
rect = (GdkRectangle) { 0, 0, 1, 1 };
|
||||
rect.x = 0;
|
||||
rect.y = 0;
|
||||
rect.width = 1;
|
||||
rect.height = 1;
|
||||
|
||||
rect_window = gtk_widget_get_window (attach_widget);
|
||||
gdk_window_get_device_position (rect_window, grab_device,
|
||||
|
Loading…
Reference in New Issue
Block a user