diff options
author | Alexander Larsson <alexl@redhat.com> | 2020-01-28 15:43:51 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2020-01-30 10:53:43 +0100 |
commit | e2f778602b027572775ba58823b27509f7b3a589 (patch) | |
tree | c92eec6b66f0597be726106ac25bad9a9bb39312 /demos | |
parent | 6a15e9169d018a18fdaa481287d5facfd2b142f1 (diff) | |
download | gtk+-e2f778602b027572775ba58823b27509f7b3a589.tar.gz |
icon-theme: Rename GtkIconInfo to GtkIcon
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/clipboard.c | 2 | ||||
-rw-r--r-- | demos/gtk-demo/textview.c | 4 | ||||
-rw-r--r-- | demos/icon-browser/iconbrowserwin.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/demos/gtk-demo/clipboard.c b/demos/gtk-demo/clipboard.c index 6f817750d7..d851360616 100644 --- a/demos/gtk-demo/clipboard.c +++ b/demos/gtk-demo/clipboard.c @@ -98,7 +98,7 @@ get_image_paintable (GtkImage *image) { const gchar *icon_name; GtkIconTheme *icon_theme; - GtkIconInfo *icon_info; + GtkIcon *icon_info; switch (gtk_image_get_storage_type (image)) { diff --git a/demos/gtk-demo/textview.c b/demos/gtk-demo/textview.c index f55fa510e0..ba42ebcbc0 100644 --- a/demos/gtk-demo/textview.c +++ b/demos/gtk-demo/textview.c @@ -130,14 +130,14 @@ insert_text (GtkTextBuffer *buffer) GtkTextIter start, end; GdkTexture *texture; GtkIconTheme *icon_theme; - GtkIconInfo *icon; + GtkIcon *icon; icon_theme = gtk_icon_theme_get_default (); icon = gtk_icon_theme_lookup_icon (icon_theme, "gtk3-demo", 32, GTK_ICON_LOOKUP_GENERIC_FALLBACK); - texture = gtk_icon_info_download_texture (icon, NULL); + texture = gtk_icon_download_texture (icon, NULL); g_object_unref (icon); g_assert (texture); diff --git a/demos/icon-browser/iconbrowserwin.c b/demos/icon-browser/iconbrowserwin.c index 7532831573..2a55bc866d 100644 --- a/demos/icon-browser/iconbrowserwin.c +++ b/demos/icon-browser/iconbrowserwin.c @@ -348,7 +348,7 @@ get_image_paintable (GtkImage *image) { const gchar *icon_name; GtkIconTheme *icon_theme; - GtkIconInfo *icon_info; + GtkIcon *icon_info; int size; switch (gtk_image_get_storage_type (image)) @@ -405,13 +405,13 @@ get_file (GValue *value, gpointer data) { const char *name; - GtkIconInfo *info; + GtkIcon *info; GFile *file; name = gtk_image_get_icon_name (GTK_IMAGE (data)); info = gtk_icon_theme_lookup_icon (gtk_icon_theme_get_default (), name, -1, 0); - file = g_file_new_for_path (gtk_icon_info_get_filename (info)); + file = g_file_new_for_path (gtk_icon_get_filename (info)); g_value_set_object (value, file); g_object_unref (file); g_object_unref (info); |