Changeset 137602 in webkit


Ignore:
Timestamp:
Dec 13, 2012 9:13:59 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Remove deprecated API usage
https://bugs.webkit.org/show_bug.cgi?id=104894

Patch by Claudio Saavedra <Claudio Saavedra> on 2012-12-13
Reviewed by Martin Robinson.

Remove deprecated GTK+ API usage.

  • platform/gtk/RenderThemeGtk3.cpp:

(WebCore::spinButtonArrowSize): Do not use deprecated
gtk_style_context_get_font().

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r137600 r137602  
     12012-12-13  Claudio Saavedra  <csaavedra@igalia.com>
     2
     3        [GTK] Remove deprecated API usage
     4        https://bugs.webkit.org/show_bug.cgi?id=104894
     5
     6        Reviewed by Martin Robinson.
     7
     8        Remove deprecated GTK+ API usage.
     9
     10        * platform/gtk/RenderThemeGtk3.cpp:
     11        (WebCore::spinButtonArrowSize): Do not use deprecated
     12        gtk_style_context_get_font().
     13
    1142012-12-13  Zeno Albisser  <zeno@webkit.org>
    215
  • trunk/Source/WebCore/platform/gtk/RenderThemeGtk3.cpp

    r130612 r137602  
    768768static gint spinButtonArrowSize(GtkStyleContext* context)
    769769{
    770     const PangoFontDescription* fontDescription = gtk_style_context_get_font(context, static_cast<GtkStateFlags>(0));
     770    const PangoFontDescription* fontDescription;
     771    gtk_style_context_get(context, static_cast<GtkStateFlags>(0), "font", &fontDescription, NULL);
    771772    gint fontSize = pango_font_description_get_size(fontDescription);
    772773    gint arrowSize = max(PANGO_PIXELS(fontSize), minSpinButtonArrowSize);
Note: See TracChangeset for help on using the changeset viewer.