summaryrefslogtreecommitdiffstats
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
authorDrew Vogel <dvogel@github>2024-05-23 17:49:39 +0200
committerChristian Brabandt <cb@256bit.org>2024-05-23 17:49:39 +0200
commit742062f31faca14ae479f4688a5ad8add5d5c120 (patch)
tree12f59f632314bb7f49ede81998b16b4a8a793b86 /src/gui_gtk_x11.c
parent789679cfc4f39505b135220672b43a260d8ca3b4 (diff)
patch 9.1.0437: Motif requires non-const char pointer for XPM datav9.1.0437
Problem: Motif requires non-const char pointer for XPM data shared with GTK (Tony Mechelynck, after v9.1.0432) Solution: Cast non-const to const char pointer for GTK (Drew Vogel). closes: #14834 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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index 066aa17456..67ee531b6f 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -2727,9 +2727,9 @@ mainwin_realize(GtkWidget *widget UNUSED, gpointer data UNUSED)
*/
GList *icons = NULL;
- icons = g_list_prepend(icons, gdk_pixbuf_new_from_xpm_data(vim16x16));
- icons = g_list_prepend(icons, gdk_pixbuf_new_from_xpm_data(vim32x32));
- icons = g_list_prepend(icons, gdk_pixbuf_new_from_xpm_data(vim48x48));
+ icons = g_list_prepend(icons, gdk_pixbuf_new_from_xpm_data((const char **)vim16x16));
+ icons = g_list_prepend(icons, gdk_pixbuf_new_from_xpm_data((const char **)vim32x32));
+ icons = g_list_prepend(icons, gdk_pixbuf_new_from_xpm_data((const char **)vim48x48));
gtk_window_set_icon_list(GTK_WINDOW(gui.mainwin), icons);