[nautilus/wip/antoniof/gtk4-preparation-drop-outgoing-api: 89/97] properties-window: Don't use gtk_window_set_icon()




commit b80d2f32346c371e948258f9939462fb669fc326
Author: António Fernandes <antoniof gnome org>
Date:   Tue Aug 10 20:26:02 2021 +0100

    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.

 src/nautilus-properties-window.c | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index c0bfdaa79..2b006a25e 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -462,10 +462,6 @@ update_properties_window_icon (NautilusPropertiesWindow *self)
     {
         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)),
                                                     gtk_widget_get_window (GTK_WIDGET (self)));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]