Changeset 172896 in webkit


Ignore:
Timestamp:
Aug 24, 2014 3:07:29 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Toggle buttons visually broken with GTK+ 3.13.7
https://bugs.webkit.org/show_bug.cgi?id=136130

Patch by Michael Catanzaro <Michael Catanzaro> on 2014-08-24
Reviewed by Martin Robinson.

No new tests. Hopefully covered by existing tests, and our tests only
run with GTK+ 3.6 anyway.

  • platform/gtk/RenderThemeGtk3.cpp:

(WebCore::paintToggle): use GTK_STATE_FLAG_CHECKED when compiling for
GTK+ 3.13.7 and above to ensure toggle buttons display as toggled.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r172890 r172896  
     12014-08-24  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [GTK] Toggle buttons visually broken with GTK+ 3.13.7
     4        https://bugs.webkit.org/show_bug.cgi?id=136130
     5
     6        Reviewed by Martin Robinson.
     7
     8        No new tests. Hopefully covered by existing tests, and our tests only
     9        run with GTK+ 3.6 anyway.
     10
     11        * platform/gtk/RenderThemeGtk3.cpp:
     12        (WebCore::paintToggle): use GTK_STATE_FLAG_CHECKED when compiling for
     13        GTK+ 3.13.7 and above to ensure toggle buttons display as toggled.
     14
    1152014-08-23  Brady Eidson  <beidson@apple.com>
    216
  • trunk/Source/WebCore/platform/gtk/RenderThemeGtk3.cpp

    r170435 r172896  
    254254        flags |= GTK_STATE_FLAG_INCONSISTENT;
    255255    else if (theme->isChecked(renderObject))
     256#if GTK_CHECK_VERSION(3, 13, 7)
     257        flags |= GTK_STATE_FLAG_CHECKED;
     258#else
    256259        flags |= GTK_STATE_FLAG_ACTIVE;
     260#endif
    257261    if (theme->isPressed(renderObject))
    258262        flags |= GTK_STATE_FLAG_SELECTED;
Note: See TracChangeset for help on using the changeset viewer.