forked from AuroraMiddleware/gtk
Revert "Revealer: Don’t (under)allocate child if not shown"
This reverts commit d179b0667d
.
This broke the downloads popover in Epiphany. See #1057.
This commit is contained in:
parent
105dd5eda0
commit
65311c8439
@ -449,7 +449,7 @@ gtk_revealer_real_size_allocate (GtkWidget *widget,
|
||||
GtkRevealerPrivate *priv = gtk_revealer_get_instance_private (revealer);
|
||||
GtkAllocation child_allocation;
|
||||
GtkWidget *child;
|
||||
gboolean child_visible, window_visible;
|
||||
gboolean window_visible;
|
||||
int bin_x, bin_y;
|
||||
GtkRevealerTransitionType transition;
|
||||
GtkBorder padding;
|
||||
@ -460,9 +460,7 @@ gtk_revealer_real_size_allocate (GtkWidget *widget,
|
||||
gtk_revealer_get_child_allocation (revealer, allocation, &child_allocation);
|
||||
|
||||
child = gtk_bin_get_child (GTK_BIN (revealer));
|
||||
child_visible = child != NULL && gtk_widget_get_visible (child) &&
|
||||
gtk_widget_get_child_visible (child);
|
||||
if (child_visible)
|
||||
if (child != NULL && gtk_widget_get_visible (child))
|
||||
gtk_widget_size_allocate (child, &child_allocation);
|
||||
|
||||
if (gtk_widget_get_realized (widget))
|
||||
|
Loading…
Reference in New Issue
Block a user