[gnote] Replace Gdk::Color with Gdk::RGBA
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Replace Gdk::Color with Gdk::RGBA
- Date: Sun, 23 May 2021 18:35:46 +0000 (UTC)
commit 7d19e00e25cfe06ad667b7b99d8d170fe0511809
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun May 23 21:31:35 2021 +0300
Replace Gdk::Color with Gdk::RGBA
src/plugins/printnotes/printnotesnoteaddin.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/printnotes/printnotesnoteaddin.cpp b/src/plugins/printnotes/printnotesnoteaddin.cpp
index 088ce1fe..0b318a2a 100644
--- a/src/plugins/printnotes/printnotesnoteaddin.cpp
+++ b/src/plugins/printnotes/printnotesnoteaddin.cpp
@@ -139,10 +139,10 @@ namespace printnotes {
Glib::RefPtr<Gtk::TextTag> tag(*iter);
if (tag->property_paragraph_background_set()) {
- Gdk::Color color = tag->property_paragraph_background_gdk();
+ Gdk::RGBA color = tag->property_paragraph_background_rgba();
attributes.push_back(Pango::Attribute::create_attr_background(
- color.get_red(), color.get_green(),
- color.get_blue()));
+ color.get_red_u(), color.get_green_u(),
+ color.get_blue_u()));
}
if (tag->property_foreground_set()) {
Gdk::RGBA color = tag->property_foreground_rgba();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]