X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-value-entry.h;h=88c08a1eb09daa4c5e09d9e3afed1cf9447fb666;hb=e0cbdf0daefcca81be9572aab0deedf945687f5a;hp=d17d5ad1ea98962ff21dee6c7d3c9e3337eafe7b;hpb=68c240dce0af5c0733a143fa3db3ccb2fb79ea3e;p=pspp diff --git a/src/ui/gui/psppire-value-entry.h b/src/ui/gui/psppire-value-entry.h index d17d5ad1ea..88c08a1eb0 100644 --- a/src/ui/gui/psppire-value-entry.h +++ b/src/ui/gui/psppire-value-entry.h @@ -20,7 +20,7 @@ #include #include "data/format.h" -/* PsppireValueEntry is a subclass of GtkComboBoxEntry that is specialized for +/* PsppireValueEntry is a subclass of GtkComboBox that is specialized for displaying and entering "union value"s. Its main advantage over a plain GtkEntry is that, when value labels are supplied, it (optionally) displays the value label instead of the value. It also allows the user to choose a @@ -50,9 +50,9 @@ struct variable; typedef struct _PsppireValueEntry PsppireValueEntry; typedef struct _PsppireValueEntryClass PsppireValueEntryClass; -struct _PsppireValueEntry +struct _PsppireValueEntry { - GtkComboBoxEntry parent; + GtkComboBox parent; gboolean show_value_label; @@ -63,9 +63,9 @@ struct _PsppireValueEntry const union value *cur_value; }; -struct _PsppireValueEntryClass +struct _PsppireValueEntryClass { - GtkComboBoxEntryClass parent_class; + GtkComboBoxClass parent_class; }; GType psppire_value_entry_get_type (void); @@ -83,10 +83,8 @@ void psppire_value_entry_set_value_labels (PsppireValueEntry *, const struct val_labs * psppire_value_entry_get_value_labels (const PsppireValueEntry *); -void psppire_value_entry_set_format (PsppireValueEntry *, - const struct fmt_spec *); -const struct fmt_spec * -psppire_value_entry_get_format (const PsppireValueEntry *); +void psppire_value_entry_set_format (PsppireValueEntry *, struct fmt_spec); +struct fmt_spec psppire_value_entry_get_format (const PsppireValueEntry *); void psppire_value_entry_set_encoding (PsppireValueEntry *, const gchar *); const gchar *psppire_value_entry_get_encoding (const PsppireValueEntry *);