[gtk+] Document gtk_icon_theme_add_resource_path
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Document gtk_icon_theme_add_resource_path
- Date: Fri, 20 Jun 2014 05:26:46 +0000 (UTC)
commit 988b6b483dc9c21d050161d26652bb1006b9c686
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jun 20 00:46:09 2014 -0400
Document gtk_icon_theme_add_resource_path
docs/reference/gtk/gtk3-sections.txt | 1 +
gtk/gtkicontheme.c | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt
index 5896a79..5111caa 100644
--- a/docs/reference/gtk/gtk3-sections.txt
+++ b/docs/reference/gtk/gtk3-sections.txt
@@ -6695,6 +6695,7 @@ gtk_icon_theme_set_search_path
gtk_icon_theme_get_search_path
gtk_icon_theme_append_search_path
gtk_icon_theme_prepend_search_path
+gtk_icon_theme_add_resource_path
gtk_icon_theme_set_custom_theme
gtk_icon_theme_has_icon
gtk_icon_theme_lookup_icon
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index d0c1d08..c23b300 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -1000,6 +1000,22 @@ gtk_icon_theme_prepend_search_path (GtkIconTheme *icon_theme,
do_theme_change (icon_theme);
}
+/**
+ * gtk_icon_theme_add_resource_path:
+ * @icon_theme: a #GtkIconTheme
+ * @path: a resource path
+ *
+ * Adds a resource path that will be looked at when looking
+ * for icon theme contents, similar to search paths. The resources
+ * should be located in a subdirectory starting with the theme name,
+ * like this:
+ * ` path/hicolor/16x16/actions/run.png`.
+ *
+ * This function should be used to make application-specific icons
+ * available as part of the icon theme.
+ *
+ * Since: 3.14
+ */
void
gtk_icon_theme_add_resource_path (GtkIconTheme *icon_theme,
const gchar *path)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]