Migrate from gdk_drawable_get_size to gdk_window_get_{width,height}.

gdk_drawable_get_size is gone in GDK 3.
This commit is contained in:
Sadie Powell 2022-09-25 18:04:08 +01:00
parent e18c9cc8ea
commit d4e222f494
1 changed files with 2 additions and 1 deletions

View File

@ -3811,7 +3811,8 @@ gtk_xtext_render_page (GtkXText * xtext)
if (xtext->buffer->indent < MARGIN)
xtext->buffer->indent = MARGIN; /* 2 pixels is our left margin */
gdk_drawable_get_size (GTK_WIDGET (xtext)->window, &width, &height);
width = gdk_window_get_width (GTK_WIDGET (xtext)->window);
height = gdk_window_get_height (GTK_WIDGET (xtext)->window);
if (width < 34 || height < xtext->fontsize || width < xtext->buffer->indent + 32)
return;