summaryrefslogtreecommitdiffstats
path: root/bundles
diff options
context:
space:
mode:
authorSteve Northover <steve>2003-03-03 21:13:29 +0000
committerSteve Northover <steve>2003-03-03 21:13:29 +0000
commit547983a820416492320313166d98b97b60afaee0 (patch)
tree614a226a12c34359968257d1d259aba283541c14 /bundles
parent33998f783f5c4a68e41b797c5fe586c85a4ac31d (diff)
downloadeclipse.platform.swt-547983a820416492320313166d98b97b60afaee0.tar.gz
eclipse.platform.swt-547983a820416492320313166d98b97b60afaee0.tar.xz
eclipse.platform.swt-547983a820416492320313166d98b97b60afaee0.zip
*** empty log message ***
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
index 5f3e1cf10b..f95acf6d97 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
@@ -1059,13 +1059,14 @@ void setItems (String [] items, boolean keepText, boolean keepSelection) {
glist = OS.g_list_append (glist, data);
}
/*
- * A call to gtk_combo_set_popdown_strings will result in the top item being selected
- * and a SELECT_CHILD and CHANGED event will be sent. In the case where there
- * are no entires in the Combo widget and the first item is added, it is neccessary
- * to inform the application that a selection has occurred. However, in all other cases,
- * the previous selection should be maintained and the application should not
- * be notified of a selection change.
- */
+ * Feature in GTK. A call to gtk_combo_set_popdown_strings will result in the top item
+ * being selected and a SELECT_CHILD and CHANGED event will be sent. In the case
+ * where there are no entires in the widget and the first item has been added, inform the
+ * application that a selection has occurred. However, in all other cases, the previous
+ * selection is maintained and the application should not be notified of a selection change.
+ * The fix is to allow the SELECT_CHILD and CHANGED to be sent when the first item
+ * is added.
+ */
boolean block = oldItems != null && oldItems.length > 0;
if (block) {
OS.g_signal_handlers_block_matched (entryHandle, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);