[nautilus/wip/antoniof/gtk4-preparation-drop-outgoing-api: 40/49] 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: 40/49] properties-window: Don't use gtk_window_set_icon()
- Date: Sun, 15 Aug 2021 19:37:37 +0000 (UTC)
commit 18a667ced4c4fda407a5d9217ad61103428795d8
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]