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:
parent
df8f516a40
commit
c550dc9cb1
@ -3811,7 +3811,8 @@ gtk_xtext_render_page (GtkXText * xtext)
|
|||||||
if (xtext->buffer->indent < MARGIN)
|
if (xtext->buffer->indent < MARGIN)
|
||||||
xtext->buffer->indent = MARGIN; /* 2 pixels is our left 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)
|
if (width < 34 || height < xtext->fontsize || width < xtext->buffer->indent + 32)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user