Advertisement
rotrevrep

Gtk 3.18.* HeaderBar - background window bug fix

Nov 22nd, 2015
3,242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 0.35 KB | None | 0 0
  1. public class Window : Gtk.Window {
  2.     construct {
  3.         var color = get_style_context().get_background_color (Gtk.StateFlags.NORMAL);
  4.         override_background_color (Gtk.StateFlags.NORMAL, { 0, 0, 0, 0 });
  5.        
  6.         Gtk.Box box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
  7.         box.override_background_color (Gtk.StateFlags.NORMAL, color);
  8.        
  9.         // code here
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement