Community
Participate
Working Groups
Build 20030115+ Linux-GTK The classes 'browser' (tree viewer of the folders and list viewer of the classes) of the 'Add Type' and 'Add Task' dialogs are empty when the dialog are displayed. I have to select a jar file in the drop down list to display something in the 'browser', even if the jar file I want to use is the one which is already selected (or maybe it is not selected). The 'browser' should be initialized with the content of the jar file selected by default.
Only a problem on Linux.
Forward to SWT, I see this problem only on GTK. On linux-GTK, it appears that a value is displayed 'as selected' in a drop-down list, even if no item is selected. See for example the 'Add Task' dialog in the Ant preference pages (preferences>ant>runtime>task>add task ...), when the dialog is displayed, nothing is selected for the field 'Location', but the first element of the list is displayed. That can be confusing, there is nothing selected, but it looks like there is something selected. Is it a platform behavior ? Is it something to do to avoid this problem ? On windows and linux-motif, nothing is displayed if nothing is selected.
The native widget fires a selection event as soon as you set the items in the pop down list. This is native behaviour. Apparently, GTK temporarily turned this behaviour off and people screamed so it got turned back on. See: http://bugzilla.gnome.org/show_bug.cgi?id=100347 Rerouting back to ant.
Thanks for the info, Veronika. Is there a workaround?
The work around is to make sure you add your Seelction listner before calling any API to add items to the COmbo list. However, I just tested this on GTK and we are not sending the Selection event which is a bug in our code. I will take this bug back into the SWT shop and fix the GTK problem.
Fixed the notification problem on GTK (will be in RC1 build). Rerouting to Ant to change the order so that the Selection listener is added before the items are added to the Combo box. See AddCustomDialog.createRootDirectoryGroup.
Thanks Veronika. Fixed in AddCustomDialog. Please verify Luc.
Verified. Please update the build notes (DarinS).