From 20a6ee30b7dd3f471b086d206c8cf51ff3341b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 18 Dec 2015 15:54:46 +0100 Subject: [PATCH] GtkWidget: Don't mix code and declarations --- gtk/gtkwidget.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index f5893d715a..ff7dc0d59f 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -12586,11 +12586,13 @@ list_devices (GtkWidget *widget, GdkDeviceType device_type, GList **result) { - G_GNUC_BEGIN_IGNORE_DEPRECATIONS; - GList *devices = gdk_device_manager_list_devices (device_manager, device_type); - G_GNUC_END_IGNORE_DEPRECATIONS; + GList *devices; GList *l; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; + devices = gdk_device_manager_list_devices (device_manager, device_type); + G_GNUC_END_IGNORE_DEPRECATIONS; + for (l = devices; l; l = l->next) { GdkDevice *device = l->data;