summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
diff options
context:
space:
mode:
authorFelipe Heidrich <fheidric>2009-10-23 19:37:07 +0000
committerFelipe Heidrich <fheidric>2009-10-23 19:37:07 +0000
commit3c583b230fbcccc2783c71ce9fd0e1a3f475cab4 (patch)
tree14e149451ef607818a2417e1f805388856704493 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
parentad2f7a3dbde5efa498f9080cce5bfb2b90785d8d (diff)
downloadeclipse.platform.swt-3c583b230fbcccc2783c71ce9fd0e1a3f475cab4.tar.gz
eclipse.platform.swt-3c583b230fbcccc2783c71ce9fd0e1a3f475cab4.tar.xz
eclipse.platform.swt-3c583b230fbcccc2783c71ce9fd0e1a3f475cab4.zip
Bug 65679 - SelectionEvent.stateMask remains 0 even Ctrl (Shift, Alt) were pressed during push operation on button
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java8
1 files changed, 4 insertions, 4 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 903626b9de..85aee169a0 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
@@ -1139,7 +1139,7 @@ public int getVisibleItemCount () {
}
int /*long*/ gtk_activate (int /*long*/ widget) {
- postEvent (SWT.DefaultSelection);
+ sendSelectionEvent (SWT.DefaultSelection);
return 0;
}
@@ -1178,7 +1178,7 @@ int /*long*/ gtk_changed (int /*long*/ widget) {
* item and not matching the item as the user types.
*/
int index = OS.gtk_combo_box_get_active (handle);
- if (index != -1) postEvent (SWT.Selection);
+ if (index != -1) sendSelectionEvent (SWT.Selection);
indexSelected = -1;
return 0;
}
@@ -1191,7 +1191,7 @@ int /*long*/ gtk_changed (int /*long*/ widget) {
String text = new String (Converter.mbcsToWcs (null, buffer));
for (int i = 0; i < items.length; i++) {
if (items [i].equals (text)) {
- postEvent (SWT.Selection);
+ sendSelectionEvent (SWT.Selection);
break;
}
}
@@ -1465,7 +1465,7 @@ int /*long*/ gtk_selection_done(int /*long*/ menushell) {
indexSelected = index;
}
else if (index != -1 && indexSelected == index) {
- postEvent (SWT.Selection);
+ sendSelectionEvent (SWT.Selection);
}
return 0;
}