diff options
| -rw-r--r-- | gtk/PlatGTK.cxx | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 03bb57d26..fecd3b965 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1760,7 +1760,6 @@ PRectangle Window::GetPosition() {  void Window::SetPosition(PRectangle rc) {  #if 1 -	//gtk_widget_set_uposition(id, rc.left, rc.top);  	GtkAllocation alloc;  	alloc.x = rc.left;  	alloc.y = rc.top; @@ -1797,7 +1796,12 @@ void Window::SetPositionRelative(PRectangle rc, Window relativeTo) {  	if (oy + sizey > screenHeight)  		oy = screenHeight - sizey; +#if GTK_MAJOR_VERSION >= 2 +	gtk_window_move(GTK_WINDOW(PWidget(id)), ox, oy); +#else  	gtk_widget_set_uposition(PWidget(id), ox, oy); +#endif +  #if 0  	GtkAllocation alloc; | 
