+2007-02-02 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * shell/ev-window.c: (ev_window_open_uri),
+ (window_configure_event_cb):
+
+ Setup window size and position before showing it. Fixes bug #401711.
+
2007-02-02 Carlos Garcia Campos <carlosgc@gnome.org>
* backend/ps/Makefile.am:
g_value_unset (&width_ratio);
g_value_unset (&height_ratio);
}
-
}
static void
if (ev_window->priv->uri)
g_free (ev_window->priv->uri);
ev_window->priv->uri = g_strdup (uri);
+
+ setup_size_from_metadata (ev_window);
ev_window->priv->load_job = ev_job_load_new (uri, dest, mode);
g_signal_connect (ev_window->priv->load_job,
ev_page_cache_get_max_height (window->priv->page_cache,
0, 1.0,
&document_height);
- ev_metadata_manager_set_int (uri, "window_x", x);
- ev_metadata_manager_set_int (uri, "window_y", y);
ev_metadata_manager_set_double (uri, "window_width_ratio",
- (double)width/document_width);
+ (double)width / document_width);
ev_metadata_manager_set_double (uri, "window_height_ratio",
- (double)height/document_height);
+ (double)height / document_height);
+
+ ev_metadata_manager_set_int (uri, "window_x", x);
+ ev_metadata_manager_set_int (uri, "window_y", y);
+ ev_metadata_manager_set_int (uri, "window_width", width);
+ ev_metadata_manager_set_int (uri, "window_height", height);
}
}