diff src/gtkconv.c @ 11280:65658ff2deb8

[gaim-migrate @ 13477] Removing gaim_gtkconv_get_dest_tab_at_xy, which is now useles. Also: (14:04:35) Sadrul Habib Chowdhury (sadrul): rlaager: while you are at it, there's a little mod to that patch: " gtkwin->drag_tab > page_num) " <-- ">" should be "<" (14:04:49) Sadrul Habib Chowdhury (sadrul): (i forgot to test that for the vertical tabs) committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 16 Aug 2005 19:15:28 +0000
parents ed5302df41b0
children 421007f39e53
line wrap: on
line diff
--- a/src/gtkconv.c	Tue Aug 16 18:54:40 2005 +0000
+++ b/src/gtkconv.c	Tue Aug 16 19:15:28 2005 +0000
@@ -2116,7 +2116,7 @@
 		arrow1_x = arrow2_x = nb_x;
 		arrow1_y = arrow2_y = nb_y;
 
-		page_num = gaim_gtkconv_get_dest_tab_at_xy(dest_win,
+		page_num = gaim_gtkconv_get_tab_at_xy(dest_win,
 												   e->x_root, e->y_root);
 
 		if (gtk_notebook_get_tab_pos(dest_notebook) == GTK_POS_TOP ||
@@ -2145,7 +2145,7 @@
 							  tab->allocation.width;
 			arrow1_y = arrow2_y = nb_y + tab->allocation.y + tab->allocation.height/2;
 
-			if ((gpointer)gtkwin == (gpointer)dest_win && gtkwin->drag_tab > page_num) {
+			if ((gpointer)gtkwin == (gpointer)dest_win && gtkwin->drag_tab < page_num) {
 				arrow1_y += tab->allocation.height;
 				arrow2_y += tab->allocation.height;
 			}
@@ -2365,7 +2365,7 @@
 		dest_notebook = GTK_NOTEBOOK(gtkwin->notebook);
 
 		/* Get the destination page number. */
-		dest_page_num = gaim_gtkconv_get_dest_tab_at_xy(dest_win,
+		dest_page_num = gaim_gtkconv_get_tab_at_xy(dest_win,
 								e->x_root, e->y_root);
 
 		if (win == dest_win) {
@@ -5929,12 +5929,6 @@
 	return page_num;
 }
 
-int
-gaim_gtkconv_get_dest_tab_at_xy(GaimConvWindow *win, int x, int y)
-{
-	return gaim_gtkconv_get_tab_at_xy(win, x, y);
-}
-
 static void
 close_on_tabs_pref_cb(const char *name, GaimPrefType type, gpointer value,
 						gpointer data)