GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Mon Dec 22, 2014 7:04 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: geting position of window
PostPosted: Tue Nov 28, 2006 5:40 am 
Offline
Familiar Face

Joined: Wed Oct 11, 2006 9:49 am
Posts: 10
gint *xe_cor,*ye_cor;
gtk_window_get_position(GTK_WINDOW (cw->Window1),&xe_cor,&ye_cor);
gtk_window_move(GTK_WINDOW (Window2),xe_cor+10,ye_cor+43);
gtk_widget_show(Window2);

window1 is in structure.
iam getting this error or segmentation fault.
(Gecko:5998): Gtk-CRITICAL **: file gtkwindow.c: line 3364 (gtk_window_get_position): assertion `GTK_IS_WINDOW (window)' failed


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 28, 2006 6:49 am 
Offline
GTK+ Guru

Joined: Thu Nov 16, 2006 5:08 am
Posts: 259
Location: INDIA
hi
try this, i think it will working

gint *x,*y;
gtk_window_get_position(GTK_WINDOW (cw->window1),&x,&y);
gtk_window_move(GTK_WINDOW (Window2),x+9,y+42);
gtk_widget_show(Window2);
gtk_window_present(GTK_WINDOW (Window2));

use this


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group