[gnome-applets/wip/segeiger/windowpicker: 13/17] windowpicker: declare variables at top
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets/wip/segeiger/windowpicker: 13/17] windowpicker: declare variables at top
- Date: Sun, 13 Oct 2019 12:55:40 +0000 (UTC)
commit f26ea10111666af531f35d633827a8d532b871ec
Author: Sebastian Geiger <sbastig gmx net>
Date: Sat Oct 12 15:30:35 2019 +0200
windowpicker: declare variables at top
windowpicker/src/task-item.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/windowpicker/src/task-item.c b/windowpicker/src/task-item.c
index 397c6dabf..2c7e77949 100644
--- a/windowpicker/src/task-item.c
+++ b/windowpicker/src/task-item.c
@@ -738,11 +738,12 @@ static void on_drag_received_data (
gint active;
switch (target_type) {
case TARGET_WIDGET_DRAGGED: {
+ GtkWidget *taskItem;
GtkWidget *taskList = wp_applet_get_tasks(item->windowPickerApplet);
gpointer *data = (gpointer *) gtk_selection_data_get_data(selection_data);
g_assert(GTK_IS_WIDGET(*data));
- GtkWidget *taskItem = GTK_WIDGET(*data);
+ taskItem = GTK_WIDGET(*data);
g_assert(TASK_IS_ITEM(taskItem));
if(taskItem == widget) break; //source and target are identical
gint target_position = grid_get_pos(wp_applet_get_tasks(item->windowPickerApplet), widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]