diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-04-07 01:42:51 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-04-07 01:42:51 (GMT) |
commit | 4828870afd08aef48fa96f7a82076e0fcf5fc2f5 (patch) | |
tree | 1c8c5d32d942e9339611dd2ff123316e2a34b6cc /sugar-emulator | |
parent | e3cf7aa1d32b4266e0687b9f43d8cc3a1529c7e2 (diff) |
Use gtk to detect dpi.
Diffstat (limited to 'sugar-emulator')
-rwxr-xr-x | sugar-emulator | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sugar-emulator b/sugar-emulator index 8806162..3f1df1b 100755 --- a/sugar-emulator +++ b/sugar-emulator @@ -88,7 +88,8 @@ else: width = 1200 height = 900 -_start_xephyr(width, height, min(_sugar.get_screen_dpi(), 96)) +_gtk_xft_dpi = float(gtk.settings_get_default().get_property('gtk-xft-dpi')) +_start_xephyr(width, height, _gtk_xft_dpi / 1024) os.environ['GTK2_RC_FILES'] = env.get_data_path('gtkrc') |