[gnome-applets/wip/segeiger/windowpicker: 13/18] windowpicker: declare variables at top



commit 9c895d9da51a24e2db31ae7d678e1a433bbfc15a
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]