diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2017-04-02 19:05:58 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2017-04-02 19:05:58 +0300 |
commit | 8823b220ae3e8718d598d738d99829b08f826b40 (patch) | |
tree | ae49549de1a4b9970f8dcb9727be4aebc3379adb /src/ui | |
parent | 8547f41b2cf90b2829904248ccf786dc3e106b37 (diff) | |
download | metacity-8823b220ae3e8718d598d738d99829b08f826b40.tar.gz |
libmetacity: add meta_theme_set_dpi
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/ui.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/ui.c b/src/ui/ui.c index f2b9b059..06c14f86 100644 --- a/src/ui/ui.c +++ b/src/ui/ui.c @@ -114,6 +114,7 @@ notify_gtk_xft_dpi_cb (GtkSettings *settings, ui->dpi = get_xft_dpi (ui); meta_theme_set_scale (ui->theme, ui->scale); + meta_theme_set_dpi (ui->theme, ui->dpi); } void @@ -823,6 +824,7 @@ load_theme (MetaUI *ui, meta_theme_set_composited (theme, ui->composited); meta_theme_set_scale (theme, ui->scale); + meta_theme_set_dpi (theme, ui->dpi); titlebar_font = meta_prefs_get_titlebar_font (); meta_theme_set_titlebar_font (theme, titlebar_font); |