Community
Participate
Working Groups
Created attachment 241262 [details] BusyIndicator test snippet BusyIndicator doesn't show the wait cursor when started from SelectionListener on MenuItem for gtk2+. Platform: Linux (Arch linux) Tested with: gtk 2.24.22 and gtk 3.10.7 and swt version (both 4.3 and 4.2.2). The snippets to test it (see attached code for complete listing): MenuItem busy = new MenuItem(dropdown, SWT.PUSH); busy.setText("Busy"); busy.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { //cursor dosn't change for shell BusyIndicator.showWhile(Display.getDefault(), new LongOperation()); } }); Button b = new Button(shell, SWT.PUSH); b.setText("Test"); b.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { //work as desire BusyIndicator.showWhile(Display.getDefault(), new LongOperation()); } }); Pressing the "Test" button will change cursor to wait. Pressing the menu action "Busy" doesn't change the cursor to wait. The same snippet was tested on windows platform (windows 7) and for both cases the busy cursor is visible during 'LongOperation'. There is similar bug #6325 resolved at 2004, for windows platform. Is it possible to make it consistent with gtk ?
My current workaround is: execute BusyIndicator in Display.asyncExec(); busy.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { Display.getDefault().asyncExec(new Runnable() { @Override public void run() { BusyIndicator.showWhile(Display.getDefault(), new LongOperation()); } }); } });
Reproducible on 4.8 M7 with GTK3.22 and Fedora 28.
New Gerrit change created: https://git.eclipse.org/r/124198
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.