[libwnck] Patch to save little power
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck] Patch to save little power
- Date: Tue, 5 Feb 2013 18:28:19 +0000 (UTC)
commit 25656d51db50a06dbcfa5d8477aecc2a117e4f1d
Author: B.Prathibha <bosslinux cdac in>
Date: Sun Jan 27 10:28:57 2013 +0530
Patch to save little power
Use g_timeout_add_seconds instead of g_timeout_add.
https://bugzilla.gnome.org/show_bug.cgi?id=692616
libwnck/pager.c | 2 +-
libwnck/private.h | 2 +-
libwnck/tasklist.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libwnck/pager.c b/libwnck/pager.c
index d7c1f3e..91278e9 100644
--- a/libwnck/pager.c
+++ b/libwnck/pager.c
@@ -1700,7 +1700,7 @@ wnck_pager_drag_motion (GtkWidget *widget,
if (pager->priv->dnd_activate == 0 && pager->priv->prelight > -1)
{
- pager->priv->dnd_activate = g_timeout_add (WNCK_ACTIVATE_TIMEOUT,
+ pager->priv->dnd_activate = g_timeout_add_seconds (WNCK_ACTIVATE_TIMEOUT,
wnck_pager_drag_motion_timeout,
pager);
pager->priv->dnd_time = time;
diff --git a/libwnck/private.h b/libwnck/private.h
index dda26b9..ae582f4 100644
--- a/libwnck/private.h
+++ b/libwnck/private.h
@@ -38,7 +38,7 @@
G_BEGIN_DECLS
-#define WNCK_ACTIVATE_TIMEOUT 1000
+#define WNCK_ACTIVATE_TIMEOUT 1
WnckClientType _wnck_get_client_type (void);
diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c
index 0e7a43d..3867183 100644
--- a/libwnck/tasklist.c
+++ b/libwnck/tasklist.c
@@ -3428,7 +3428,7 @@ wnck_task_drag_motion (GtkWidget *widget,
task->dnd_timestamp = time;
if (task->button_activate == 0 && task->type == WNCK_TASK_WINDOW)
- task->button_activate = g_timeout_add (WNCK_ACTIVATE_TIMEOUT,
+ task->button_activate = g_timeout_add_seconds (WNCK_ACTIVATE_TIMEOUT,
wnck_task_motion_timeout,
task);
gdk_drag_status (context, 0, time);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]