forked from AuroraMiddleware/gtk
headerbar: don't measure own size
This is fallout from an earlier commit, we should be checking the child's size of course, not repeatedly the headerbar's.
This commit is contained in:
parent
e25e1c54a4
commit
a8561bcc99
@ -701,7 +701,7 @@ gtk_header_bar_compute_size_for_orientation (GtkWidget *widget,
|
||||
|
||||
if (gtk_widget_get_visible (child->widget))
|
||||
{
|
||||
gtk_widget_measure (widget, GTK_ORIENTATION_HORIZONTAL, avail_size,
|
||||
gtk_widget_measure (child->widget, GTK_ORIENTATION_HORIZONTAL, avail_size,
|
||||
&child_size, &child_natural, NULL, NULL);
|
||||
|
||||
required_size += child_size;
|
||||
|
Loading…
Reference in New Issue
Block a user