[prev in list] [next in list] [prev in thread] [next in thread]
List: haiku-bugs
Subject: [Haiku-bugs] [Haiku] #3493: Wrong BView scripting properties
From: "matjako" <trac () haiku-os ! org>
Date: 2009-02-27 18:16:13
Message-ID: 042.277d5a21d76c3d9280e63ac10d95a86e () haiku-os ! org
[Download RAW message or body]
#3493: Wrong BView scripting properties resolution
--------------------------------+-------------------------------------------
Reporter: matjako | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: R1
Component: Kits/Interface Kit | Version: R1 development
Blockedby: | Platform: All
Blocking: |
--------------------------------+-------------------------------------------
BView and BControl expose pairs of scriptable properties with the same
name. For instance, there is one 'Frame' property that responds to
B_GET_PROPERTY command and one 'Frame' property that responds to
B_SET_PROPERTY command.
This is incorrect because it makes specifiers non-unique and does not
follow the BeBook specification. It may break applications that rely on
specifiers being unique and containing a _list_ of commands.
EXPECTED BEHAVIOR
The correct way is to have one property that includes a list of all
supported commands. Likewise, the description should be changed to explain
that a property can be _both_ read and set. Like so:
{ "Frame", { B_GET_PROPERTY, B_SET_PROPERTY, 0 },
{ B_DIRECT_SPECIFIER, 0 }, "Gets or sets the view's frame rectangle.",0 },
STEPS TO REPRODUCE
Issue a B_GET_SUITES scripting command to a BView instance, observe the
duplicates in the reply.
--
Ticket URL: <http://dev.haiku-os.org/ticket/3493>
Haiku <http://dev.haiku-os.org>
The Haiku operating system.
_______________________________________________
Haiku-bugs mailing list
Haiku-bugs@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/haiku-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic