summaryrefslogtreecommitdiffstats
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
authorDrew Vogel <dvogel@github>2024-05-22 16:51:53 +0200
committerChristian Brabandt <cb@256bit.org>2024-05-22 16:51:53 +0200
commit5090f838bbcd3a13433d9fe20a94f3ce6b796eb1 (patch)
treeb22ab7d1d863db2ce779b3d71b82e9a2c2331947 /src/gui_gtk_x11.c
parent802fc04a78a7d98673dc9171d4b89597447a5bda (diff)
patch 9.1.0432: Ancient XPM preprocessor hack may cause build errorsv9.1.0432
Problem: Ancient XPM preprocessor hack may cause build errors. Solution: Simplify XPM includes and get rid of complicated #ifdef magic (Drew Vogel). closes: #14816 Signed-off-by: Drew Vogel <dvogel@github> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r--src/gui_gtk_x11.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index 4d201fcaed..066aa17456 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -2704,23 +2704,9 @@ global_event_filter(GdkXEvent *xev,
static void
mainwin_realize(GtkWidget *widget UNUSED, gpointer data UNUSED)
{
-// If you get an error message here, you still need to unpack the runtime
-// archive!
-#ifdef magick
-# undef magick
-#endif
- // A bit hackish, but avoids casting later and allows optimization
-# define static static const
-#define magick vim32x32
#include "../runtime/vim32x32.xpm"
-#undef magick
-#define magick vim16x16
#include "../runtime/vim16x16.xpm"
-#undef magick
-#define magick vim48x48
#include "../runtime/vim48x48.xpm"
-#undef magick
-# undef static
GdkWindow * const mainwin_win = gtk_widget_get_window(gui.mainwin);