diff options
| author | nyamatongwe <unknown> | 2009-04-21 01:36:50 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2009-04-21 01:36:50 +0000 |
| commit | 387dc83a671978805467102a5de417deace52b23 (patch) | |
| tree | eed6ce3f73f2bb73cdb3bc52d9c40742205db80b | |
| parent | bbf8cac83a0fbba3b68a17d119a559ecd521997a (diff) | |
| download | scintilla-mirror-387dc83a671978805467102a5de417deace52b23.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; |
