# HG changeset patch # User Elliott Sales de Andrade # Date 1297579209 0 # Node ID 5e5d49f1a5472a496b8c10e6ccc5d5ca04c9fdda # Parent ec41f92254edc2b4bf05b5736706d006ae94c3d3 Fix warning. You should really try to read these next time. diff -r ec41f92254ed -r 5e5d49f1a547 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Sun Feb 13 06:30:30 2011 +0000 +++ b/pidgin/gtkconv.c Sun Feb 13 06:40:09 2011 +0000 @@ -7291,13 +7291,13 @@ { gint pane_x, pane_y, x_rel; PidginConversation *gtkconv; - GtkAllocation allocation; - - gtk_widget_get_allocation(gtkconv->infopane, &allocation); + GtkAllocation allocation; + gdk_window_get_origin(gtk_widget_get_window(win->notebook), - &pane_x, &pane_y); + &pane_x, &pane_y); x_rel = x - pane_x; gtkconv = pidgin_conv_window_get_active_gtkconv(win); + gtk_widget_get_allocation(gtkconv->infopane, &allocation); return (x_rel > allocation.x + allocation.width / 2); }