widget: Fold queue_resize_on_widget into its only caller

This commit is contained in:
Timm Bäder 2017-04-30 18:38:10 +02:00
parent 596317c25b
commit 1b36c325eb
2 changed files with 2 additions and 11 deletions

View File

@ -5132,7 +5132,8 @@ gtk_widget_queue_resize_internal (GtkWidget *widget)
if (gtk_widget_get_resize_needed (widget))
return;
gtk_widget_queue_resize_on_widget (widget);
widget->priv->resize_needed = TRUE;
gtk_widget_set_alloc_needed (widget);
groups = _gtk_widget_get_sizegroups (widget);
@ -14330,15 +14331,6 @@ gtk_widget_ensure_allocate (GtkWidget *widget)
}
}
void
gtk_widget_queue_resize_on_widget (GtkWidget *widget)
{
GtkWidgetPrivate *priv = widget->priv;
priv->resize_needed = TRUE;
gtk_widget_set_alloc_needed (widget);
}
void
gtk_widget_ensure_resize (GtkWidget *widget)
{

View File

@ -173,7 +173,6 @@ void _gtk_widget_set_shadowed (GtkWidget *widget,
gboolean shadowed);
gboolean _gtk_widget_get_alloc_needed (GtkWidget *widget);
gboolean gtk_widget_needs_allocate (GtkWidget *widget);
void gtk_widget_queue_resize_on_widget (GtkWidget *widget);
void gtk_widget_ensure_resize (GtkWidget *widget);
void gtk_widget_ensure_allocate (GtkWidget *widget);
void gtk_widget_draw_internal (GtkWidget *widget,