Bug 29887 - [GTK] Classes 'browser' not initialized in 'Add Type' and 'Add Task' dialogs
Summary: [GTK] Classes 'browser' not initialized in 'Add Type' and 'Add Task' dialogs
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.1   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 2.1 M5   Edit
Assignee: Luc Bourlier CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2003-01-21 10:17 EST by Luc Bourlier CLA
Modified: 2003-02-28 10:37 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luc Bourlier CLA 2003-01-21 10:17:51 EST
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.
Comment 1 Darin Swanson CLA 2003-01-21 14:10:10 EST
Only a problem on Linux.
Comment 2 Luc Bourlier CLA 2003-01-29 15:22:32 EST
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.

Comment 3 Veronika Irvine CLA 2003-02-20 11:39:07 EST
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.
Comment 4 Jared Burns CLA 2003-02-20 12:39:50 EST
Thanks for the info, Veronika. Is there a workaround?
Comment 5 Veronika Irvine CLA 2003-02-20 12:53:54 EST
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.
Comment 6 Veronika Irvine CLA 2003-02-20 17:24:16 EST
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.
Comment 7 Darin Swanson CLA 2003-02-20 17:32:41 EST
Thanks Veronika.
Fixed in AddCustomDialog.
Please verify Luc.
Comment 8 Luc Bourlier CLA 2003-02-28 10:37:49 EST
Verified.
Please update the build notes (DarinS).