X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fgui%2Fpsppire-var-view.h;h=bd1dca2df311535f182bd5e60b1fefb65b3bb7fa;hb=2fd4306b04da6c8fc982d81beacc1f2e3573307b;hp=a8fb0565cab64fbcb2bfd1f0f902621451f99d70;hpb=6f3865480503c571963d8a2d1af858a4d72d4e88;p=pspp diff --git a/src/ui/gui/psppire-var-view.h b/src/ui/gui/psppire-var-view.h index a8fb0565ca..bd1dca2df3 100644 --- a/src/ui/gui/psppire-var-view.h +++ b/src/ui/gui/psppire-var-view.h @@ -40,19 +40,28 @@ typedef struct _PsppireVarViewClass PsppireVarViewClass; struct variable; +struct vvstate +{ + /* An array of GtkListStores */ + GtkListStore **list; + + /* The size of the above array */ + gint n_lists; + + /* The currently selected item in the array */ + gint l_idx; +}; + struct _PsppireVarView { GtkTreeView parent; /* Private */ - GtkListStore **list; + struct vvstate *state; GType *cols; gint *nums; gint n_cols; - - gint n_lists; - gint l_idx; }; struct _PsppireVarViewClass @@ -76,13 +85,12 @@ const struct variable * psppire_var_view_get_variable (PsppireVarView *vv, gint void psppire_var_view_push_model (PsppireVarView *vv); gboolean psppire_var_view_set_current_model (PsppireVarView *vv, gint n); +GtkTreeModel *psppire_var_view_get_current_model (PsppireVarView *vv); void psppire_var_view_clear (PsppireVarView *vv); GtkWidget* psppire_var_view_new (void); - - G_END_DECLS #endif /* __PSPPIRE_VAR_VIEW_H__ */