X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-selector.h;h=6385c14c2155b48ae2d7a3664d4e8cf058f54e49;hb=c86f5b8a45cca158b46a4fe3b48280e88ce9aba1;hp=f5ca4e9a94f76663a9f9be020193452d90b5a2b3;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp diff --git a/src/ui/gui/psppire-selector.h b/src/ui/gui/psppire-selector.h index f5ca4e9a94..6385c14c21 100644 --- a/src/ui/gui/psppire-selector.h +++ b/src/ui/gui/psppire-selector.h @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -47,6 +48,9 @@ typedef void SelectItemsFunc (GtkTreeIter iter, GtkWidget *dest, GtkTreeModel *source_model); +/* Function to determine if items may be selected */ +typedef gboolean AllowSelectionFunc (GtkWidget *src, GtkWidget *dest); + /* Function to determine whether an item in MODEL, pointed to by ITER is currently selected. @@ -70,6 +74,7 @@ struct _PsppireSelector /* */ GtkWidget *arrow; + GtkAction *action; enum psppire_selector_dir direction; GtkWidget *source; @@ -87,6 +92,8 @@ struct _PsppireSelector SelectItemsFunc *select_items; FilterItemsFunc *filter; + + AllowSelectionFunc *allow_selection; }; struct _PsppireSelectorClass @@ -106,6 +113,9 @@ void psppire_selector_set_subjects (PsppireSelector *, SelectItemsFunc *, FilterItemsFunc * ); +void psppire_selector_set_allow (PsppireSelector *, AllowSelectionFunc *); + + GType psppire_selector_orientation_get_type (void) G_GNUC_CONST;