From 8aa4799f644cefb27afbec1e09958c8f58712c3c Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sun, 2 May 2010 14:18:23 +0200 Subject: gtk warning fix --- plugins/gtkui/ddbequalizer.vala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/gtkui/ddbequalizer.vala') diff --git a/plugins/gtkui/ddbequalizer.vala b/plugins/gtkui/ddbequalizer.vala index 84766a3f..a0be8aee 100644 --- a/plugins/gtkui/ddbequalizer.vala +++ b/plugins/gtkui/ddbequalizer.vala @@ -75,11 +75,6 @@ namespace Ddb { public override void realize () { set_flags (Gtk.WidgetFlags.REALIZED); - add_events (Gdk.EventMask.BUTTON_PRESS_MASK - | Gdk.EventMask.BUTTON_RELEASE_MASK - | Gdk.EventMask.LEAVE_NOTIFY_MASK - | Gdk.EventMask.POINTER_MOTION_MASK); - var attrs = Gdk.WindowAttr () { window_type = Gdk.WindowType.CHILD, wclass = Gdk.WindowClass.INPUT_OUTPUT, @@ -92,6 +87,11 @@ namespace Ddb { this.window.set_user_data (this); this.style = this.style.attach (this.window); this.style.set_background (this.window, Gtk.StateType.NORMAL); + add_events (Gdk.EventMask.BUTTON_PRESS_MASK + | Gdk.EventMask.BUTTON_RELEASE_MASK + | Gdk.EventMask.LEAVE_NOTIFY_MASK + | Gdk.EventMask.POINTER_MOTION_MASK); + send_configure (); } -- cgit v1.2.3