[Xfce4-commits] <xfce4-panel:devel> Fix floating point error in tasklist.
Nick Schermer
noreply at xfce.org
Mon Feb 22 12:38:02 CET 2010
Updating branch refs/heads/devel
to d5958ecfdc8603e5982e41485aa63594b19f389c (commit)
from 228a5a667468fa6a053d6e7bbd171acd7f06a2fb (commit)
commit d5958ecfdc8603e5982e41485aa63594b19f389c
Author: Nick Schermer <nick at xfce.org>
Date: Mon Feb 22 12:35:39 2010 +0100
Fix floating point error in tasklist.
plugins/tasklist/tasklist-widget.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 2a1d927..16a3d95 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -811,6 +811,9 @@ xfce_tasklist_size_allocate (GtkWidget *widget,
/* TODO if we compare the allocation with the requisition we can
* do a fast path to the child allocation, i think */
+ /* useless but hides compiler warning */
+ w = h = x = y = rows = cols = 0;
+
xfce_tasklist_size_layout (tasklist, &area, &rows, &cols, &arrow_visible);
/* allocate the arrow button for the overflow menu */
@@ -843,9 +846,6 @@ xfce_tasklist_size_allocate (GtkWidget *widget,
area_x = area.x;
area_width = area.width;
- /* useless but hides compiler warning */
- w = h = x = y = rows = cols = 0;
-
/* allocate all the children */
for (li = tasklist->windows, i = 0; li != NULL; li = li->next)
{
More information about the Xfce4-commits
mailing list