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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user