forked from AuroraMiddleware/gtk
TextView: :border-width broke window→widget coords
Do the converse of commit bd7c87c762
so
that a TextView with Container:border-width > 0 does not get its handles
and magnified region shifted up/left from where they should be.
https://bugzilla.gnome.org/show_bug.cgi?id=786986
This commit is contained in:
parent
18a6c5c4c6
commit
afd624bf4b
@ -5070,6 +5070,10 @@ _text_window_to_widget_coords (GtkTextView *text_view,
|
||||
gint *y)
|
||||
{
|
||||
GtkTextViewPrivate *priv = text_view->priv;
|
||||
gint border_width = gtk_container_get_border_width (GTK_CONTAINER (text_view));
|
||||
|
||||
*x += border_width;
|
||||
*y += border_width;
|
||||
|
||||
if (priv->top_window)
|
||||
(*y) += priv->top_window->requisition.height;
|
||||
|
Loading…
Reference in New Issue
Block a user