![]() |
![]() |
![]() |
libgnome-control-center Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
CcShell; CcShellClass; CcPanel* cc_shell_get_active_panel (CcShell *shell
); void cc_shell_set_active_panel (CcShell *shell
,CcPanel *panel
); gboolean cc_shell_set_active_panel_from_id (CcShell *shell
,const gchar *id
,GError **error
);
CcShell is an abstract class that represents an instance of a control center shell. It provides access to some of the properties of the shell that panels will need to read or change. When a panel is created it has an instance of CcShell available that represents the current shell.
typedef struct { } CcShell;
The contents of this struct are private should not be accessed directly.
typedef struct { /* vfuncs */ gboolean (*set_active_panel_from_id) (CcShell *shell, const gchar *id, GError **error); } CcShellClass;
CcPanel* cc_shell_get_active_panel (CcShell *shell
);
Get the current active panel
void cc_shell_set_active_panel (CcShell *shell
,CcPanel *panel
);
Set the current active panel. If panel
is NULL, then the shell is returned
to a state where no panel is being displayed (for example, the list of panels
may be shown instead).
gboolean cc_shell_set_active_panel_from_id (CcShell *shell
,const gchar *id
,GError **error
);
Find a panel corresponding to the specified id and set it as active.
|
A CcShell |
|
the ID of the panel to set as active |
|
A GError |
Returns : |
TRUE if the panel was found and set as the active panel |