diff options
author | Alexander Larsson <alexl@redhat.com> | 2020-02-04 17:19:22 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2020-02-04 17:19:22 +0100 |
commit | 410541f82b920b4a3a7b699c3e7f9ba4b5f4ea0d (patch) | |
tree | c2d39dc8fac08821b5fee4e95ee7849e54ad32f3 /tests/testdnd2.c | |
parent | 138de60ab27691fc5022732566b21634e13d0c3a (diff) | |
download | gtk+-410541f82b920b4a3a7b699c3e7f9ba4b5f4ea0d.tar.gz |
Rename GtkIcon to GtkIconPaintable
Diffstat (limited to 'tests/testdnd2.c')
-rw-r--r-- | tests/testdnd2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testdnd2.c b/tests/testdnd2.c index 615964ac9e..dd375802b3 100644 --- a/tests/testdnd2.c +++ b/tests/testdnd2.c @@ -10,7 +10,7 @@ get_image_texture (GtkImage *image, int width = 48; GdkPaintable *paintable; GdkTexture *texture = NULL; - GtkIcon *icon; + GtkIconPaintable *icon; switch (gtk_image_get_storage_type (image)) { @@ -32,7 +32,7 @@ get_image_texture (GtkImage *image, gtk_widget_get_direction (GTK_WIDGET (image)), 0); if (icon) - texture = gtk_icon_download_texture (icon, NULL); + texture = gtk_icon_paintable_download_texture (icon, NULL); g_object_unref (icon); default: g_warning ("Image storage type %d not handled", @@ -229,7 +229,7 @@ update_source_icon (GtkDragSource *source, int hotspot) { GtkWidget *widget = gtk_event_controller_get_widget (GTK_EVENT_CONTROLLER (source)); - GtkIcon *icon; + GtkIconPaintable *icon; int hot_x, hot_y; int size = 48; |