Re: how to remove title bar from window
- From: Olexiy Avramchenko <olexiy ctech cn ua>
- To: Sudha C Naidu <sudhacnaidu rediffmail com>
- Cc: gtk-list gnome org
- Subject: Re: how to remove title bar from window
- Date: Thu, 09 Dec 2004 09:39:53 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]