yelp/0001-Center-new-windows.patch

25 lines
971 B
Diff
Raw Normal View History

2019-11-06 19:57:47 +08:00
From c323dd5087a15cb2b820fedf311ca288ec347878 Mon Sep 17 00:00:00 2001
From: Matthias Clasen <mclasen@redhat.com>
Date: Thu, 8 Nov 2012 22:57:12 -0500
Subject: [PATCH] Center new windows
This makes more sense than letting mutter put them in the top
left corner.
---
src/yelp-application.c | 1 +
1 file changed, 1 insertion(+)
2021-06-22 15:27:34 +08:00
2019-11-06 19:57:47 +08:00
diff --git a/src/yelp-application.c b/src/yelp-application.c
2021-06-22 15:27:34 +08:00
index b284757..b6ed9d7 100644
2019-11-06 19:57:47 +08:00
--- a/src/yelp-application.c
+++ b/src/yelp-application.c
2021-06-22 15:27:34 +08:00
@@ -486,6 +486,7 @@ application_uri_resolved (YelpUri *uri,
2019-11-06 19:57:47 +08:00
g_settings_get (settings, "geometry", "(ii)", &width, &height);
window = yelp_window_new (data->app);
2021-06-22 15:27:34 +08:00
+ gtk_window_set_position (GTK_WINDOW (window), GTK_WIN_POS_CENTER);
2019-11-06 19:57:47 +08:00
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);