Opened 10 years ago

Closed 9 years ago

#4849 closed bug (invalid)

BSlider - broken BArchivable implementation

Reported by: matjako Owned by: axeld
Priority: normal Milestone: R1
Component: Kits/Interface Kit Version: R1/alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Unlike with other BView classes, archiving a BSlider object and instantiating it does not create a valid BView. When a previously Archive()'d BSlider is constructed from the resulting message (archive) and added to a view, nothing happens (compared to say, BButton).

Observed in rev33728.

STEPS TO REPRODUCE:

See attachment. Single file, compile with: gcc test-barchivable.cpp -lroot -lbe

Attachments (1)

test-barchivable.cpp (1.0 KB) - added by matjako 10 years ago.
Test case for BSlider BArchivable implementation

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by matjako

Attachment: test-barchivable.cpp added

Test case for BSlider BArchivable implementation

comment:1 Changed 9 years ago by pulkomandy

Resolution: invalid
Status: newclosed

Seems to work fine in hrev38181. Also note that passing "0, 100" to the constructors doesn't sound right and get some runtime warning messages.

Note: See TracTickets for help on using tickets.