[gnome-applets/wip/segeiger/windowpicker: 12/17] windowpicker: declare variables at top



commit 243e4410de3c1ea94e06c5a885f7a7ebe1e8bfd5
Author: Sebastian Geiger <sbastig gmx net>
Date:   Sat Oct 12 15:29:37 2019 +0200

    windowpicker: declare variables at top

 windowpicker/src/task-list.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/windowpicker/src/task-list.c b/windowpicker/src/task-list.c
index b4dda3bd5..974187369 100644
--- a/windowpicker/src/task-list.c
+++ b/windowpicker/src/task-list.c
@@ -369,13 +369,13 @@ static void task_list_init (TaskList *list) {
 GtkWidget *task_list_new (WpApplet *windowPickerApplet) {
 
     GtkOrientation orientation;
+    TaskList* taskList;
 
     orientation = get_applet_orientation (windowPickerApplet);
 
-    TaskList* taskList = g_object_new (TASK_TYPE_LIST,
-                                       "orientation", orientation,
-                                       NULL
-    );
+    taskList = g_object_new (TASK_TYPE_LIST,
+                             "orientation", orientation,
+                             NULL);
 
     task_lists = g_slist_append (task_lists, taskList);
 


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