After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 697263 - Impossible to set window transparency on 3.8
Impossible to set window transparency on 3.8
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-04-04 13:24 UTC by Lionel Landwerlin
Modified: 2013-04-04 13:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of the issue (289.04 KB, image/png)
2013-04-04 13:25 UTC, Lionel Landwerlin
  Details
Fix gtk_window_set_opacity() (960 bytes, patch)
2013-04-04 13:33 UTC, Alexander Larsson
committed Details | Review

Description Lionel Landwerlin 2013-04-04 13:24:55 UTC
The following example give me a transparent window on GTK+ 3.6, not on 3.8 :

=====================================

const Gtk = imports.gi.Gtk;                       
                                                  
Gtk.init(null, null);                             
                                                  
let mwindow = new Gtk.Window({ opacity: 0.5 });   
mwindow.resize(500, 500);                         
mwindow.show();                                   
                                                  
Gtk.main();                                       
                                                  
                                                  
======================================
Comment 1 Lionel Landwerlin 2013-04-04 13:25:34 UTC
Created attachment 240601 [details]
Screenshot of the issue

On the left GTK+ 3.8, on the right GTK+ 3.6.
Comment 2 Alexander Larsson 2013-04-04 13:33:32 UTC
Created attachment 240604 [details] [review]
Fix gtk_window_set_opacity()

We *do* want to call gdk_window_set_opacity() on toplevels, because
this particular case does work.
Comment 3 Alexander Larsson 2013-04-04 13:34:57 UTC
Attachment 240604 [details] pushed as a2c65d4 - Fix gtk_window_set_opacity()