diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-01-23 16:20:47 +0100 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-01-23 16:20:47 +0100 |
| commit | f3116ac6ec112ece3490f2a3b95f7b520e33bd5a (patch) | |
| tree | c5648a77fa1e15b9a3987e32e172d9623924ff6e /unity-shared | |
| parent | ea31f68283591a57f11e5794a11b9e043b4e793c (diff) | |
DecorationStyle: fix issue when using "titlebar-uses-system-font" setting
It was always using the system font, once enabled one time. (bzr r3566.5.257)
Diffstat (limited to 'unity-shared')
| -rw-r--r-- | unity-shared/DecorationStyle.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unity-shared/DecorationStyle.cpp b/unity-shared/DecorationStyle.cpp index d9fb04888..96beac8f7 100644 --- a/unity-shared/DecorationStyle.cpp +++ b/unity-shared/DecorationStyle.cpp @@ -195,9 +195,11 @@ struct Style::Impl }); signals_.Add<void, GSettings*, gchar*>(settings_, "changed::" + USE_SYSTEM_FONT_KEY, [this] (GSettings*, gchar*) { + parent_->title_font.DisableNotifications(); SetTitleFont(); - UpdatePangoContext(parent_->font()); - parent_->title_font = parent_->font(); + UpdatePangoContext(parent_->title_font()); + parent_->title_font.EnableNotifications(); + parent_->title_font.changed.emit(parent_->title_font()); LOG_INFO(logger) << USE_SYSTEM_FONT_KEY << " changed to " << g_settings_get_boolean(settings_, USE_SYSTEM_FONT_KEY.c_str()); }); } |
