From f9f8fdb02ec2d1721a3529a42d57415ea55e049b Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 4 Jul 2020 12:25:06 +0200 Subject: [PATCH] psppire_box_pack_start_defaults: Change to static inline This is a simple, one line wrapper around another function. So having it inline makes sense. --- src/ui/gui/helper.c | 9 --------- src/ui/gui/helper.h | 10 ++++++++-- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/ui/gui/helper.c b/src/ui/gui/helper.c index bbaf47e763..cde9d92b8f 100644 --- a/src/ui/gui/helper.c +++ b/src/ui/gui/helper.c @@ -230,12 +230,3 @@ paste_syntax_to_window (gchar *syntax) return syntax; } - - -/* gtk_box_pack_start_defaults is deprecated. - Therefore we roll our own until a better solution is found */ -void -psppire_box_pack_start_defaults (GtkBox *box, GtkWidget *widget) -{ - gtk_box_pack_start (box, widget, TRUE, TRUE, 0); -} diff --git a/src/ui/gui/helper.h b/src/ui/gui/helper.h index 9f5264c050..c1d93a8c03 100644 --- a/src/ui/gui/helper.h +++ b/src/ui/gui/helper.h @@ -57,7 +57,13 @@ union value *text_to_value__ (const gchar *text, const struct fmt_spec *, /* Create a deep copy of SRC */ GtkListStore * clone_list_store (const GtkListStore *src); -void psppire_box_pack_start_defaults (GtkBox *box, GtkWidget *widget); - +/* gtk_box_pack_start_defaults is deprecated. + Therefore we roll our own until a better solution is found */ +static inline void +psppire_box_pack_start_defaults (GtkBox *box, GtkWidget *widget) +{ + gtk_box_pack_start (box, widget, TRUE, TRUE, 0); +} #endif + -- 2.30.2