summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2012-05-08 18:47:13 +0200
committerFlorian Müllner <fmuellner@gnome.org>2012-05-18 18:48:37 +0200
commit6827068ade00ec04e1895c772513667b6d6a1bdb (patch)
tree76a932acfec375c2e05f1df20e28ad29eb1b505f
parent78717031db90c42221a7dce1f20762b9d8b8103c (diff)
downloadgnome-control-center-6827068ade00ec04e1895c772513667b6d6a1bdb.tar.gz
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
-rw-r--r--shell/cc-panel.c11
-rw-r--r--shell/cc-panel.h3
2 files changed, 14 insertions, 0 deletions
diff --git a/shell/cc-panel.c b/shell/cc-panel.c
index 1f1d2b81b..fd2617cf2 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 1666b516e..48979c6b6 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 */