Mercurial > audlegacy
comparison 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 |
comparison
equal
deleted
inserted
replaced
3248:3cf247e4508c | 3249:eff2e785e3b4 |
---|---|
100 dock_move_motion(GTK_WINDOW(widget), event); | 100 dock_move_motion(GTK_WINDOW(widget), event); |
101 | 101 |
102 return FALSE; | 102 return FALSE; |
103 } | 103 } |
104 | 104 |
105 static gboolean ui_skinned_window_focus_in(GtkWidget *widget, GdkEventFocus *focus) { | |
106 gboolean val = GTK_WIDGET_CLASS (parent)->focus_in_event (widget, focus); | |
107 gtk_widget_queue_draw(widget); | |
108 return val; | |
109 } | |
110 | |
111 static gboolean ui_skinned_window_focus_out(GtkWidget *widget, GdkEventFocus *focus) { | |
112 gboolean val = GTK_WIDGET_CLASS (parent)->focus_out_event (widget, focus); | |
113 gtk_widget_queue_draw(widget); | |
114 return val; | |
115 } | |
116 | |
105 static gboolean ui_skinned_window_expose(GtkWidget *widget, GdkEventExpose *event) { | 117 static gboolean ui_skinned_window_expose(GtkWidget *widget, GdkEventExpose *event) { |
106 SkinnedWindow *window = SKINNED_WINDOW(widget); | 118 SkinnedWindow *window = SKINNED_WINDOW(widget); |
107 | 119 |
108 GdkPixmap *obj = NULL; | 120 GdkPixmap *obj = NULL; |
109 GdkGC *gc; | 121 GdkGC *gc; |
185 parent = gtk_type_class(gtk_window_get_type()); | 197 parent = gtk_type_class(gtk_window_get_type()); |
186 | 198 |
187 widget_class->configure_event = ui_skinned_window_configure; | 199 widget_class->configure_event = ui_skinned_window_configure; |
188 widget_class->motion_notify_event = ui_skinned_window_motion_notify_event; | 200 widget_class->motion_notify_event = ui_skinned_window_motion_notify_event; |
189 widget_class->expose_event = ui_skinned_window_expose; | 201 widget_class->expose_event = ui_skinned_window_expose; |
202 widget_class->focus_in_event = ui_skinned_window_focus_in; | |
203 widget_class->focus_out_event = ui_skinned_window_focus_out; | |
190 } | 204 } |
191 | 205 |
192 void | 206 void |
193 ui_skinned_window_hide(SkinnedWindow *window) | 207 ui_skinned_window_hide(SkinnedWindow *window) |
194 { | 208 { |