aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
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) {