Mercurial > audlegacy
diff src/audacious/ui_skinned_window.c @ 3249:eff2e785e3b4
add focus_in and focus_out events
| author | Tomasz Mon <desowin@gmail.com> |
|---|---|
| date | Sun, 05 Aug 2007 11:23:35 +0200 |
| parents | 963dfcfdc851 |
| children | f02623377013 |
line wrap: on
line diff
--- a/src/audacious/ui_skinned_window.c Sun Aug 05 10:06:35 2007 +0200 +++ b/src/audacious/ui_skinned_window.c Sun Aug 05 11:23:35 2007 +0200 @@ -102,6 +102,18 @@ return FALSE; } +static gboolean ui_skinned_window_focus_in(GtkWidget *widget, GdkEventFocus *focus) { + gboolean val = GTK_WIDGET_CLASS (parent)->focus_in_event (widget, focus); + gtk_widget_queue_draw(widget); + return val; +} + +static gboolean ui_skinned_window_focus_out(GtkWidget *widget, GdkEventFocus *focus) { + gboolean val = GTK_WIDGET_CLASS (parent)->focus_out_event (widget, focus); + gtk_widget_queue_draw(widget); + return val; +} + static gboolean ui_skinned_window_expose(GtkWidget *widget, GdkEventExpose *event) { SkinnedWindow *window = SKINNED_WINDOW(widget); @@ -187,6 +199,8 @@ widget_class->configure_event = ui_skinned_window_configure; widget_class->motion_notify_event = ui_skinned_window_motion_notify_event; widget_class->expose_event = ui_skinned_window_expose; + widget_class->focus_in_event = ui_skinned_window_focus_in; + widget_class->focus_out_event = ui_skinned_window_focus_out; } void
