mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-03 17:21:11 +00:00
gdk: Revert making get_size optional
49a0ec6e95
added this hunk without
explanations and it's obviously wrong because failing to have a get_size
vfunc will now not set width and height and they'll end up with invalid
values.
In fact, the GdkDrawableImpl{X11,Win32,Quartz} functions do not have
get_size implemented, so the patch was most likely an attempt to work
around calling this function erroneously on the impl objects.
The correct fix is to call impl->wrapper instead.
This commit is contained in:
parent
e1c7ff8ee0
commit
01fea4032f
@ -160,8 +160,7 @@ gdk_drawable_get_size (GdkDrawable *drawable,
|
|||||||
{
|
{
|
||||||
g_return_if_fail (GDK_IS_DRAWABLE (drawable));
|
g_return_if_fail (GDK_IS_DRAWABLE (drawable));
|
||||||
|
|
||||||
if (GDK_DRAWABLE_GET_CLASS (drawable)->get_size != NULL)
|
GDK_DRAWABLE_GET_CLASS (drawable)->get_size (drawable, width, height);
|
||||||
GDK_DRAWABLE_GET_CLASS (drawable)->get_size (drawable, width, height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user