[gnote] Use get_window() from noteaddin in printnotes
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Use get_window() from noteaddin in printnotes
- Date: Tue, 8 Sep 2015 18:19:03 +0000 (UTC)
commit 03d9b6062d8f65aac2845af59d42c72bc501ddf8
Author: Aurimas Černius <aurisc4 gmail com>
Date: Tue Sep 8 15:09:22 2015 +0300
Use get_window() from noteaddin in printnotes
src/addins/printnotes/printnotes.desktop.in.in | 2 +-
src/addins/printnotes/printnotesnoteaddin.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/addins/printnotes/printnotes.desktop.in.in b/src/addins/printnotes/printnotes.desktop.in.in
index 2f94711..89d7ffb 100644
--- a/src/addins/printnotes/printnotes.desktop.in.in
+++ b/src/addins/printnotes/printnotes.desktop.in.in
@@ -4,7 +4,7 @@ _Name=Printing Support
_Description=Allows you to print a note.
_Authors=Hubert Figuiere and the Tomboy Project
Category=DesktopIntegration
-Version=0.6
+Version=0.7
DefaultEnabled=true
Module=printnotes
LibgnoteRelease= LIBGNOTE_RELEASE@
diff --git a/src/addins/printnotes/printnotesnoteaddin.cpp b/src/addins/printnotes/printnotesnoteaddin.cpp
index e8ece20..937ae22 100644
--- a/src/addins/printnotes/printnotesnoteaddin.cpp
+++ b/src/addins/printnotes/printnotesnoteaddin.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2010-2013 Aurimas Cernius
+ * Copyright (C) 2010-2013,2015 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
@@ -157,7 +157,7 @@ namespace printnotes {
position = limit;
}
- Glib::RefPtr<Gdk::Screen> screen = get_note()->get_window()->get_screen();
+ Glib::RefPtr<Gdk::Screen> screen = get_window()->get_screen();
double screen_dpiX = screen->get_width_mm() * 254 / screen->get_width();
for(Glib::SListHandle<Glib::RefPtr<Gtk::TextTag> >::const_iterator iter = tags.begin();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]