From e7d20cf352688bf717a01f4e6d9e6f497c2bea4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 20 Sep 2025 19:19:34 +0200 Subject: New upstream version 5.3.1Beta2 --- app/wlib/gtklib/button.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/wlib/gtklib/button.c') diff --git a/app/wlib/gtklib/button.c b/app/wlib/gtklib/button.c index 7193b11..c337f46 100644 --- a/app/wlib/gtklib/button.c +++ b/app/wlib/gtklib/button.c @@ -33,6 +33,7 @@ #include "gtkint.h" #include "i18n.h" +#include "assert.h" #define MIN_BUTTON_WIDTH (80) @@ -97,7 +98,11 @@ void wlibSetLabel( bm = (wIcon_p)labelStr; if (bm->gtkIconType == gtkIcon_pixmap) { - pixbuf = gdk_pixbuf_new_from_xpm_data((const char**)bm->bits); + // check gdk_pixbuf header + assert ( *(int*)bm->bits == 0x47646b50 || + *(int*)bm->bits == 0x506b6447 ); + pixbuf = gdk_pixbuf_new_from_inline( -1, bm->bits, FALSE, NULL ); + } else { pixbuf = wlibPixbufFromXBM( bm ); } -- cgit v1.2.3