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:
Chun-wei Fan 2016-10-28 15:49:29 +08:00
parent be1af1e01b
commit 45cf4c7d57

View File

@ -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,