hello!
i guess this part of the code does the work..i got segmentation fault
code:
Window xwin=None,ParentWindow=None;
char * list[1] ;
int count = 1 ;
XTextProperty text ;
list[0] = title ;
app_window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_set_usize( GTK_WIDGET(app_window ) , 238, 290 );
gtk_window_set_policy(GTK_WINDOW(app_window), FALSE, FALSE, FALSE);
app_window=set_style(app_window, bg, skyblue, notext, nobutton);
gtk_container_add(GTK_CONTAINER(app_window), child);
if( XStringListToTextProperty( list, count, &text ) )
{ //SEGMENTATION FAULT IS RIGHT HERE
xwin = GDK_WINDOW_XWINDOW( GTK_WIDGET( app_window )->window ); XSetWMName( GDK_DISPLAY( ), xwin, &text );
}
if( screen == 1 )
ParentWindow = xwin ;
if( screen == 2 )
XReparentWindow( GDK_DISPLAY( ), xwin, ParentWindow, 1, 1