Mercurial > hg > xmms-sid
comparison src/xmms-sid.h @ 612:32fc27395220
About window wasn't handling delete_event properly, fixed; Cleaned up event handling a bit.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 02 Sep 2007 00:03:05 +0000 |
parents | 88bc61a2914f |
children | 6f9c5bb127e6 |
comparison
equal
deleted
inserted
replaced
611:a751d2b85a7d | 612:32fc27395220 |
---|---|
214 # else | 214 # else |
215 # define XSDEBUG(...) /* stub */ | 215 # define XSDEBUG(...) /* stub */ |
216 # endif | 216 # endif |
217 #endif | 217 #endif |
218 | 218 |
219 | |
220 /* And even some Gtk+ macro crap here, yay. | |
221 */ | |
222 #define XS_DEF_WINDOW_DELETE(ME, MV) \ | |
223 gboolean xs_ ## ME ## _delete(GtkWidget *w, GdkEvent *e, gpointer d) { \ | |
224 (void) w; (void) e; (void) d; \ | |
225 if (xs_ ## MV ) { \ | |
226 gtk_widget_destroy(xs_ ## MV ); \ | |
227 xs_ ## MV = NULL; \ | |
228 } \ | |
229 return FALSE; \ | |
230 } | |
231 | |
232 #define XS_DEF_WINDOW_CLOSE(ME, MV) \ | |
233 void xs_ ## ME (GtkButton *b, gpointer d) { \ | |
234 (void) b; (void) d; \ | |
235 gtk_widget_destroy(xs_ ## MV ); \ | |
236 xs_ ## MV = NULL; \ | |
237 } | |
238 | |
239 | |
219 #ifdef __cplusplus | 240 #ifdef __cplusplus |
220 } | 241 } |
221 #endif | 242 #endif |
222 #endif /* XMMS_SID_H */ | 243 #endif /* XMMS_SID_H */ |