Changeset 58097 in webkit


Ignore:
Timestamp:
Apr 22, 2010 8:36:42 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-22 Diego Escalante Urrelo <descalante@igalia.com>

Reviewed by Xan Lopez.

[GTK] Mute/unmute button on <video> elements are backwards
https://bugs.webkit.org/show_bug.cgi?id=33967

Fix mute/unmute buttons icons-action relation and explain why their
variable names and corresponding icons seem to be misleading but are
actually right. Original patch by Mike Hommey.

  • platform/gtk/RenderThemeGtk.cpp: (WebCore::RenderThemeGtk::initMediaStyling):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r58095 r58097  
     12010-04-22  Diego Escalante Urrelo  <descalante@igalia.com>
     2
     3        Reviewed by Xan Lopez.
     4
     5        [GTK] Mute/unmute button on <video> elements are backwards
     6        https://bugs.webkit.org/show_bug.cgi?id=33967
     7
     8        Fix mute/unmute buttons icons-action relation and explain why their
     9        variable names and corresponding icons seem to be misleading but are
     10        actually right. Original patch by Mike Hommey.
     11
     12        * platform/gtk/RenderThemeGtk.cpp:
     13        (WebCore::RenderThemeGtk::initMediaStyling):
     14
    1152010-04-22  Gustavo Sverzut Barbieri  <barbieri@profusion.mobi>
    216
  • trunk/WebCore/platform/gtk/RenderThemeGtk.cpp

    r56825 r58097  
    9393
    9494        m_fullscreenButton = Image::loadPlatformThemeIcon("gtk-fullscreen", m_mediaIconSize);
    95         m_muteButton = Image::loadPlatformThemeIcon("audio-volume-muted", m_mediaIconSize);
    96         m_unmuteButton = Image::loadPlatformThemeIcon("audio-volume-high", m_mediaIconSize);
     95        // Note that the muteButton and unmuteButton take icons reflecting
     96        // the *current* state. Hence, the unmuteButton represents the *muted*
     97        // status, the muteButton represents the then current *unmuted* status.
     98        m_muteButton = Image::loadPlatformThemeIcon("audio-volume-high", m_mediaIconSize);
     99        m_unmuteButton = Image::loadPlatformThemeIcon("audio-volume-muted", m_mediaIconSize);
    97100        m_playButton = Image::loadPlatformThemeIcon(reinterpret_cast<const char*>(playButtonIconName), m_mediaIconSize);
    98101        m_pauseButton = Image::loadPlatformThemeIcon("gtk-media-pause", m_mediaIconSize).releaseRef();
Note: See TracChangeset for help on using the changeset viewer.