Handle WindowEvents

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Handle WindowEvents

laza
Guys,

I want to push an update to the inbox that contains mostly the
changeset from [1] to also partly address [2].
I just commented out the message send handleDragOutside: from
handleEvent: and left the changeset intact otherwise.

After that you get a proper "Save changes before quitting?" dialog
when you try to close the window Squeak is running in. That is with
recent linux VMs in an X11 environment.

With older linux VMs the behavior should not change, so the window
just closes and Squeak terminates. In this case the changes in the
update should have no side effects.

I *think* on Windows you will still see the DialogBox from the VM when
you try to close the Squeak window. I faintly remember that it is
possible to have an entry in the Squeak .ini file which toggles if
WindowEvents will be generated by the VM or not. If you turn
WindowEvents on, you should also see the in image Dialog when you try
to close the Squeak window.

I *assume* the Mac VM also generates WindowEvents, so that the
behavior should be same as under linux.

Please let me know if you see any problems with that update.

Alex

[1] http://n4.nabble.com/squeak-dev-The-version-3-10-does-not-work-on-Linux-tp73723p73745.html
[2] http://bugs.squeak.org/view.php?id=7436

Reply | Threaded
Open this post in threaded view
|

Re: Handle WindowEvents

laza
On Wed, Mar 10, 2010 at 14:07, Alexander Lazarević <[hidden email]> wrote:
> I want to push an update to the inbox that contains mostly the

... to the trunk ...

Reply | Threaded
Open this post in threaded view
|

Re: Handle WindowEvents

Bert Freudenberg
In reply to this post by laza
On 10.03.2010, at 14:07, Alexander Lazarević wrote:

>
> Guys,
>
> I want to push an update to the inbox that contains mostly the
> changeset from [1] to also partly address [2].
> I just commented out the message send handleDragOutside: from
> handleEvent: and left the changeset intact otherwise.
>
> After that you get a proper "Save changes before quitting?" dialog
> when you try to close the window Squeak is running in. That is with
> recent linux VMs in an X11 environment.
>
> With older linux VMs the behavior should not change, so the window
> just closes and Squeak terminates. In this case the changes in the
> update should have no side effects.
>
> I *think* on Windows you will still see the DialogBox from the VM when
> you try to close the Squeak window. I faintly remember that it is
> possible to have an entry in the Squeak .ini file which toggles if
> WindowEvents will be generated by the VM or not. If you turn
> WindowEvents on, you should also see the in image Dialog when you try
> to close the Squeak window.
>
> I *assume* the Mac VM also generates WindowEvents, so that the
> behavior should be same as under linux.
>
> Please let me know if you see any problems with that update.
>
> Alex
>
> [1] http://n4.nabble.com/squeak-dev-The-version-3-10-does-not-work-on-Linux-tp73723p73745.html
> [2] http://bugs.squeak.org/view.php?id=7436
>

+1

- Bert -



Reply | Threaded
Open this post in threaded view
|

Re: Handle WindowEvents

laza
So here it goes

On Wed, Mar 10, 2010 at 14:37, Bert Freudenberg <[hidden email]> wrote:

> On 10.03.2010, at 14:07, Alexander Lazarević wrote:
>>
>> Guys,
>>
>> I want to push an update to the inbox that contains mostly the
>> changeset from [1] to also partly address [2].
>> I just commented out the message send handleDragOutside: from
>> handleEvent: and left the changeset intact otherwise.
>>
>> After that you get a proper "Save changes before quitting?" dialog
>> when you try to close the window Squeak is running in. That is with
>> recent linux VMs in an X11 environment.
>>
>> With older linux VMs the behavior should not change, so the window
>> just closes and Squeak terminates. In this case the changes in the
>> update should have no side effects.
>>
>> I *think* on Windows you will still see the DialogBox from the VM when
>> you try to close the Squeak window. I faintly remember that it is
>> possible to have an entry in the Squeak .ini file which toggles if
>> WindowEvents will be generated by the VM or not. If you turn
>> WindowEvents on, you should also see the in image Dialog when you try
>> to close the Squeak window.
>>
>> I *assume* the Mac VM also generates WindowEvents, so that the
>> behavior should be same as under linux.
>>
>> Please let me know if you see any problems with that update.
>>
>> Alex
>>
>> [1] http://n4.nabble.com/squeak-dev-The-version-3-10-does-not-work-on-Linux-tp73723p73745.html
>> [2] http://bugs.squeak.org/view.php?id=7436
>>
>
> +1
>
> - Bert -
>
>
>
>