cc-panel: Add get_help_uri() vfunc

We want to allow panels to point to a specific help page, so add
a vfunc for that.

https://bugzilla.gnome.org/show_bug.cgi?id=675471
This commit is contained in:
Florian Müllner
2012-05-08 18:47:13 +02:00
parent 78717031db
commit 6827068ade
2 changed files with 14 additions and 0 deletions

View File

@@ -246,3 +246,14 @@ cc_panel_get_permission (CcPanel *panel)
return NULL;
}
const char *
cc_panel_get_help_uri (CcPanel *panel)
{
CcPanelClass *class = CC_PANEL_GET_CLASS (panel);
if (class->get_help_uri)
return class->get_help_uri (panel);
return NULL;
}

View File

@@ -68,6 +68,7 @@ struct _CcPanelClass
GtkBinClass parent_class;
GPermission * (* get_permission) (CcPanel *panel);
const char * (* get_help_uri) (CcPanel *panel);
};
GType cc_panel_get_type (void);
@@ -76,6 +77,8 @@ CcShell* cc_panel_get_shell (CcPanel *panel);
GPermission *cc_panel_get_permission (CcPanel *panel);
const char *cc_panel_get_help_uri (CcPanel *panel);
G_END_DECLS
#endif /* __CC_PANEL_H */