Bug 394924 - Problems setting alpha on a shell in Ubuntu.
Summary: Problems setting alpha on a shell in Ubuntu.
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7.2   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2012-11-22 13:15 EST by Wim Jongman CLA
Modified: 2018-08-16 15:11 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.