summaryrefslogtreecommitdiff
path: root/gtk/gtkframe.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-12-27 21:14:49 +0100
committerTimm Bäder <mail@baedert.org>2021-01-03 11:01:29 +0100
commit034672e84e245cfb380a2f2b6e8704a487fce59b (patch)
tree163848ca92bdd63086120cb9c48d2f4addd83854 /gtk/gtkframe.c
parent00c885c93c9224a19e5b7a73e3e83aeaa18bc8e1 (diff)
downloadgtk+-034672e84e245cfb380a2f2b6e8704a487fce59b.tar.gz
frame: Remove unnecessary function
Just call the vfunc directly in the only place we used to call the old wrapper
Diffstat (limited to 'gtk/gtkframe.c')
-rw-r--r--gtk/gtkframe.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c
index a8aa980779..10b9c818d4 100644
--- a/gtk/gtkframe.c
+++ b/gtk/gtkframe.c
@@ -114,9 +114,6 @@ static void gtk_frame_size_allocate (GtkWidget *widget,
int width,
int height,
int baseline);
-
-static void gtk_frame_compute_child_allocation (GtkFrame *frame,
- GtkAllocation *child_allocation);
static void gtk_frame_real_compute_child_allocation (GtkFrame *frame,
GtkAllocation *child_allocation);
@@ -497,7 +494,7 @@ gtk_frame_size_allocate (GtkWidget *widget,
GtkFramePrivate *priv = gtk_frame_get_instance_private (frame);
GtkAllocation new_allocation;
- gtk_frame_compute_child_allocation (frame, &new_allocation);
+ GTK_FRAME_GET_CLASS (frame)->compute_child_allocation (frame, &new_allocation);
if (priv->label_widget &&
gtk_widget_get_visible (priv->label_widget))
@@ -530,16 +527,6 @@ gtk_frame_size_allocate (GtkWidget *widget,
}
static void
-gtk_frame_compute_child_allocation (GtkFrame *frame,
- GtkAllocation *child_allocation)
-{
- g_return_if_fail (GTK_IS_FRAME (frame));
- g_return_if_fail (child_allocation != NULL);
-
- GTK_FRAME_GET_CLASS (frame)->compute_child_allocation (frame, child_allocation);
-}
-
-static void
gtk_frame_real_compute_child_allocation (GtkFrame *frame,
GtkAllocation *child_allocation)
{