[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:38:04 CET 2011
Updating branch refs/heads/xfce-4.8
to 8a26911ce913321e9d72afc8e2d17c9fc58e836f (commit)
from d86f28de66a2a34f443d3cafe65002f38ae0a202 (commit)
commit 8a26911ce913321e9d72afc8e2d17c9fc58e836f
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