diff options
| author | nyamatongwe <devnull@localhost> | 2009-04-21 01:36:50 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2009-04-21 01:36:50 +0000 |
| commit | 72706ac8ad67748602986907f304bbd77c3f2a6e (patch) | |
| tree | eed6ce3f73f2bb73cdb3bc52d9c40742205db80b | |
| parent | a2dd18ee2dd2d4279b02569172e0c111b9b96c9a (diff) | |
| download | scintilla-mirror-72706ac8ad67748602986907f304bbd77c3f2a6e.tar.gz | |
Replaced call to deprecated gtk_widget_set_uposition with gtk_window_move
when on GTK+ 2.x.
| -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; |
