Top |
Functions
const gchar * | gtd_panel_get_panel_name () |
const gchar * | gtd_panel_get_panel_title () |
GList * | gtd_panel_get_header_widgets () |
const GMenu * | gtd_panel_get_menu () |
Description
The GtdPanel interface must be implemented by plugins that want a given widget to be shown as a panel in the main window. Examples of panels are the "Today" and "Scheduled" panels.
A panel must have a unique name (see “name”) and a title. The title can change dynamically. Avoid long titles.
The panel may also provide header widgets, which will be placed
in the headerbar according to the “halign” property. See
gtd_panel_get_header_widgets()
for a detailed explanation.
At last, a GtdPanel implementation may provide a GMenu that will be appended to the window menu.
Functions
gtd_panel_get_panel_name ()
const gchar *
gtd_panel_get_panel_name (GtdPanel *panel
);
Retrieves the name of panel
gtd_panel_get_panel_title ()
const gchar *
gtd_panel_get_panel_title (GtdPanel *panel
);
Retrieves the title of panel
gtd_panel_get_header_widgets ()
GList *
gtd_panel_get_header_widgets (GtdPanel *panel
);
Retrieves the list of widgets to be placed at headerbar. The position of the widget is determined by the “halign” property.
Widgets with GTK_ALIGN_START
halign will be packed into the
start of the headerbar, and GTK_ALIGN_END
at the end. Other
values are silently ignored.
Types and Values
struct GtdPanelInterface
struct GtdPanelInterface { GTypeInterface parent; const gchar* (*get_panel_name) (GtdPanel *panel); const gchar* (*get_panel_title) (GtdPanel *panel); GList* (*get_header_widgets) (GtdPanel *panel); const GMenu* (*get_menu) (GtdPanel *panel); };