[Xfce4-commits] <xfce4-panel:xfce-4.8> Change packing order of buttons in pager to match wnck.

Nick Schermer noreply at xfce.org
Sat Feb 12 20:40:08 CET 2011


Updating branch refs/heads/xfce-4.8
         to 910053d7ef85a035d989bb775ea9be0b864b50a3 (commit)
       from 23141ad77eb25dc04f257d4508790da1d2ec5fcd (commit)

commit 910053d7ef85a035d989bb775ea9be0b864b50a3
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Feb 3 17:35:21 2011 +0100

    Change packing order of buttons in pager to match wnck.

 plugins/pager/pager-buttons.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugins/pager/pager-buttons.c b/plugins/pager/pager-buttons.c
index 7dfc9aa..06a0397 100644
--- a/plugins/pager/pager-buttons.c
+++ b/plugins/pager/pager-buttons.c
@@ -390,8 +390,8 @@ pager_buttons_rebuild_idle (gpointer user_data)
           gtk_container_add (GTK_CONTAINER (button), label);
           gtk_widget_show (label);
 
-          row = n / rows;
-          col = n % rows;
+          row = n % cols;
+          col = n / cols;
 
           gtk_table_attach (GTK_TABLE (pager), button,
                             row, row + 1, col, col + 1,
@@ -426,8 +426,8 @@ pager_buttons_rebuild_idle (gpointer user_data)
 
           pager->buttons = g_slist_prepend (pager->buttons, button);
 
-          row = n / rows;
-          col = n % rows;
+          row = n % cols;
+          col = n / cols;
 
           gtk_table_attach (GTK_TABLE (pager), button,
                             row, row + 1, col, col + 1,



More information about the Xfce4-commits mailing list