From c8ae4f3b18f07c7567d897c32e31b2b510214463 Mon Sep 17 00:00:00 2001 From: deepend Date: Wed, 25 Feb 2026 23:36:01 -0700 Subject: [PATCH] Removed the unused gtkutil_menu_icon_pixbuf_new helper from src/fe-gtk/gtkutil.c (it no longer appears between the surrounding menu icon helper and stock-icon mapping functions). Kept gtkutil_menu_icon_image_new as the single menu-icon loading path, which already contains the requested theme variant selection and light-variant fallback behavior for both PNG and SVG assets. --- src/fe-gtk/gtkutil.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/fe-gtk/gtkutil.c b/src/fe-gtk/gtkutil.c index a10a7c05..9d92c256 100644 --- a/src/fe-gtk/gtkutil.c +++ b/src/fe-gtk/gtkutil.c @@ -163,28 +163,6 @@ gtkutil_menu_custom_icon_from_icon_name (const char *icon_name) } -static GdkPixbuf * -gtkutil_menu_icon_pixbuf_new (const char *icon_name) -{ - GdkPixbuf *pixbuf = NULL; - char *resource_path; - - if (!icon_name || !g_str_has_prefix (icon_name, "zc-menu-")) - return NULL; - - resource_path = g_strdup_printf ("/icons/menu/light/%s.png", icon_name + strlen ("zc-menu-")); - pixbuf = gdk_pixbuf_new_from_resource (resource_path, NULL); - if (!pixbuf) - { - g_free (resource_path); - resource_path = g_strdup_printf ("/icons/menu/light/%s.svg", icon_name + strlen ("zc-menu-")); - pixbuf = gdk_pixbuf_new_from_resource (resource_path, NULL); - } - g_free (resource_path); - - return pixbuf; -} - const char * gtkutil_icon_name_from_stock (const char *stock_name) {