[gtk+] GtkWidget: Don't mix code and declarations



commit 20a6ee30b7dd3f471b086d206c8cf51ff3341b48
Author: Timm Bäder <mail baedert org>
Date:   Fri Dec 18 15:54:46 2015 +0100

    GtkWidget: Don't mix code and declarations

 gtk/gtkwidget.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index f5893d7..ff7dc0d 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -12586,10 +12586,12 @@ list_devices (GtkWidget        *widget,
               GdkDeviceType     device_type,
               GList           **result)
 {
+  GList *devices;
+  GList *l;
+
   G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
-  GList *devices = gdk_device_manager_list_devices (device_manager, device_type);
+  devices = gdk_device_manager_list_devices (device_manager, device_type);
   G_GNUC_END_IGNORE_DEPRECATIONS;
-  GList *l;
 
   for (l = devices; l; l = l->next)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]