Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 394924

Summary: Problems setting alpha on a shell in Ubuntu.
Product: [Eclipse Project] Platform Reporter: Wim Jongman <wim.jongman>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, ericwill
Version: 3.7.2Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Wim Jongman CLA 2012-11-22 13:15:07 EST
I have an RCP application running that fades out a shell. 

So I do the following

shell.setAlpha(255)

Runnable {
  alpha = shell.getAlpha();
  alpha = alpha - 10;
  shell.setAlpha(alpha);
  if(alpha > 0){
    syso(alpha)
    timerExec(this);}
  else
    shell.dispose();
}

This works fine in windows and in my copy of ubuntu. However, I have an ubuntu installation that keeps printing 245 and therefore never leaves the loop.

I can solve it by not relying on getAlpha but it is silly. 

This is the ubuntu version:

Gnome : Version: 2.30.2, Distributor: Ubuntu , Build Date: 06/25/2010
Comment 1 Wim Jongman CLA 2012-11-22 13:18:19 EST
Linux-GTK Version:

ii  libgtk2-perl                                             1:1.221-4ubuntu2                                Perl interface to the 2.x series of the Gimp Toolkit library
ii  libgtk2.0-0                                              2.20.1-0ubuntu2.1                               The GTK+ graphical user interface library
ii  libgtk2.0-bin                                            2.20.1-0ubuntu2.1                               The programs for the GTK+ graphical user interface library
ii  libgtk2.0-cil                                            2.12.9-4                                        CLI binding for the GTK+ toolkit 2.12
ii  libgtk2.0-common                                         2.20.1-0ubuntu2.1                               Common files for the GTK+ graphical user interface library
Comment 2 Alexander Kurtakov CLA 2017-12-06 03:35:23 EST
Can you still reproduce with latest SWT?
Comment 3 Eric Williams CLA 2018-08-16 15:11:37 EDT
(In reply to Alexander Kurtakov from comment #2)
> Can you still reproduce with latest SWT?

Closing as there hasn't been a response in awhile. Please reopen this ticket if the issue continues on 4.8 and GTK3.22.