summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-11-08 22:57:12 -0500
committerMatthias Clasen <mclasen@redhat.com>2013-04-05 13:42:53 -0400
commit1797783946c86bcea0cd36a8ca5c281c35b03dcb (patch)
treef4a26ee4e3815f890d6736d4f7fcc13a0b7cde82
parenteec97819f8cb48f2ea1df56fab077608e75d1604 (diff)
downloadyelp-1797783946c86bcea0cd36a8ca5c281c35b03dcb.tar.gz
Center new windows
This makes more sense than letting mutter put them in the top left corner.
-rw-r--r--src/yelp-application.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/yelp-application.c b/src/yelp-application.c
index 2d004c20..e6696611 100644
--- a/src/yelp-application.c
+++ b/src/yelp-application.c
@@ -444,6 +444,7 @@ application_uri_resolved (YelpUri *uri,
g_settings_get (settings, "geometry", "(ii)", &width, &height);
window = yelp_window_new (data->app);
+ gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER);
gtk_window_set_default_size (GTK_WINDOW (window), width, height);
g_signal_connect (window, "resized", G_CALLBACK (window_resized), data->app);
priv->windows = g_slist_prepend (priv->windows, window);