X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fhelper.h;h=223b613447e2af5876dc463be4ca7b166c0e9232;hb=9529d1a99cc7c288d94e5bbdb9f4263bd524da6c;hp=0cd1f5557eebec051223756312e2fe314bd01d3c;hpb=729b96a6bd9342c45e6f65a113fd87c70da85b0a;p=pspp-builds.git diff --git a/src/ui/gui/helper.h b/src/ui/gui/helper.h index 0cd1f555..223b6134 100644 --- a/src/ui/gui/helper.h +++ b/src/ui/gui/helper.h @@ -25,20 +25,23 @@ #include - +#include "psppire-dict.h" void paste_syntax_in_new_window (const gchar *syntax); struct fmt_spec; -struct dictionary; + /* Formats a value according to FORMAT The returned string must be freed when no longer required */ -gchar * value_to_text (union value v, const struct dictionary *dict, struct fmt_spec format); +gchar * value_to_text (union value v, const PsppireDict *dict, struct fmt_spec format); -gboolean text_to_value (const gchar *text, union value *v, - struct fmt_spec format); +union value * +text_to_value (const gchar *text, + const PsppireDict *dict, + const struct variable *var, + union value *); GObject *get_object_assert (GtkBuilder *builder, const gchar *name, GType type); GtkAction * get_action_assert (GtkBuilder *builder, const gchar *name); @@ -59,5 +62,7 @@ GtkBuilder *builder_new_real (const gchar *name); /* Create a deep copy of SRC */ GtkListStore * clone_list_store (const GtkListStore *src); +void psppire_box_pack_start_defaults (GtkBox *box, GtkWidget *widget); + #endif