#include <gtk/gtk.h>
#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
typedef struct _PsppireValueEntry PsppireValueEntry;
typedef struct _PsppireValueEntryClass PsppireValueEntryClass;
-struct _PsppireValueEntry
+struct _PsppireValueEntry
{
- GtkComboBoxEntry parent;
+ GtkComboBox parent;
gboolean show_value_label;
const union value *cur_value;
};
-struct _PsppireValueEntryClass
+struct _PsppireValueEntryClass
{
- GtkComboBoxEntryClass parent_class;
+ GtkComboBoxClass parent_class;
};
GType psppire_value_entry_get_type (void);
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 *);