[Xfce4-commits] <xfce4-panel:master> Tasklist: Reverting "ceil" to "floor" (as in 4.8).

Nick Schermer noreply at xfce.org
Fri Mar 30 21:32:03 CEST 2012


Updating branch refs/heads/master
         to 8c9397b0a3638d4f7dd3d0eb858faca240c5777e (commit)
       from e733f80b11c61199f7c7ae63d83987706ec734f4 (commit)

commit 8c9397b0a3638d4f7dd3d0eb858faca240c5777e
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Tue Mar 6 02:08:00 2012 +0900

    Tasklist: Reverting "ceil" to "floor" (as in 4.8).

 plugins/tasklist/tasklist-widget.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 7c60dd9..0f1991a 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -771,8 +771,7 @@ xfce_tasklist_size_request (GtkWidget      *widget,
       rows = MAX (tasklist->nrows, 1);
       if (tasklist->show_labels && tasklist->max_button_size > 0)
         {
-          rows = MAX (rows,
-                      ceil ((gdouble) tasklist->size / (gdouble) tasklist->max_button_size));
+          rows = MAX (rows, tasklist->size / tasklist->max_button_size);
           child_height = MIN (child_height, tasklist->max_button_size);
         }
 
@@ -847,8 +846,7 @@ xfce_tasklist_size_layout (XfceTasklist  *tasklist,
   if (xfce_tasklist_deskbar (tasklist) && tasklist->show_labels)
     rows = 1;
   else if (tasklist->show_labels && tasklist->max_button_size > 0)
-    rows = MAX (tasklist->nrows,
-                ceil ((gdouble) tasklist->size / (gdouble) tasklist->max_button_size));
+    rows = MAX (tasklist->nrows, tasklist->size / tasklist->max_button_size);
   else
     rows = tasklist->nrows;
 


More information about the Xfce4-commits mailing list