src/gtkconv.c

changeset 12795
83d09a3b4e3c
parent 12737
e1300804318e
child 12797
d0f51cfde6bc
equal deleted inserted replaced
12794:e4f178fc08b5 12795:83d09a3b4e3c
5817 break; 5817 break;
5818 } 5818 }
5819 } 5819 }
5820 } 5820 }
5821 5821
5822 if (page_num == -1) {
5823 /* Add after the last tab */
5824 page_num = count - 1;
5825 }
5826
5822 return page_num; 5827 return page_num;
5823 } 5828 }
5824 5829
5825 static void 5830 static void
5826 close_on_tabs_pref_cb(const char *name, GaimPrefType type, gpointer value, 5831 close_on_tabs_pref_cb(const char *name, GaimPrefType type, gpointer value,
6604 arrow1_x += tab->allocation.width; 6609 arrow1_x += tab->allocation.width;
6605 arrow2_x += tab->allocation.width; 6610 arrow2_x += tab->allocation.width;
6606 } 6611 }
6607 6612
6608 arrow1_y = nb_y + tab->allocation.y; 6613 arrow1_y = nb_y + tab->allocation.y;
6609 arrow2_y = nb_y + tab->allocation.y + 6614 arrow2_y = nb_y + tab->allocation.y + tab->allocation.height;
6610 tab->allocation.height;
6611 } else { 6615 } else {
6612 arrow1_x = nb_x + tab->allocation.x; 6616 arrow1_x = nb_x + tab->allocation.x;
6613 arrow2_x = nb_x + tab->allocation.x + 6617 arrow2_x = nb_x + tab->allocation.x + tab->allocation.width;
6614 tab->allocation.width; 6618 arrow1_y = arrow2_y = nb_y + tab->allocation.y;
6615 arrow1_y = arrow2_y = nb_y + tab->allocation.y + tab->allocation.height/2; 6619
6616 6620 if (((gpointer)win == (gpointer)dest_win && win->drag_tab < page_num) || to_right) {
6617 if ((gpointer)win == (gpointer)dest_win && win->drag_tab < page_num) {
6618 arrow1_y += tab->allocation.height; 6621 arrow1_y += tab->allocation.height;
6619 arrow2_y += tab->allocation.height; 6622 arrow2_y += tab->allocation.height;
6620 } 6623 }
6621 } 6624 }
6622 6625

mercurial