Fix for bug 887. Use the right function to set the window position.
svn path=/trunk/; revision=18059
This commit is contained in:
parent
f48115ba5c
commit
f27830e9f5
|
@ -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 */
|
/* as we now have the geometry from the recent file, set it */
|
||||||
if (geom->set_pos) {
|
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,
|
gtk_widget_set_uposition(widget,
|
||||||
geom->x,
|
geom->x,
|
||||||
geom->y);
|
geom->y);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (geom->set_size) {
|
if (geom->set_size) {
|
||||||
|
|
Loading…
Reference in New Issue