Re: how to remove title bar from window

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sudha C Naidu wrote:

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 );

app_window is not realized at this point, so app_window->window == NULL. Use callback connected to "realize" signal.
BTW, you can compile your program with -g option (enables debug info for gcc) and use gdb debugger to examine the core.


       }
     if( screen == 1 )
            ParentWindow = xwin ;
         if( screen == 2 )
           XReparentWindow( GDK_DISPLAY( ), xwin, ParentWindow, 1, 1



_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux