| Meego Panel Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
MplPanelWindowless; MplPanelWindowlessClass; MplPanelClient * mpl_panel_windowless_new (const gchar *name,const gchar *tooltip,const gchar *stylesheet,const gchar *button_style,gboolean with_toolbar_service);
MplPanelWindowless is a class for all Panels that use a non-interactive Toolbar button and have no drop-down panel.
NB: Since the button is not interactive, windowless panels need to be started through some other mechanism than the user first clicking the associated button (e.g., using the system autostart mechanism).
A minimal Panel implementation using MplPanelWindowless would look as follows:
#include <meego-panel/mpl-panel-windowless.h>
int
main (int argc, char **argv)
{
MplPanelClient *client;
GMainLoop *loop;
loop = g_main_loop_new (NULL, FALSE);
client = mpl_panel_windowless_new ("mypanel",
"this is mypanel",
"somewhere/mypanel-button.css",
"mypanel-button",
FALSE);
/ * do something that justifies having a Toolbar button * /
setup_my_stuff (client);
g_main_loop_run (loop);
g_main_loop_unref (loop);
return 0;
}
typedef struct _MplPanelWindowless MplPanelWindowless;
Panel object for non-interactive panels.
typedef struct {
} MplPanelWindowlessClass;
Panel object for non-interactive panels.
MplPanelClient * mpl_panel_windowless_new (const gchar *name,const gchar *tooltip,const gchar *stylesheet,const gchar *button_style,gboolean with_toolbar_service);
Constructs a new MplPanelWindowless object.
|
canonical name of the panel |
|
tooltip for the associated Toolbar button |
|
stylesheet for the associated Toolbar button |
|
css style id for the button style |
|
whether the panel will be using any Toolbar services (e.g., the launching API) |
Returns : |
new MplPanelClient object. |