[gnome-shell/wip/fmuellner/test-theme: 1/3] test-theme: Force default resolution
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/test-theme: 1/3] test-theme: Force default resolution
- Date: Tue, 26 Feb 2019 01:53:17 +0000 (UTC)
commit e7e757c60b023d31353dbee0f0aa51cc39c65477
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 225b95fc5..40a9e6d98 100644
--- a/src/st/test-theme.c
+++ b/src/st/test-theme.c
@@ -541,6 +541,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]