aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2006-05-01 10:59:06 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2006-05-01 10:59:06 +0000
commitf27830e9f57c31d0f04eb265a958746b2c7a597b (patch)
tree7ee2dc8c94fc8737d3433b43fffea6100622102b /gtk
parentf48115ba5c9d7375ce4cc70728e350c33e55d1cf (diff)
Fix for bug 887. Use the right function to set the window position.
svn path=/trunk/; revision=18059
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gui_utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gui_utils.c b/gtk/gui_utils.c
index 0f927c0cd3..c3cd19d377 100644
--- a/gtk/gui_utils.c
+++ b/gtk/gui_utils.c
@@ -362,9 +362,15 @@ window_set_geometry(GtkWidget *widget, window_geometry_t *geom)
{
/* as we now have the geometry from the recent file, set it */
if (geom->set_pos) {
+#if GTK_MAJOR_VERSION >= 2
+ gtk_window_move(GTK_WINDOW(widget),
+ geom->x,
+ geom->y);
+#else
gtk_widget_set_uposition(widget,
geom->x,
geom->y);
+#endif
}
if (geom->set_size) {