Summary: | [GTK] Classes 'browser' not initialized in 'Add Type' and 'Add Task' dialogs | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Luc Bourlier <eclipse> |
Component: | Ant | Assignee: | Luc Bourlier <eclipse> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | veronika_irvine |
Version: | 2.1 | Keywords: | ui |
Target Milestone: | 2.1 M5 | ||
Hardware: | PC | ||
OS: | Linux-GTK | ||
Whiteboard: |
Description
Luc Bourlier
2003-01-21 10:17:51 EST
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). |