[libwnck] Pager & TAsklist: indentation fixes
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck] Pager & TAsklist: indentation fixes
- Date: Tue, 5 Feb 2013 18:28:24 +0000 (UTC)
commit 65ecb5b6a905374671eb06971ea8fb8084834bf8
Author: Marco Trevisan (TreviÃo) <mail 3v1n0 net>
Date: Tue Feb 5 19:27:19 2013 +0100
Pager & TAsklist: indentation fixes
libwnck/pager.c | 31 +++++++++++++++----------------
libwnck/tasklist.c | 20 +++++++++++---------
2 files changed, 26 insertions(+), 25 deletions(-)
---
diff --git a/libwnck/pager.c b/libwnck/pager.c
index 91278e9..81add41 100644
--- a/libwnck/pager.c
+++ b/libwnck/pager.c
@@ -1679,10 +1679,9 @@ wnck_pager_drag_motion (GtkWidget *widget,
if (gtk_drag_dest_find_target (widget, context, NULL))
{
#if GTK_CHECK_VERSION(2,21,0)
- gdk_drag_status (context,
- gdk_drag_context_get_suggested_action (context), time);
+ gdk_drag_status (context, gdk_drag_context_get_suggested_action (context), time);
#else
- gdk_drag_status (context, context->suggested_action, time);
+ gdk_drag_status (context, context->suggested_action, time);
#endif
}
else
@@ -1690,21 +1689,21 @@ wnck_pager_drag_motion (GtkWidget *widget,
gdk_drag_status (context, 0, time);
if (pager->priv->prelight != previous_workspace &&
- pager->priv->dnd_activate != 0)
- {
- /* remove timeout, the window we hover over changed */
- g_source_remove (pager->priv->dnd_activate);
- pager->priv->dnd_activate = 0;
- pager->priv->dnd_time = 0;
- }
+ pager->priv->dnd_activate != 0)
+ {
+ /* remove timeout, the window we hover over changed */
+ g_source_remove (pager->priv->dnd_activate);
+ pager->priv->dnd_activate = 0;
+ pager->priv->dnd_time = 0;
+ }
if (pager->priv->dnd_activate == 0 && pager->priv->prelight > -1)
- {
- pager->priv->dnd_activate = g_timeout_add_seconds (WNCK_ACTIVATE_TIMEOUT,
- wnck_pager_drag_motion_timeout,
- pager);
- pager->priv->dnd_time = time;
- }
+ {
+ pager->priv->dnd_activate = g_timeout_add_seconds (WNCK_ACTIVATE_TIMEOUT,
+ wnck_pager_drag_motion_timeout,
+ pager);
+ pager->priv->dnd_time = time;
+ }
}
return (pager->priv->prelight != -1);
diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c
index 3867183..b79924d 100644
--- a/libwnck/tasklist.c
+++ b/libwnck/tasklist.c
@@ -3415,23 +3415,25 @@ wnck_task_drag_motion (GtkWidget *widget,
{
if (gtk_drag_dest_find_target (widget, context, NULL))
{
- gtk_drag_highlight (widget);
+ gtk_drag_highlight (widget);
#if GTK_CHECK_VERSION(2,21,0)
- gdk_drag_status (context,
- gdk_drag_context_get_suggested_action (context), time);
+ gdk_drag_status (context, gdk_drag_context_get_suggested_action (context), time);
#else
- gdk_drag_status (context, context->suggested_action, time);
+ gdk_drag_status (context, context->suggested_action, time);
#endif
}
else
{
- task->dnd_timestamp = time;
+ task->dnd_timestamp = time;
- if (task->button_activate == 0 && task->type == WNCK_TASK_WINDOW)
+ if (task->button_activate == 0 && task->type == WNCK_TASK_WINDOW)
+ {
task->button_activate = g_timeout_add_seconds (WNCK_ACTIVATE_TIMEOUT,
- wnck_task_motion_timeout,
- task);
- gdk_drag_status (context, 0, time);
+ wnck_task_motion_timeout,
+ task);
+ }
+
+ gdk_drag_status (context, 0, time);
}
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]