[vlc-devel] [Patch] fix for VolumeBar in Toolbar, compatible to wxwidgets 2.8 (git master)

Dominique Leuenberger dominique at leuenberger.net
Sun Apr 6 16:53:09 CEST 2008



Quoting Pierre d'Herbemont <pdherbemont at free.fr>:

> Hi Dominique,
>
> Thanks for your patches. That would be nice to send them using git-
> format-patch so you can retain the patches ownership in git history.
>
> http://wiki.videolan.org/Git#Submitting_patches_to_the_vlc-devel
>
> Pierre.
>

Attached here now the patch for the VolumeBar for git master... patch  
created with git. (git-email-send seems not to work here)

Hope it fits everything.

Dominique

>
> On Apr 6, 2008, at 1:59 PM, Dominique Leuenberger wrote:
>> Hi,
>>
>> As you know, when compiling vlc 0.8.6 and also 0.9.0 against
>> wxwidgets 2.8, the volume bar and the speaker icon in the toolbar
>> are mis-aligned.
>>
>> Together with the wxwidgets team we found that there seems to be a
>> problem when positioning custom controls in the toolbar. The
>> solution was to get rid of the customn control (which was just a
>> combination of a bmp tool and a wxGauge) and put the two objects
>> independent in the toolbar.
>>
>> There patch strips out the VLCVolCtrl Class (no longer needed) and
>> places a bmp tool and a wxSlider in the Toolbar (I replaced the
>> wxGauge; wxSlider is actually more what correct for this use case,
>> and in plus, wxGauge does not have any Events, as it's meant as an
>> 'output' only.
>>
>> When the slider is moved completely to the left, the speaker bmp is
>> changed to speaker_mute_xpm.
>>
>> The patch is for 0.8.6f, I'll work on a patch for 0.9.0 today.. I
>> assume there should not be much differences, considering the fact
>> that not much changes were done on wxwidgets for 0.9.0, due to
>> missing maintainer.
>>
>> Maybe this patch could go in a upcoming 0.8.6x version tree (should
>> there be any). (I did not yet test the patch against wxwidgets 2.6,
>> but considering that there are only standard widgets used, this
>> should not be to much of an issue, (praying for it)
>>
>> Dominique<vlc-0.8.6f-
>> wxGTK28.diff>_______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> http://mailman.videolan.org/listinfo/vlc-devel
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-removed-VLCVolCtrl-class-replaced-wxGauge-with-wxSl.patch
Type: text/x-patch
Size: 9758 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080406/96f190fe/attachment.bin>


More information about the vlc-devel mailing list