Changeset 259631 in webkit


Ignore:
Timestamp:
Apr 7, 2020 2:47:36 AM (4 years ago)
Author:
Claudio Saavedra
Message:

[GTK] gtk_icon_info_free is deprecated since GTK+ 3.8
https://bugs.webkit.org/show_bug.cgi?id=118381

Reviewed by Carlos Garcia Campos.

GtkIconInfo is a GObject since 3.8, update accordingly.

  • platform/graphics/gtk/ImageGtk.cpp:

(WebCore::loadMissingImageIconFromTheme):

  • platform/gtk/GUniquePtrGtk.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r259630 r259631  
     12020-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
    1142020-04-07  Doug Kelly  <dougk@apple.com>
    215
  • trunk/Source/WebCore/platform/graphics/gtk/ImageGtk.cpp

    r246374 r259631  
    6565    int iconSize = g_str_has_suffix(name, "@2x") ? 32 : 16;
    6666    auto icon = BitmapImage::create();
    67     GUniquePtr<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));
    6868    if (iconInfo) {
    6969        auto buffer = loadResourceSharedBuffer(gtk_icon_info_get_filename(iconInfo.get()));
  • trunk/Source/WebCore/platform/gtk/GUniquePtrGtk.h

    r232390 r259631  
    2727
    2828WTF_DEFINE_GPTR_DELETER(GdkEvent, gdk_event_free)
    29 WTF_DEFINE_GPTR_DELETER(GtkIconInfo, gtk_icon_info_free)
    3029WTF_DEFINE_GPTR_DELETER(GtkTreePath, gtk_tree_path_free)
    3130
Note: See TracChangeset for help on using the changeset viewer.