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

Bug 502056

Summary: [GTK] [Ubuntu] Radio button menu item does not change selection state
Product: [Eclipse Project] Platform Reporter: Thomas Singer <eclipse>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, ericwill, gautier.desaintmartinlacaze, kohenkatz
Version: 4.7Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Sample code to reproduce none

Description Thomas Singer CLA 2016-09-23 07:39:33 EDT
Please run the attached sample code on a stock Ubuntu 16.04 box (the normal unity desktop). The "Value 1" radio button menu item is selected. Now click the "Value 2" radio menu item. You will get following output on the console:

(SWT:3823): GLib-CRITICAL **: g_variant_new_variant: assertion 'value != NULL' failed

(SWT:3823): GLib-CRITICAL **: g_variant_get_type: assertion 'value != NULL' failed

(SWT:3823): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed

(SWT:3823): GLib-CRITICAL **: g_variant_builder_add_value: assertion '!GVSB(builder)->expected_type || g_variant_is_of_type (value, GVSB(builder)->expected_type)' failed

(SWT:3823): GLib-CRITICAL **: g_variant_builder_end: assertion 'GVSB(builder)->offset >= GVSB(builder)->min_items' failed

(SWT:3823): GLib-CRITICAL **: g_variant_get_type: assertion 'value != NULL' failed

(SWT:3823): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed

(SWT:3823): GLib-CRITICAL **: g_variant_builder_add_value: assertion '!GVSB(builder)->expected_type || g_variant_is_of_type (value, GVSB(builder)->expected_type)' failed

(SWT:3823): GLib-CRITICAL **: g_variant_unref: assertion 'value != NULL' failed


Take a look again into the menu: "Value 1" still is selected. You also may try the commented code in setSelection() without making any difference. This sample works fine on a Gnome 3 desktop like Fedora 24.
Comment 1 Thomas Singer CLA 2016-09-23 07:40:35 EDT
Created attachment 264376 [details]
Sample code to reproduce
Comment 2 Thomas Singer CLA 2016-09-23 07:43:01 EDT
If UBUNTU_MENUPROXY is set to 0, it works as expected and without the console output.
Comment 3 Eric Williams CLA 2016-09-23 10:05:18 EDT
(In reply to Thomas Singer from comment #0) 
> Take a look again into the menu: "Value 1" still is selected. You also may
> try the commented code in setSelection() without making any difference. This
> sample works fine on a Gnome 3 desktop like Fedora 24.

So the bug is only reproducible on Ubuntu?
Comment 4 Thomas Singer CLA 2016-09-23 12:00:10 EDT
I haven't tried all possible Linux variants, but IMHO is Ubuntu a very common desktop.
Comment 5 Alexander Kurtakov CLA 2016-12-20 08:43:33 EST
Works just fine on Fedora 25. Clearly an Ubuntu menuproxy issue. Marking the bug as such for whoever has time for such issues.
Comment 6 Alexander Kurtakov CLA 2018-10-19 08:56:36 EDT
Just tested on Ubuntu 18.10 and works fine.