Re: [hatari-devel] Some minor changes for sdlgui.c |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: Hatari devel list <hatari-devel@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [hatari-devel] Some minor changes for sdlgui.c
- From: Andreas Grabher <andreas_g86@xxxxxxxxxx>
- Date: Sat, 20 Jul 2024 19:01:34 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1721494897; bh=dJnxx7H072ZCWM24IR9MHNbweO3k1hi99xYojbvi56s=; h=From:Content-Type:Mime-Version:Subject:Date:To:Message-Id; b=QdVHJDt7sKiFp1xFntlqfpAuuSveznAizzkXVBqlIC+s0ea9kEn4pcakZ5E86xnzm iZzTf7+WjeTZ6Qv5mVM+73oW59O6/jLTw0zFn2wQ3FzX2atSB65TzjIBwTeE2zHXDZ HhEnD7Fl92dikfNfLuzzZmCg3AQvxzJwzkN7CSNDq60lu3ns+Ab1RGG8qbmXirhugo a6esxAFY+1e3SAQAo/E4eR9qy6KPhE0FDokyE/45ZCQCzNTU8oSqvmFAVj4hl/eUuM ot8sUKamyUZ7es0IrqaMnbDmSvcR/r0j3mWGpMrk0Qh+iEt6KENN87IWXqCTLRM57W AoAYLjcDncQmA==
> Am 20.07.2024 um 18:39 schrieb Thomas Huth <th.huth@xxxxxxxxx>:
>
> Am Sat, 20 Jul 2024 18:11:08 +0200
> schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:
>
>>> Am 20.07.2024 um 15:45 schrieb Thomas Huth <th.huth@xxxxxxxxx>:
>>>
>>> Hi!
>>>
>>> Am Sat, 20 Jul 2024 08:15:18 +0200
>>> schrieb Andreas Grabher <andreas_g86@xxxxxxxxxx>:
>>>
>>>> I’d like to suggest this patch for Hatari that contains a few refinements:
>>>> Return object for checkbox and radiobutton. This makes it possible to easily determine which option was checked. I am using this for example for a mixed radiobutton and checkbox list in the GUI (see appended screenshot). If for example NeXTstation and Color are checked and one switches to NeXTcube I can uncheck the Color option. This can be done from switch(but) as for other buttons.
>>>
>>> Can't you simply use SG_EXIT for this case instead?
>>
>> I can confirm that SG_EXIT works if I set it for all radiobuttons and checkboxes in that dialog. But is this really what SG_EXIT is intended for?
>
> $ grep SG_EXIT src/includes/sdlgui.h
> #define SG_EXIT 2 /* Exit when mouse button has been pressed (and released) */
>
> ... so I'd say: yes, this is what it is intended for :-)
So I am using it the wrong way. ;-)
Obviously I misunderstood the purpose of SG_EXIT. I’ll change it when I get time. For now it works anyway.
>
> Thomas
>
Andreas