diff options
author | Ernestas Kulik <ernestask@gnome.org> | 2018-07-05 13:50:09 +0300 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2021-08-15 21:21:07 +0100 |
commit | f6dcd0d5931f876c3775ca43598a8c2deb8d2253 (patch) | |
tree | f2e8802c18e5a70d3431093b11d615eb0f043356 | |
parent | 5427342d0fe01f3969f6c14669eaedc1581320f8 (diff) | |
download | nautilus-wip/antoniof/gtk4-preparation-drop-outgoing-api.tar.gz |
properties-window: Drop uses of GDK Cairo interaction APIwip/antoniof/gtk4-preparation-drop-outgoing-api
In preparation for porting to GTK4.
-rw-r--r-- | src/nautilus-properties-window.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c index 2414c2f58..6b767b659 100644 --- a/src/nautilus-properties-window.c +++ b/src/nautilus-properties-window.c @@ -453,7 +453,6 @@ static void update_properties_window_icon (NautilusPropertiesWindow *self) { g_autoptr (GdkPixbuf) pixbuf = NULL; - cairo_surface_t *surface; g_autofree char *name = NULL; get_image_for_properties_window (self, &name, &pixbuf); @@ -463,12 +462,8 @@ update_properties_window_icon (NautilusPropertiesWindow *self) gtk_window_set_icon_name (GTK_WINDOW (self), name); } - surface = gdk_cairo_surface_create_from_pixbuf (pixbuf, gtk_widget_get_scale_factor (GTK_WIDGET (self)), - gtk_widget_get_window (GTK_WIDGET (self))); - gtk_image_set_from_surface (GTK_IMAGE (self->icon_image), surface); - gtk_image_set_from_surface (GTK_IMAGE (self->icon_button_image), surface); - - cairo_surface_destroy (surface); + gtk_image_set_from_pixbuf (GTK_IMAGE (self->icon_image), pixbuf); + gtk_image_set_from_pixbuf (GTK_IMAGE (self->icon_button_image), pixbuf); } /* utility to test if a uri refers to a local image */ |