From: Vitaly V. B. <vit...@us...> - 2004-09-27 19:39:08
|
On Mon, 27 Sep 2004 21:21:20 +0200 Dennis Smit <sy...@yo...> wrote: Regarding to XMMS, GTK, Threadng.... main.c, there's a long-standing issue around "case SDL_QUIT:"... Well, how it's done in Scivi :) // .... /* long event switch(). when window closed */ case ClientMessage: if ((ev.xclient.format == 32) && (ev.xclient.data.l[0] == scivi->X.wm_delete)){ /* #### ATTN HERE! #### */ GDK_THREADS_ENTER(); gtk_idle_add(disable_func, NULL); GDK_THREADS_LEAVE(); scivi->thread_quit_flag = 1; return 1; } // .... /* #### AND HERE! #### */ static gint disable_func(gpointer data) { vis_plugin.disable_plugin(&vis_plugin); return FALSE; } hopefully you get the idea! ;) -- Vitaly GPG Key ID: F95A23B9 |