/* Combo box is height-for-width only
* (so we always just reserve enough height for the minimum width) */
- gtk_size_request_get_width (widget, &min_width, NULL);
- gtk_size_request_get_height_for_width (widget, min_width, minimum_size, natural_size);
+ GTK_SIZE_REQUEST_GET_IFACE (widget)->get_width (widget, &min_width, NULL);
+ GTK_SIZE_REQUEST_GET_IFACE (widget)->get_height_for_width (widget, min_width, minimum_size, natural_size);
}
static void
{
/* Combo box is height-for-width only
* (so we assume we always reserved enough height for the minimum width) */
- gtk_size_request_get_width (widget, minimum_size, natural_size);
+ GTK_SIZE_REQUEST_GET_IFACE (widget)->get_width (widget, minimum_size, natural_size);
}
gint min_width;
/* Menus are height-for-width only, just return the height for the minimum width */
- gtk_size_request_get_width (widget, &min_width, NULL);
- gtk_size_request_get_height_for_width (widget, min_width, minimum_size, natural_size);
+ GTK_SIZE_REQUEST_GET_IFACE (widget)->get_width (widget, &min_width, NULL);
+ GTK_SIZE_REQUEST_GET_IFACE (widget)->get_height_for_width (widget, min_width, minimum_size, natural_size);
}
static void
/* Return the width for the minimum height */
gint min_height;
- gtk_size_request_get_height (widget, &min_height, NULL);
- gtk_size_request_get_width_for_height (widget, min_height, &min_width, &nat_width);
+ GTK_SIZE_REQUEST_GET_IFACE (widget)->get_height (widget, &min_height, NULL);
+ GTK_SIZE_REQUEST_GET_IFACE (widget)->get_width_for_height (widget, min_height, &min_width, &nat_width);
}
/* Return the height for the minimum width */
gint min_width;
- gtk_size_request_get_width (widget, &min_width, NULL);
- gtk_size_request_get_height_for_width (widget, min_width, &min_height, &nat_height);
+ GTK_SIZE_REQUEST_GET_IFACE (widget)->get_width (widget, &min_width, NULL);
+ GTK_SIZE_REQUEST_GET_IFACE (widget)->get_height_for_width (widget, min_width, &min_height, &nat_height);
}
else /* GTK_ORIENTATION_VERTICAL */
{
gint min_width;
/* Make sure its no smaller than the minimum */
- gtk_size_request_get_width (widget, &min_width, NULL);
+ GTK_SIZE_REQUEST_GET_IFACE (widget)->get_width (widget, &min_width, NULL);
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
else /* GTK_ORIENTATION_VERTICAL */
{
/* Return the minimum height */
- gtk_size_request_get_height (widget, &min_height, &nat_height);
+ GTK_SIZE_REQUEST_GET_IFACE (widget)->get_height (widget, &min_height, &nat_height);
}
if (minimum_height)
if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
{
/* Return the minimum width */
- gtk_size_request_get_width (widget, &min_width, &nat_width);
+ GTK_SIZE_REQUEST_GET_IFACE (widget)->get_width (widget, &min_width, &nat_width);
}
else /* GTK_ORIENTATION_VERTICAL */
{
gint min_height;
/* Make sure its no smaller than the minimum */
- gtk_size_request_get_height (widget, &min_height, NULL);
+ GTK_SIZE_REQUEST_GET_IFACE (widget)->get_height (widget, &min_height, NULL);
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));