[glom/glom-1-30] UiUtils: Use font-family instead of font with GtkCssProvider.



commit 2e5d607334d11d5c057b1cb692a3f5e5c029d58b
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon May 16 19:19:04 2016 +0200

    UiUtils: Use font-family instead of font with GtkCssProvider.
    
    I think this is what this GtkCssProviderError runtime warning is
    asking for:
    Theme parsing error: <data>:1:19: Using Pango syntax for the font: style
    property is deprecated; please use CSS syntax

 glom/utils_ui.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glom/utils_ui.cc b/glom/utils_ui.cc
index c641ec9..822c86e 100644
--- a/glom/utils_ui.cc
+++ b/glom/utils_ui.cc
@@ -619,7 +619,7 @@ void UiUtils::container_remove_all(Gtk::Container& container)
 
 void UiUtils::load_font_into_css_provider(Gtk::Widget& widget, const Glib::ustring& font)
 {
-  const auto css = "* { font: " + font + "; }";
+  const auto css = "* { font-family: " + font + "; }";
   load_into_css_provider(widget, css);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]