[gnome-shell/wip/fmuellner/test-theme: 10/12] test-theme: Force default resolution
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/test-theme: 10/12] test-theme: Force default resolution
- Date: Wed, 27 Feb 2019 12:12:59 +0000 (UTC)
commit a418ff1e9c0b021ab7f1af30360834604d797b5d
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Feb 26 02:13:43 2019 +0100
test-theme: Force default resolution
Clutter no longer hard-codes a resolution of 96 DPI (although that's
still the default), so any assertions of sizes for physical units
may be off.
Fix this by setting up the test environment according to the
assumptions.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/419
src/st/test-theme.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/st/test-theme.c b/src/st/test-theme.c
index a6fc9a5f5..2548ca203 100644
--- a/src/st/test-theme.c
+++ b/src/st/test-theme.c
@@ -542,6 +542,9 @@ main (int argc, char **argv)
if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
return 1;
+ /* Make sure our assumptions about resolution are correct */
+ g_object_set (clutter_settings_get_default (), "font-dpi", -1, NULL);
+
file = g_file_new_for_path ("st/test-theme.css");
theme = st_theme_new (file, NULL, NULL);
g_object_unref (file);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]