diff options
-rw-r--r-- | docs/reference/gtk/gtk4-sections.txt | 1 | ||||
-rw-r--r-- | gtk/gtkicontheme.c | 18 | ||||
-rw-r--r-- | gtk/gtkicontheme.h | 3 |
3 files changed, 22 insertions, 0 deletions
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt index 7ec0bee4c7..eca66b8690 100644 --- a/docs/reference/gtk/gtk4-sections.txt +++ b/docs/reference/gtk/gtk4-sections.txt @@ -4928,6 +4928,7 @@ GTK_TYPE_ICON_LOOKUP_FLAGS GtkIconThemeError gtk_icon_theme_new gtk_icon_theme_get_for_display +gtk_icon_theme_get_display gtk_icon_theme_set_search_path gtk_icon_theme_get_search_path gtk_icon_theme_add_search_path diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 49d16d5ca5..cc0cfaa2c5 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -4136,3 +4136,21 @@ gtk_icon_theme_lookup_by_gicon (GtkIconTheme *self, return icon; } + +/** + * gtk_icon_theme_get_display: + * @self: a #GtkIconTheme + * + * Returns the display that the GtkIconTheme object was + * created for. + * + * Returns: (nullable) (transfer none): the display of @icon_theme + */ +GdkDisplay * +gtk_icon_theme_get_display (GtkIconTheme *self) +{ + g_return_val_if_fail (GTK_IS_ICON_THEME (self), NULL); + + return self->display; +} + diff --git a/gtk/gtkicontheme.h b/gtk/gtkicontheme.h index a423e03571..b5392682ae 100644 --- a/gtk/gtkicontheme.h +++ b/gtk/gtkicontheme.h @@ -87,6 +87,9 @@ GDK_AVAILABLE_IN_ALL GtkIconTheme *gtk_icon_theme_get_for_display (GdkDisplay *display); GDK_AVAILABLE_IN_ALL +GdkDisplay * gtk_icon_theme_get_display (GtkIconTheme *self); + +GDK_AVAILABLE_IN_ALL void gtk_icon_theme_set_search_path (GtkIconTheme *self, const char * const *path); GDK_AVAILABLE_IN_ALL |