History log of /haiku/src/apps/mediaplayer/interface/PositionToolTip.cpp
Revision Date Author Comments
# 296120e0 03-Aug-2018 Murai Takashi <tmurai01@gmail.com>

MediaPlayer: Fix -Werror=format-truncation=

Increase size of text[], since snprintf() write to it max 66 bytes.
(sizeof(positionText)-1 + sizeof(" / ") + sizeof(durationText)-1 + 1 = 66)
Pointed out by gcc8.

Change-Id: Ic6ce221edb4ceff4b63c7b30d26c52d613cbb35e
Reviewed-on: https://review.haiku-os.org/779
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 054c8166 09-Jan-2016 looncraz <looncraz@looncraz.net>

MediaPlayer PositionToolTip Color

Previously the layout would crush the default colors of BStringView preventing
BStringView from calling AdoptParentColors() on its own, so we must call it
manually.

In addition, the default tooltip view should fully adopt tooltip colors so
that any colors will default to the desired foreground color (which is the
same as the tooltip text color).

Fixes #12573.

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>


# 4e57cee5 08-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Added DurationView, defaulting to show the time remaining to finish.
* Added DurationToString to support code, used by the PositionToolTip
as well now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38588 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 123bb4d5 28-Oct-2009 Axel Dörfler <axeld@pinc-software.de>

* Added a position tool tip to the seek slider.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33816 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4e57cee58b41e295d8b3a789f800b867575c8c17 08-Sep-2010 Stephan Aßmus <superstippi@gmx.de>

* Added DurationView, defaulting to show the time remaining to finish.
* Added DurationToString to support code, used by the PositionToolTip
as well now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38588 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 123bb4d5fd4a1159c0beb21c936a88205cf42326 28-Oct-2009 Axel Dörfler <axeld@pinc-software.de>

* Added a position tool tip to the seek slider.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33816 a95241bf-73f2-0310-859d-f6bbb57e9c96