X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fhelper.h;h=8d18fcf4b44e4b318d5bb29eb4686f389d77afa7;hb=9fd7169a58954be733ae42de9916826dd56a8b81;hp=7431d4c4e3fd1cdc10e4c9fa80b562bea51ab819;hpb=af8615fd43519dd7ac52794342fb693e51273ba9;p=pspp diff --git a/src/ui/gui/helper.h b/src/ui/gui/helper.h index 7431d4c4e3..8d18fcf4b4 100644 --- a/src/ui/gui/helper.h +++ b/src/ui/gui/helper.h @@ -44,8 +44,6 @@ null_if_empty_param (const gchar *name, const gchar *nick, return param; } -char *escape_underscores (const char *); - gchar * value_to_text (union value v, const struct variable *); gchar * value_to_text__ (union value v, const struct fmt_spec *, const char *encoding); @@ -56,16 +54,24 @@ union value *text_to_value (const gchar *text, const struct variable *, union value *text_to_value__ (const gchar *text, const struct fmt_spec *, const gchar *encoding, union value *); -gchar * convert_glib_filename_to_system_filename (const gchar *fname, - GError **err); - -void connect_help (GtkBuilder *); - - /* 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); +} +/* Starting with gcc8 the warning Wcast-function-type will + trigger if no intermediate (void (*)(void)) cast is done + for a function cast to GFunc when the number of parameters + is not 2. The reason is that the compiler behaviour in this + situation is undefined according to C standard although many + implementations rely on this. */ +#define GFUNC_COMPAT_CAST(x) ((GFunc) (void (*)(void)) (x)) #endif +