hello!
once i reparent a window, text boxes in new window is not accepting any data from the keyboard. though my application works fine on native system, it doesnt work on a simputer(a pda,arm linux processor)..part of my code is here....
{
change_passwd_window=create_window(change_passwd_window,frame1,"Change Password...",2);
.....
.....
old_passwd_text=gtk_entry_new();
...
...
gtk_widget_show_all(change_passwd_window);
}
GtkWidget* create_window(GtkWidget *AppWindow,GtkWidget *child,char *title,int screen)
{
char * list[1] ;
int count = 1 ;
XTextProperty text ;
Window xwin = None ;
list[0] = title ;
AppWindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_set_usize(GTK_WIDGET(AppWindow) ,238,296);
gtk_widget_set_uposition(GTK_WIDGET(AppWindow),0,0) ;
gtk_window_set_policy(GTK_WINDOW(AppWindow), FALSE, FALSE, TRUE) ;
gtk_widget_realize( GTK_WIDGET(AppWindow)) ;
gtk_container_set_border_width (GTK_CONTAINER(AppWindow), 0);
gtk_container_add(GTK_CONTAINER(AppWindow),child);
if(XStringListToTextProperty(list,count,&text))
{
xwin = GDK_WINDOW_XWINDOW(GTK_WIDGET(AppWindow)->window) ;
XSetWMName(GDK_DISPLAY(),xwin,&text) ;
}
if( screen == 1)
ParentWindow = xwin ;
if( screen == 2 )
XReparentWindow( GDK_DISPLAY( ), xwin, ParentWindow,1,1);
return AppWindow ;
}