[Vm-dev] [Pharo-dev] Change Pharo window icon

Eliot Miranda eliot.miranda at gmail.com
Sat Apr 14 00:24:38 UTC 2018


On Fri, Apr 13, 2018 at 5:23 PM, Eliot Miranda <eliot.miranda at gmail.com>
wrote:

> Hi Vincent,
>     I've replied to the vm-dev list (Open Smalltalk Virtual Machine
> Development Discussion <vm-dev at lists.squeakfoundation.org>).  For some
> reason your post went to vm-dev-bounces at lists.squeakfoundation.org.
>
> On Fri, Apr 13, 2018 at 4:45 PM, <Vincent.Blondeau at lamresearch.com> wrote:
>
>> Hi,
>>
>>
>>
>> In the way to change dynamically the icon of the main window, I am adding
>> a primitive in the HostWindow VM Plugin.
>>
>> So, I implemented the primitive call on Pharo side:
>> https://github.com/pharo-project/pharo/pull/1198
>>
>> Modified the C plugin file: https://github.com/OpenSmallta
>> lk/opensmalltalk-vm/pull/248 (only the windows version for now)
>>
>
> Be careful.  Unless you add stub definitions to unix and iOS files you may
> end up breaking the build.  Have you tested the build on iOS and a linux?
>

I looked.  You did the right thing (of course).  Forgive me!


>
>
>> And implemented the binding in VMMaker, and I would commit this last one.
>>
>> However, I do not have the write access to http://source.squeak.org/VMMak
>> er. Could someone grant me to it?
>>
>
> +1.  I'd like Vincent to be a committer.
>
>
>>
>>
>> Thanks in advance,
>>
>> Vincent
>>
>>
>>
>> *From:* Blondeau, Vincent
>> *Sent:* Tuesday, February 6, 2018 18:36
>> *To:* Pharo Development List <pharo-dev at lists.pharo.org>
>> *Subject:* RE: [Pharo-dev] Change Pharo window icon
>>
>>
>>
>> Hi,
>>
>>
>>
>> The fact that he mentioned an ability to change window's title from
>> inside of the running image suggested me that he actually wants to change
>> an icon at runtime too.
>>
>>
>>
>> Indeed, that is what I would like to do.
>>
>>
>>
>> Cheers,
>>
>> Vincent
>>
>>
>>
>> *From:* Pharo-dev [mailto:pharo-dev-bounces at lists.pharo.org
>> <pharo-dev-bounces at lists.pharo.org>] *On Behalf Of *Aliaksei Syrel
>> *Sent:* Saturday, February 3, 2018 8:09
>> *To:* Pharo Development List <pharo-dev at lists.pharo.org>
>> *Subject:* Re: [Pharo-dev] Change Pharo window icon
>>
>>
>>
>> Hi Eliot,
>>
>>
>>
>> I thought Vincent wants to change Pharo main window icon (image).
>>
>> I would like to know how to change the main Pharo window icon.
>>
>>
>>
>> The fact that he mentioned an ability to change window's title from
>> inside of the running image suggested me that he actually wants to change
>> an icon at runtime too.
>>
>> DisplayScreen class  >> primitiveWindowTitle:string:
>>
>>
>>
>> I may be wrong :) But in any case it would be nice to be able to change
>> window icon from the image.
>>
>>
>> Cheers,
>>
>> Alex
>>
>>
>>
>> On 3 February 2018 at 17:01, Eliot Miranda <eliot.miranda at gmail.com>
>> wrote:
>>
>> Hi Aliaksei,
>>
>> On Feb 3, 2018, at 4:30 AM, Aliaksei Syrel <alex.syrel at gmail.com> wrote:
>>
>> Hi
>>
>>
>>
>> Since Pharo uses sdl2 (or should use)
>>
>> https://wiki.libsdl.org/SDL_SetWindowIcon
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.libsdl.org_SDL-5FSetWindowIcon&d=DwMFaQ&c=RWI7EqL8K9lqtga8KxgfzvOYoob76EZWE0yAO85PVMQ&r=kIZIYXBAA3fhM7P5HOuTC5w6mnEApTfXPTq3lR34ZiY&m=l_zmsWuiNTZnwaqnFoVWP5ND2EpDg5f0AKqxxWuemDc&s=BquvgGPDy_24-w_Ilvxs0hadxiqEJ341IaRCJSoJPNM&e=>
>>
>>
>>
>> Hang on.  Changing a window's icon is not at all the same as changing the
>> VM's icon.  Which are we talking about here?  I thought we were talking
>> about changing the VM icon.
>>
>>
>>
>>
>>
>> Alex
>>
>>
>>
>>
>>
>
>
>
> --
> _,,,^..^,,,_
> best, Eliot
>



-- 
_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180413/d9a2d249/attachment.html>


More information about the Vm-dev mailing list