MplPanelWindowless

MplPanelWindowless — Class for panels with passive button

Synopsis

                    MplPanelWindowless;
                    MplPanelWindowlessClass;
MplPanelClient *    mpl_panel_windowless_new            (const gchar *name,
                                                         const gchar *tooltip,
                                                         const gchar *stylesheet,
                                                         const gchar *button_style,
                                                         gboolean with_toolbar_service);

Object Hierarchy

  GObject
   +----MplPanelClient
         +----MplPanelWindowless

Description

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;
  }

Details

MplPanelWindowless

typedef struct _MplPanelWindowless MplPanelWindowless;

Panel object for non-interactive panels.


MplPanelWindowlessClass

typedef struct {
} MplPanelWindowlessClass;

Panel object for non-interactive panels.


mpl_panel_windowless_new ()

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.

name :

canonical name of the panel

tooltip :

tooltip for the associated Toolbar button

stylesheet :

stylesheet for the associated Toolbar button

button_style :

css style id for the button style

with_toolbar_service :

whether the panel will be using any Toolbar services (e.g., the launching API)

Returns :

new MplPanelClient object.