gtk_signal_connect(GTK_OBJECT(WID(buttonStack)), "clicked", GTK_SIGNAL_FUNC(cb_stack),                   (void *) NULL);
void GUI_PreviewInit(uint32_t w , uint32_t h){		if(rgb_render)		{			printf("\n Warning rgb render not null...\n");			delete [] rgb_render;			delete [] rgb_alternate;			rgb_alternate=NULL;			rgb_render=NULL;		}	   stacked=0;       ADM_assert(rgb_render=new uint8_t [w*h*4]);       ADM_assert(rgb_alternate=new uint8_t [w*h*4]);       uw=w;       uh=h;       rgbConv.reset(w,h);        dialog=create_dialog1();       gtk_widget_set_usize (lookup_widget(dialog,"drawingarea1"),w,h);       // add callback for destroy 	gtk_object_set_data_full(GTK_OBJECT(dialog),			     "dialog",			     dialog,			     (GtkDestroyNotify) preview_exit_short);	// add callback for button// 	gtk_signal_connect(GTK_OBJECT(lookup_widget(dialog,"closebutton1")), "clicked",//                       GTK_SIGNAL_FUNC(preview_exit),                   (void *) NULL);        gtk_signal_connect(GTK_OBJECT(WID(buttonNext)), "clicked",                       GTK_SIGNAL_FUNC(cb_next),                   (void *) NULL);        gtk_signal_connect(GTK_OBJECT(WID(buttonPrev)), "clicked",                       GTK_SIGNAL_FUNC(cb_prev),                   (void *) NULL);	// add callback for redraw	gtk_signal_connect(GTK_OBJECT(WID(drawingarea1)), "expose_event",		       GTK_SIGNAL_FUNC(previewRender),    NULL);       lock=0;       needDestroy=1;       gtk_widget_show(  dialog);}