[nautilus/wip/antoniof/gtk4-preparation-drop-outgoing-api: 9/18] properties-window: Don't use gtk_window_set_icon()
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/antoniof/gtk4-preparation-drop-outgoing-api: 9/18] properties-window: Don't use gtk_window_set_icon()
- Date: Sun, 15 Aug 2021 20:21:16 +0000 (UTC)
commit b5765a9e2745a78ed2d2dd1c6ef7f2713c62a357
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]