[gnome-control-center] cc-panel: Add get_help_uri() vfunc
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] cc-panel: Add get_help_uri() vfunc
- Date: Fri, 18 May 2012 16:49:21 +0000 (UTC)
commit 6827068ade00ec04e1895c772513667b6d6a1bdb
Author: Florian MÃllner <fmuellner gnome org>
Date: Tue May 8 18:47:13 2012 +0200
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
shell/cc-panel.c | 11 +++++++++++
shell/cc-panel.h | 3 +++
2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/shell/cc-panel.c b/shell/cc-panel.c
index 1f1d2b8..fd2617c 100644
--- a/shell/cc-panel.c
+++ b/shell/cc-panel.c
@@ -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;
+}
diff --git a/shell/cc-panel.h b/shell/cc-panel.h
index 1666b51..48979c6 100644
--- a/shell/cc-panel.h
+++ b/shell/cc-panel.h
@@ -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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]