From: John Darrington <john@darrington.wattle.id.au>
Date: Sat, 4 Jul 2020 10:25:06 +0000 (+0200)
Subject: psppire_box_pack_start_defaults: Change to static inline
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9f8fdb02ec2d1721a3529a42d57415ea55e049b;p=pspp

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.
---

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
+