Title: [137602] trunk/Source/WebCore
Revision
137602
Author
[email protected]
Date
2012-12-13 09:13:59 -0800 (Thu, 13 Dec 2012)

Log Message

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

Patch by Claudio Saavedra <[email protected]> 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().

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (137601 => 137602)


--- trunk/Source/WebCore/ChangeLog	2012-12-13 17:13:49 UTC (rev 137601)
+++ trunk/Source/WebCore/ChangeLog	2012-12-13 17:13:59 UTC (rev 137602)
@@ -1,3 +1,16 @@
+2012-12-13  Claudio Saavedra  <[email protected]>
+
+        [GTK] Remove deprecated API usage
+        https://bugs.webkit.org/show_bug.cgi?id=104894
+
+        Reviewed by Martin Robinson.
+
+        Remove deprecated GTK+ API usage.
+
+        * platform/gtk/RenderThemeGtk3.cpp:
+        (WebCore::spinButtonArrowSize): Do not use deprecated
+        gtk_style_context_get_font().
+
 2012-12-13  Zeno Albisser  <[email protected]>
 
         [Qt] Remove temporary workaround from GraphicsSurfaceGLX constructor.

Modified: trunk/Source/WebCore/platform/gtk/RenderThemeGtk3.cpp (137601 => 137602)


--- trunk/Source/WebCore/platform/gtk/RenderThemeGtk3.cpp	2012-12-13 17:13:49 UTC (rev 137601)
+++ trunk/Source/WebCore/platform/gtk/RenderThemeGtk3.cpp	2012-12-13 17:13:59 UTC (rev 137602)
@@ -767,7 +767,8 @@
 
 static gint spinButtonArrowSize(GtkStyleContext* context)
 {
-    const PangoFontDescription* fontDescription = gtk_style_context_get_font(context, static_cast<GtkStateFlags>(0));
+    const PangoFontDescription* fontDescription;
+    gtk_style_context_get(context, static_cast<GtkStateFlags>(0), "font", &fontDescription, NULL);
     gint fontSize = pango_font_description_get_size(fontDescription);
     gint arrowSize = max(PANGO_PIXELS(fontSize), minSpinButtonArrowSize);
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to