properties-window: Don't use gtk_window_set_icon()

It's gone in GTK4.

Here it's used only as a fallback to a named icon.
Also, GNOME doesn't use window icons anyway.

So, just drop it to ease the port to GTK4.
This commit is contained in:
António Fernandes 2021-08-10 20:26:02 +01:00 committed by Ondrej Holy
parent 23279d5912
commit b80d2f3234

View file

@ -462,10 +462,6 @@ update_properties_window_icon (NautilusPropertiesWindow *self)
{ {
gtk_window_set_icon_name (GTK_WINDOW (self), name); gtk_window_set_icon_name (GTK_WINDOW (self), name);
} }
else
{
gtk_window_set_icon (GTK_WINDOW (self), pixbuf);
}
surface = gdk_cairo_surface_create_from_pixbuf (pixbuf, gtk_widget_get_scale_factor (GTK_WIDGET (self)), surface = gdk_cairo_surface_create_from_pixbuf (pixbuf, gtk_widget_get_scale_factor (GTK_WIDGET (self)),
gtk_widget_get_window (GTK_WIDGET (self))); gtk_widget_get_window (GTK_WIDGET (self)));