Advertisement
rotrevrep

Gtk 3.18.* HeaderBar - background window bug fix

Nov 22nd, 2015
1,241
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement