[gtk+/gtk-3-22] gtk/gtkmenu.c: Avoid compound literals
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] gtk/gtkmenu.c: Avoid compound literals
- Date: Fri, 28 Oct 2016 07:51:40 +0000 (UTC)
commit 45cf4c7d570a2620a6ee5b829adbd39cb66fa951
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Oct 28 15:49:29 2016 +0800
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.
gtk/gtkmenu.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index e77817f..663454a 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]