# HG changeset patch # User Richard Laager # Date 1136821191 0 # Node ID ca114422782658838c6462dc944e92da32145033 # Parent 4e3dde2b2641a32253d2f570872cd2fb47ceded7 [gaim-migrate @ 15142] Part of SF Patch #1400162 from Sadrul "This should make the tab-dragging arrows appear in the right places for tabs on the side/side-vertical." I'm basically trusting Sadrul on this one. committer: Tailor Script diff -r 4e3dde2b2641 -r ca1144227826 src/gtkconv.c --- a/src/gtkconv.c Mon Jan 09 15:32:00 2006 +0000 +++ b/src/gtkconv.c Mon Jan 09 15:39:51 2006 +0000 @@ -5819,6 +5819,11 @@ } } + if (page_num == -1) { + /* Add after the last tab */ + page_num = count - 1; + } + return page_num; } @@ -6606,15 +6611,13 @@ } arrow1_y = nb_y + tab->allocation.y; - arrow2_y = nb_y + tab->allocation.y + - tab->allocation.height; + arrow2_y = nb_y + tab->allocation.y + tab->allocation.height; } else { arrow1_x = nb_x + tab->allocation.x; - arrow2_x = nb_x + tab->allocation.x + - tab->allocation.width; - arrow1_y = arrow2_y = nb_y + tab->allocation.y + tab->allocation.height/2; - - if ((gpointer)win == (gpointer)dest_win && win->drag_tab < page_num) { + arrow2_x = nb_x + tab->allocation.x + tab->allocation.width; + arrow1_y = arrow2_y = nb_y + tab->allocation.y; + + if (((gpointer)win == (gpointer)dest_win && win->drag_tab < page_num) || to_right) { arrow1_y += tab->allocation.height; arrow2_y += tab->allocation.height; }