Patch 8.2.1645
Problem: GTK3: icons become broken images when resized.
Solution: Use gtk_image_new_from_icon_name(). (closes #6916)
Fix compiler warnings.
Files: src/gui_gtk_x11.c
*** ../vim-8.2.1644/src/gui_gtk_x11.c 2020-08-01 13:10:04.582539553 +0200
--- src/gui_gtk_x11.c 2020-09-09 19:02:37.124675147 +0200
***************
*** 2555,2561 ****
gtk_window_set_icon_list(GTK_WINDOW(gui.mainwin), icons);
! g_list_foreach(icons, (GFunc)&g_object_unref, NULL);
g_list_free(icons);
}
--- 2555,2562 ----
gtk_window_set_icon_list(GTK_WINDOW(gui.mainwin), icons);
! // TODO: is this type cast OK?
! g_list_foreach(icons, (GFunc)(void *)&g_object_unref, NULL);
g_list_free(icons);
}
***************
*** 3092,3099 ****
const gchar *icon_name;
gtk_image_get_icon_name(image, &icon_name, NULL);
!
! gtk_image_set_from_icon_name(image, icon_name, icon_size);
}
# else
// User-defined icons are stored in a GtkIconSet
--- 3093,3100 ----
const gchar *icon_name;
gtk_image_get_icon_name(image, &icon_name, NULL);
! image = (GtkImage *)gtk_image_new_from_icon_name(
! icon_name, icon_size);
}
# else
// User-defined icons are stored in a GtkIconSet
***************
*** 4967,4973 ****
}
}
! g_list_foreach(item_list, (GFunc)&pango_item_free, NULL);
g_list_free(item_list);
pango_attr_list_unref(attr_list);
}
--- 4968,4975 ----
}
}
! // TODO: is this type cast OK?
! g_list_foreach(item_list, (GFunc)(void *)&pango_item_free, NULL);
g_list_free(item_list);
pango_attr_list_unref(attr_list);
}
*** ../vim-8.2.1644/src/version.c 2020-09-09 18:54:39.170253618 +0200
--- src/version.c 2020-09-09 19:04:55.388229847 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1645,
/**/
--
Compilation process failed successfully.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202009091706.089H6Z1o392960%40masaka.moolenaar.net.