summaryrefslogtreecommitdiff
path: root/plugins/gtkui/ddbequalizer.vala
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-02 14:18:23 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-02 14:18:23 +0200
commit8aa4799f644cefb27afbec1e09958c8f58712c3c (patch)
treedae604d8c674f25e55ab729eb8d265524bd71274 /plugins/gtkui/ddbequalizer.vala
parent2e53930ee9f06102ee39bf95b21775a563679d31 (diff)
gtk warning fix
Diffstat (limited to 'plugins/gtkui/ddbequalizer.vala')
-rw-r--r--plugins/gtkui/ddbequalizer.vala10
1 files changed, 5 insertions, 5 deletions
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 ();
}