From 1b36c325eba4b868a81eb4c2ad17209bd888cfef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 30 Apr 2017 18:38:10 +0200 Subject: [PATCH] widget: Fold queue_resize_on_widget into its only caller --- gtk/gtkwidget.c | 12 ++---------- gtk/gtkwidgetprivate.h | 1 - 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 0e5fd47761..ce0f8d4c5c 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -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) { diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h index f46fafadf4..9c89ca900d 100644 --- a/gtk/gtkwidgetprivate.h +++ b/gtk/gtkwidgetprivate.h @@ -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,