popover: Remove some unnecessary checks

gtk_popover_move_resize() already checks whether the popover has a
surface.
This commit is contained in:
Timm Bäder 2019-07-21 15:38:13 +02:00
parent 30f55c4d07
commit b3d0629709

View File

@ -1091,8 +1091,7 @@ gtk_popover_size_allocate (GtkWidget *widget,
GtkAllocation child_alloc;
int tail_height = priv->has_arrow ? TAIL_HEIGHT : 0;
if (priv->surface)
gtk_popover_move_resize (popover);
gtk_popover_move_resize (popover);
switch (priv->final_position)
{
@ -1414,10 +1413,7 @@ size_changed (GtkWidget *widget,
int baseline,
GtkPopover *popover)
{
GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover);
if (priv->surface)
gtk_popover_move_resize (popover);
gtk_popover_move_resize (popover);
}
void