Top |
TeplPanelSimpleTeplPanelSimple — A set of TeplPanelItem's |
TeplPanelSimple is a simple implementation of the TeplPanel interface, containing a set of TeplPanelItem's.
By using this class, the TeplPanelItem widgets are not yet packed into a GtkContainer. That is a job for other classes.
GList *
tepl_panel_simple_get_items (TeplPanelSimple *panel
);
Since: 6.11
TeplPanelItem *
tepl_panel_simple_get_active_item (TeplPanelSimple *panel
);
Since: 6.11
const gchar *
tepl_panel_simple_get_active_item_name
(TeplPanelSimple *panel
);
A convenience function.
Since: 6.11
void tepl_panel_simple_set_active_item_name (TeplPanelSimple *panel
,const gchar *name
);
A convenience function that calls tepl_panel_set_active()
with the
TeplPanelItem named name
(if found).
Since: 6.11
gboolean
tepl_panel_simple_has_several_items (TeplPanelSimple *panel
);
A convenience function. Useful to implement a switcher widget.
Since: 6.11
“active-item”
property“active-item” TeplPanelItem *
The TeplPanelItem currently shown.
Owner: TeplPanelSimple
Flags: Read / Write
Since: 6.11
“active-item-name”
property “active-item-name” char *
The name of the “active-item”.
Owner: TeplPanelSimple
Flags: Read / Write
Default value: NULL
Since: 6.11
“add-item”
signalvoid user_function (TeplPanelSimple *panel, TeplPanelItem *item, gpointer user_data)
The ::add-item signal is emitted when a TeplPanelItem needs to be added.
It is a G_SIGNAL_RUN_LAST
signal: the item is added by the
TeplPanelSimple's method handler for this signal.
panel |
the TeplPanelSimple emitting the signal. |
|
item |
the TeplPanelItem being added. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 6.11
“changed”
signalvoid user_function (TeplPanelSimple *panel, gpointer user_data)
The ::changed signal is for convenience: it is emitted when the “add-item” and “remove-item” signals are emitted, and also when the “active-item” property changes.
It is a G_SIGNAL_RUN_FIRST
signal: the action is already done.
This signal is useful if you don't need the more detailed information on what has changed.
panel |
the TeplPanelSimple emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
Since: 6.11
“remove-item”
signalvoid user_function (TeplPanelSimple *panel, TeplPanelItem *item, gpointer user_data)
The ::remove-item signal is emitted when a TeplPanelItem needs to be removed.
It is a G_SIGNAL_RUN_LAST
signal: the item is removed by the
TeplPanelSimple's method handler for this signal.
panel |
the TeplPanelSimple emitting the signal. |
|
item |
the TeplPanelItem being removed. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 6.11