[tomboy/gnome-2-30] Fix indentation problems with bullet lists (LP#516494)
- From: Sanford Armstrong <sharm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tomboy/gnome-2-30] Fix indentation problems with bullet lists (LP#516494)
- Date: Mon, 26 Apr 2010 17:57:40 +0000 (UTC)
commit 8b73d227d4e794de5e5abe5129cb8497b7914650
Author: Owen Williams <owen-launchpad ywwg com>
Date: Fri Mar 12 21:40:30 2010 -0500
Fix indentation problems with bullet lists (LP#516494)
Tomboy/Addins/PrintNotes/PrintNotes.addin.xml | 2 +-
Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs | 4 ++++
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/Tomboy/Addins/PrintNotes/PrintNotes.addin.xml b/Tomboy/Addins/PrintNotes/PrintNotes.addin.xml
index a699592..1d12b15 100644
--- a/Tomboy/Addins/PrintNotes/PrintNotes.addin.xml
+++ b/Tomboy/Addins/PrintNotes/PrintNotes.addin.xml
@@ -5,7 +5,7 @@
description="Allows you to print a note."
category="Desktop Integration"
defaultEnabled="true"
- version="0.2">
+ version="0.2.1">
<Runtime>
<Import assembly="PrintNotes.dll" />
diff --git a/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs b/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs
index 160288a..d1ac1ed 100644
--- a/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs
+++ b/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs
@@ -200,6 +200,10 @@ namespace Tomboy.PrintNotes
layout.Attributes = attr_list;
}
+ DepthNoteTag depth = Buffer.FindDepthTag (p_start);
+ if (depth != null)
+ indentation += ((int) (dpiX / 3)) * depth.Depth;
+
layout.Width = Pango.Units.FromPixels ((int)context.Width -
margin_left - margin_right - indentation);
layout.Wrap = Pango.WrapMode.WordChar;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]