remove tittle bar
- From: "Sudha C Naidu" <sudhacnaidu rediffmail com>
- To: gtk-app-devel-list gnome org
- Subject: remove tittle bar
- Date: 4 Dec 2004 11:28:27 -0000
hello!
i use gtk-1.2 for my application. i guess this is the code to remove titlebar frm the window.when i run
my application...i get segmentation fault...any idea whats wrong?
GtkWidget *window;
Window xwin=None,ParentWindow=None;
char * list[1] ;
int count = 1 ;
XTextProperty text ;
list[0] = title ;
.......
.......
if( XStringListToTextProperty( list, count, &text ) )
{
xwin = GDK_WINDOW_XWINDOW( GTK_WIDGET( window )->window ) ;
XSetWMName( GDK_DISPLAY( ), xwin, &text ) ;
}
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]