Changeset 259631 in webkit
- Timestamp:
- Apr 7, 2020 2:47:36 AM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r259630 r259631 1 2020-04-07 Claudio Saavedra <csaavedra@igalia.com> 2 3 [GTK] gtk_icon_info_free is deprecated since GTK+ 3.8 4 https://bugs.webkit.org/show_bug.cgi?id=118381 5 6 Reviewed by Carlos Garcia Campos. 7 8 GtkIconInfo is a GObject since 3.8, update accordingly. 9 10 * platform/graphics/gtk/ImageGtk.cpp: 11 (WebCore::loadMissingImageIconFromTheme): 12 * platform/gtk/GUniquePtrGtk.h: 13 1 14 2020-04-07 Doug Kelly <dougk@apple.com> 2 15 -
trunk/Source/WebCore/platform/graphics/gtk/ImageGtk.cpp
r246374 r259631 65 65 int iconSize = g_str_has_suffix(name, "@2x") ? 32 : 16; 66 66 auto icon = BitmapImage::create(); 67 G UniquePtr<GtkIconInfo> iconInfo(gtk_icon_theme_lookup_icon(gtk_icon_theme_get_default(), "image-missing", iconSize, GTK_ICON_LOOKUP_NO_SVG));67 GRefPtr<GtkIconInfo> iconInfo = adoptGRef(gtk_icon_theme_lookup_icon(gtk_icon_theme_get_default(), "image-missing", iconSize, GTK_ICON_LOOKUP_NO_SVG)); 68 68 if (iconInfo) { 69 69 auto buffer = loadResourceSharedBuffer(gtk_icon_info_get_filename(iconInfo.get())); -
trunk/Source/WebCore/platform/gtk/GUniquePtrGtk.h
r232390 r259631 27 27 28 28 WTF_DEFINE_GPTR_DELETER(GdkEvent, gdk_event_free) 29 WTF_DEFINE_GPTR_DELETER(GtkIconInfo, gtk_icon_info_free)30 29 WTF_DEFINE_GPTR_DELETER(GtkTreePath, gtk_tree_path_free) 31 30
Note: See TracChangeset
for help on using the changeset viewer.