[gnote] Use font from Pango context in printnotes
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Use font from Pango context in printnotes
- Date: Wed, 1 Jun 2011 20:09:41 +0000 (UTC)
commit 64ae2d92392c5045b5a1e0819f68301441ac430a
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date: Sun May 29 22:28:58 2011 +0300
Use font from Pango context in printnotes
GtkStyle can not be used in Gtkmm 3.0.
src/addins/printnotes/printnotesnoteaddin.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/addins/printnotes/printnotesnoteaddin.cpp b/src/addins/printnotes/printnotesnoteaddin.cpp
index d19d9fa..7bede83 100644
--- a/src/addins/printnotes/printnotesnoteaddin.cpp
+++ b/src/addins/printnotes/printnotesnoteaddin.cpp
@@ -240,7 +240,7 @@ namespace printnotes {
Glib::RefPtr<Pango::Layout> layout = context->create_pango_layout();
layout->set_font_description(
- get_window()->editor()->get_style()->get_font());
+ get_window()->editor()->get_pango_context()->get_font_description());
int start_index = p_start.get_line_index();
indentation = 0;
@@ -288,7 +288,7 @@ namespace printnotes {
int page_number, int total_pages)
{
Glib::RefPtr<Pango::Layout> layout = context->create_pango_layout();
- Pango::FontDescription font_desc = get_window()->editor()->get_style()->get_font();
+ Pango::FontDescription font_desc = get_window()->editor()->get_pango_context()->get_font_description();
font_desc.set_style(Pango::STYLE_NORMAL);
font_desc.set_weight(Pango::WEIGHT_LIGHT);
layout->set_font_description(font_desc);
@@ -310,7 +310,7 @@ namespace printnotes {
std::string timestamp = sharp::DateTime::now().to_string ("%c");
Glib::RefPtr<Pango::Layout> layout = context->create_pango_layout ();
- Pango::FontDescription font_desc = get_window()->editor()->get_style()->get_font();
+ Pango::FontDescription font_desc = get_window()->editor()->get_pango_context()->get_font_description();
font_desc.set_style(Pango::STYLE_NORMAL);
font_desc.set_weight(Pango::WEIGHT_LIGHT);
layout->set_font_description(font_desc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]