Add a cc_panel_get_permission method
This is in preparation for moving lock buttons to the toolbar. https://bugzilla.gnome.org/show_bug.cgi?id=650292
This commit is contained in:
parent
13a08f4994
commit
9cdd557eca
2 changed files with 13 additions and 0 deletions
|
@ -221,3 +221,13 @@ cc_panel_get_shell (CcPanel *panel)
|
|||
return panel->priv->shell;
|
||||
}
|
||||
|
||||
GPermission *
|
||||
cc_panel_get_permission (CcPanel *panel)
|
||||
{
|
||||
CcPanelClass *class = CC_PANEL_GET_CLASS (panel);
|
||||
|
||||
if (class->get_permission)
|
||||
return class->get_permission (panel);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -66,12 +66,15 @@ struct _CcPanelClass
|
|||
{
|
||||
/*< private >*/
|
||||
GtkBinClass parent_class;
|
||||
|
||||
GPermission * (* get_permission) (CcPanel *panel);
|
||||
};
|
||||
|
||||
GType cc_panel_get_type (void);
|
||||
|
||||
CcShell* cc_panel_get_shell (CcPanel *panel);
|
||||
|
||||
GPermission *cc_panel_get_permission (CcPanel *panel);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue