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




commit a96762fc51bda8ac0b06dc8058c908b99b1a1841
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 a841eed97..2414c2f58 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]