mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
Cosmetics
This commit is contained in:
parent
76777cdd18
commit
d7dd6ca552
@ -12529,12 +12529,14 @@ int
|
||||
gtk_widget_get_size (GtkWidget *widget,
|
||||
GtkOrientation orientation)
|
||||
{
|
||||
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
|
||||
|
||||
g_return_val_if_fail (GTK_IS_WIDGET (widget), 0);
|
||||
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
return gtk_widget_get_width (widget);
|
||||
return priv->width;
|
||||
else
|
||||
return gtk_widget_get_height (widget);
|
||||
return priv->height;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user