Top |
TeplPanel represents a panel that is usually shown on the side or at the bottom (inside a main window), and can contain several items.
TeplPanelItem * tepl_panel_add (TeplPanel *panel
,GtkWidget *widget
,const gchar *name
,const gchar *title
,const gchar *icon_name
);
Adds an item to the panel. See TeplPanelItem for the meaning of the parameters.
widget
should have its “visible” property set to TRUE
in order to
be correctly shown in the panel.
A TeplPanelItem object is returned, which can be used as a parameter to other TeplPanel functions (TeplPanelItem serves as a kind of handle).
Note that TeplPanel also owns a reference to the TeplPanelItem. So either store the TeplPanelItem for later use, or unref it directly after calling this function.
Since: 6.8
void tepl_panel_remove (TeplPanel *panel
,TeplPanelItem *item
);
Removes an item from panel
.
Since: 6.8
void tepl_panel_set_active (TeplPanel *panel
,TeplPanelItem *item
);
Sets item
to be the one that is currently shown in panel
.
This is different than setting the “visible” property to TRUE
. All
GtkWidget's of a panel
should have their “visible” property set to
TRUE
all the time, but only one TeplPanelItem is shown at a time.
Since: 6.8
struct TeplPanelInterface { GTypeInterface parent_interface; TeplPanelItem * (*add) (TeplPanel *panel, GtkWidget *widget, const gchar *name, const gchar *title, const gchar *icon_name); void (*remove) (TeplPanel *panel, TeplPanelItem *item); void (*set_active) (TeplPanel *panel, TeplPanelItem *item); };
The virtual function table for TeplPanel.
GTypeInterface |
The parent interface. |
|
The virtual function pointer for |
||
The virtual function pointer for |
||
The virtual function pointer for |
Since: 6.8