[gnome-applets/wip/segeiger/windowpicker: 15/18] windowpicker: declare variables at top
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets/wip/segeiger/windowpicker: 15/18] windowpicker: declare variables at top
- Date: Sun, 13 Oct 2019 13:00:51 +0000 (UTC)
commit 37409a83323ad653f44bbc14ab1f193f55791d5c
Author: Sebastian Geiger <sbastig gmx net>
Date: Sat Oct 12 15:30:50 2019 +0200
windowpicker: declare variables at top
windowpicker/src/task-item.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/windowpicker/src/task-item.c b/windowpicker/src/task-item.c
index 2c7e77949..d244dda24 100644
--- a/windowpicker/src/task-item.c
+++ b/windowpicker/src/task-item.c
@@ -828,10 +828,13 @@ static void task_item_init (TaskItem *item) {
}
GtkWidget *task_item_new (WpApplet* windowPickerApplet, WnckWindow *window) {
- g_return_val_if_fail (WNCK_IS_WINDOW (window), NULL);
TaskItem *taskItem;
WnckScreen *screen;
- GtkWidget *item = g_object_new (
+ GtkWidget *item;
+
+ g_return_val_if_fail (WNCK_IS_WINDOW (window), NULL);
+
+ item = g_object_new (
TASK_TYPE_ITEM,
"has-tooltip", TRUE,
"visible-window", FALSE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]