[gnote] Do not use deprecated foreground_gdk



commit 58da95dd71b527df159eff1c90057d659739c0c9
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Fri Jan 1 18:29:57 2021 +0200

    Do not use deprecated foreground_gdk

 src/addins/printnotes/printnotesnoteaddin.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/addins/printnotes/printnotesnoteaddin.cpp b/src/addins/printnotes/printnotesnoteaddin.cpp
index 8e485e78..d9622b60 100644
--- a/src/addins/printnotes/printnotesnoteaddin.cpp
+++ b/src/addins/printnotes/printnotesnoteaddin.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2010-2013,2015-2017,2019-2020 Aurimas Cernius
+ * Copyright (C) 2010-2013,2015-2017,2019-2021 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
@@ -145,10 +145,10 @@ namespace printnotes {
                                color.get_blue()));
       }
       if (tag->property_foreground_set()) {
-        Gdk::Color color = tag->property_foreground_gdk();;
+        Gdk::RGBA color = tag->property_foreground_rgba();
         attributes.push_back(Pango::Attribute::create_attr_foreground(
-                               color.get_red(), color.get_green(), 
-                               color.get_blue()));
+                               color.get_red_u(), color.get_green_u(),
+                               color.get_blue_u()));
       }
       if (tag->property_indent_set()) {
         layout->set_indent(tag->property_indent());


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