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:
Matthias Clasen 2011-05-20 21:24:43 -04:00 committed by Bastien Nocera
parent 13a08f4994
commit 9cdd557eca
2 changed files with 13 additions and 0 deletions

View file

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

View file

@ -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