![]() |
![]() |
![]() |
GtkSourceCompletion Reference Manual | ![]() |
---|---|---|---|---|
GscTreePriv; GscTree; GtkWidget* gsc_tree_new (); gboolean gsc_tree_get_selected_proposal (GscTree *self, GscProposal **proposal); gboolean gsc_tree_select_first (GscTree *self); gboolean gsc_tree_select_last (GscTree *self); gboolean gsc_tree_select_previous (GscTree *self, gint rows); gboolean gsc_tree_select_next (GscTree *self, gint rows); void gsc_tree_clear (GscTree *self); void gsc_tree_add_data (GscTree *self, GscProposal *data); gint gsc_tree_get_num_proposals (GscTree *self); void gsc_tree_filter (GscTree *self, const gchar *filter);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkScrolledWindow +----GscTree
gboolean gsc_tree_get_selected_proposal (GscTree *self, GscProposal **proposal);
Sets the param proposal to the selected proposal if there is an proposal selected.
|
the GscTree |
|
Sets the ponter to the selected proposal. |
Returns : |
TRUE if there is an proposal selected |
gboolean gsc_tree_select_first (GscTree *self);
This functions selects the first proposal on the tree
|
The GscTree |
Returns : |
TRUE if there is an proposal and it has been selected |
gboolean gsc_tree_select_last (GscTree *self);
This functions selects the last proposal on the tree
|
The GscTree |
Returns : |
TRUE if there is an proposal and it has been selected |
gboolean gsc_tree_select_previous (GscTree *self, gint rows);
This functions selects the rows number of proposals before the current.
|
The GscTree |
|
the number of the previous proposals to select |
Returns : |
TRUE if there is an proposal and it has been selected. If rows=5 but the tree only have 3 proposals, it returns true too. |
gboolean gsc_tree_select_next (GscTree *self, gint rows);
This functions selects the rows number of proposals after the current.
|
The GscTree |
|
the number of the next proposals to select |
Returns : |
TRUE if there is an proposal and it has been selected. If rows=5 but the tree only have 3 proposals, it returns true too. |
void gsc_tree_clear (GscTree *self);
Clear the tree model and free the proposals
|
the GscTree |
void gsc_tree_add_data (GscTree *self, GscProposal *data);
Adds a new proposal into the tree
|
The GscTree |
|
the proposal to add to the tree |
gint gsc_tree_get_num_proposals (GscTree *self);
|
The GscTree |
Returns : |
The proposals number of this tree. |
"proposal-selected"
signalvoid user_function (GscTree *gsctree, gpointer proposal, gpointer user_data) : Run First / Action
Emits when the user selects a proposal of this tree.
|
the object which received the signal. |
|
The GscProposal selected |
|
user data set when the signal handler was connected. |
"selection-changed"
signalvoid user_function (GscTree *gsctree, gpointer proposal, gpointer user_data) : Run First / Action
Emits when the user change the current proposal
|
the object which received the signal. |
|
The current GscProposal in the tree |
|
user data set when the signal handler was connected. |