diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-02-18 00:56:37 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-02-18 20:32:17 -0500 |
commit | 66307f00f141ab84d38edfff2da80e7df430ce58 (patch) | |
tree | 8e604c130b2bfafb3b0896eb6b0cb59ef9f421bb /gtk/gtkicontheme.h | |
parent | db1ca92790455843cbe6a92e729eabce02fe59a3 (diff) | |
download | gtk+-66307f00f141ab84d38edfff2da80e7df430ce58.tar.gz |
icontheme: Update the api
Add properties, and use string arrays instead of lists.
Among other things, this renames gtk_icon_theme_list_icons
to gtk_icon_theme_get_icon_names.
Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/2410
Diffstat (limited to 'gtk/gtkicontheme.h')
-rw-r--r-- | gtk/gtkicontheme.h | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/gtk/gtkicontheme.h b/gtk/gtkicontheme.h index 86d22dc05c..d40a090827 100644 --- a/gtk/gtkicontheme.h +++ b/gtk/gtkicontheme.h @@ -85,32 +85,30 @@ GDK_AVAILABLE_IN_ALL GtkIconTheme *gtk_icon_theme_new (void); GDK_AVAILABLE_IN_ALL GtkIconTheme *gtk_icon_theme_get_for_display (GdkDisplay *display); -GDK_AVAILABLE_IN_ALL -void gtk_icon_theme_set_display (GtkIconTheme *self, - GdkDisplay *display); GDK_AVAILABLE_IN_ALL void gtk_icon_theme_set_search_path (GtkIconTheme *self, - const gchar *path[], - gint n_elements); -GDK_AVAILABLE_IN_ALL -void gtk_icon_theme_get_search_path (GtkIconTheme *self, - gchar **path[], - gint *n_elements); + const char * const *path); GDK_AVAILABLE_IN_ALL -void gtk_icon_theme_append_search_path (GtkIconTheme *self, - const gchar *path); +char ** gtk_icon_theme_get_search_path (GtkIconTheme *self); GDK_AVAILABLE_IN_ALL -void gtk_icon_theme_prepend_search_path (GtkIconTheme *self, - const gchar *path); +void gtk_icon_theme_add_search_path (GtkIconTheme *self, + const char *path); GDK_AVAILABLE_IN_ALL +void gtk_icon_theme_set_resource_path (GtkIconTheme *self, + const char * const *path); +GDK_AVAILABLE_IN_ALL +char ** gtk_icon_theme_get_resource_path (GtkIconTheme *self); +GDK_AVAILABLE_IN_ALL void gtk_icon_theme_add_resource_path (GtkIconTheme *self, - const gchar *path); + const char *path); GDK_AVAILABLE_IN_ALL -void gtk_icon_theme_set_custom_theme (GtkIconTheme *self, - const gchar *theme_name); +void gtk_icon_theme_set_theme_name (GtkIconTheme *self, + const char *theme_name); +GDK_AVAILABLE_IN_ALL +char * gtk_icon_theme_get_theme_name (GtkIconTheme *self); GDK_AVAILABLE_IN_ALL gboolean gtk_icon_theme_has_icon (GtkIconTheme *self, @@ -138,7 +136,7 @@ GtkIconPaintable *gtk_icon_paintable_new_for_file (GFile gint size, gint scale); GDK_AVAILABLE_IN_ALL -GList * gtk_icon_theme_list_icons (GtkIconTheme *self); +char ** gtk_icon_theme_get_icon_names (GtkIconTheme *self); GDK_AVAILABLE_IN_ALL GType gtk_icon_paintable_get_type (void) G_GNUC_CONST; |