patch 9.1.0437: Motif requires non-const char pointer for XPM data
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>
This commit is contained in:
committed by
Christian Brabandt
parent
789679cfc4
commit
742062f31f
@ -1,5 +1,5 @@
|
|||||||
/* XPM */
|
/* XPM */
|
||||||
static const char * vim16x16[] = {
|
static char * vim16x16[] = {
|
||||||
"16 16 8 1",
|
"16 16 8 1",
|
||||||
" c None",
|
" c None",
|
||||||
". c #000000",
|
". c #000000",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* XPM */
|
/* XPM */
|
||||||
static const char * vim32x32[] = {
|
static char * vim32x32[] = {
|
||||||
"32 32 8 1",
|
"32 32 8 1",
|
||||||
" c None",
|
" c None",
|
||||||
". c #000000",
|
". c #000000",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* XPM */
|
/* XPM */
|
||||||
static const char * vim48x48[] = {
|
static char * vim48x48[] = {
|
||||||
"48 48 8 1",
|
"48 48 8 1",
|
||||||
" c None",
|
" c None",
|
||||||
". c #000000",
|
". c #000000",
|
||||||
|
@ -2727,9 +2727,9 @@ mainwin_realize(GtkWidget *widget UNUSED, gpointer data UNUSED)
|
|||||||
*/
|
*/
|
||||||
GList *icons = NULL;
|
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((const char **)vim16x16));
|
||||||
icons = g_list_prepend(icons, gdk_pixbuf_new_from_xpm_data(vim32x32));
|
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(vim48x48));
|
icons = g_list_prepend(icons, gdk_pixbuf_new_from_xpm_data((const char **)vim48x48));
|
||||||
|
|
||||||
gtk_window_set_icon_list(GTK_WINDOW(gui.mainwin), icons);
|
gtk_window_set_icon_list(GTK_WINDOW(gui.mainwin), icons);
|
||||||
|
|
||||||
|
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
437,
|
||||||
/**/
|
/**/
|
||||||
436,
|
436,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user