Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 311231

Summary: Warnings printed to console when running AccessibleValueExample
Product: [Eclipse Project] Platform Reporter: Silenio Quarti <Silenio_Quarti>
Component: SWTAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe
Version: 3.6Flags: eclipse.felipe: review+
Target Milestone: 3.6 RC1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
fix none

Description Silenio Quarti CLA 2010-04-30 14:58:19 EDT

    
Comment 1 Silenio Quarti CLA 2010-04-30 14:58:52 EDT
(SWT:2724): GLib-GObject-CRITICAL **: g_value_unset: assertion `G_IS_VALUE (value)' failed
Comment 2 Silenio Quarti CLA 2010-04-30 15:00:27 EDT
Created attachment 166663 [details]
fix

This should is be fixed in RC1
Comment 3 Felipe Heidrich CLA 2010-05-03 10:18:01 EDT
I see that will work, but personally I'd have used
if (OS.G_IS_VALUE(value) != 0) OS.g_value_unset(value);
instead of 
if (OS.G_VALUE_TYPE(value) != 0) OS.g_value_unset(value);

G_IS_VALUE() is failing assertion in the stacktrace after all
Comment 4 Silenio Quarti CLA 2010-05-03 13:15:13 EDT
The G_VALUE_TYPE is already used to get the type in setGValue(). G_IS_VALUE checks if the object is a GValue which is unnecessary.

Fixed > 20100503