Use gtk to detect dpi.

This commit is contained in:
Marco Pesenti Gritti
2007-04-07 03:42:51 +02:00
parent e3cf7aa1d3
commit 4828870afd
7 changed files with 6 additions and 140 deletions
+2 -1
View File
@@ -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')