diff -Nru gtksourceview3-3.10.2/debian/changelog gtksourceview3-3.10.2/debian/changelog --- gtksourceview3-3.10.2/debian/changelog 2014-02-04 11:10:22.000000000 +0100 +++ gtksourceview3-3.10.2/debian/changelog 2015-06-16 16:11:44.000000000 +0200 @@ -1,3 +1,10 @@ +gtksourceview3 (3.10.2-0ubuntu2) trusty; urgency=medium + + * Apply upstream fix to allow color highlighting when printing. + (lp: #1313283) + + -- Margarita Manterola Tue, 16 Jun 2015 16:11:00 +0200 + gtksourceview3 (3.10.2-0ubuntu1) trusty; urgency=medium * New upstream release diff -Nru gtksourceview3-3.10.2/debian/patches/colorfull_print.patch gtksourceview3-3.10.2/debian/patches/colorfull_print.patch --- gtksourceview3-3.10.2/debian/patches/colorfull_print.patch 1970-01-01 01:00:00.000000000 +0100 +++ gtksourceview3-3.10.2/debian/patches/colorfull_print.patch 2015-06-16 16:10:41.000000000 +0200 @@ -0,0 +1,52 @@ +From: Sébastien Wilmet +Date: Mon, 14 Apr 2014 17:40:39 +0200 +Subject: PrintCompositor: fix syntax highlighting + +GdkRGBA has values between 0 and 1, and pango wants values between 0 and +65535 (like GdkColor). + +Origin: upstream, https://git.gnome.org/browse/gtksourceview/commit/?id=bb16be551274521952a0d9e2ff6af1c04d3a4031 +Bug: https://bugzilla.gnome.org/show_bug.cgi?id=728180 +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gtksourceview3/+bug/1313283 + +Index: gtksourceview3-3.10.2/gtksourceview/gtksourceprintcompositor.c +=================================================================== +--- gtksourceview3-3.10.2.orig/gtksourceview/gtksourceprintcompositor.c 2015-06-16 16:10:38.400181849 +0200 ++++ gtksourceview3-3.10.2/gtksourceview/gtksourceprintcompositor.c 2015-06-16 16:10:38.396181792 +0200 +@@ -2312,18 +2312,32 @@ + if (bg_set) + { + GdkRGBA *color = NULL; +- if (bg) pango_attribute_destroy (bg); ++ ++ if (bg != NULL) ++ { ++ pango_attribute_destroy (bg); ++ } ++ + g_object_get (tag, "background-rgba", &color, NULL); +- bg = pango_attr_background_new (color->red, color->green, color->blue); ++ bg = pango_attr_background_new (color->red * 65535, ++ color->green * 65535, ++ color->blue * 65535); + gdk_rgba_free (color); + } + + if (fg_set) + { + GdkRGBA *color = NULL; +- if (fg) pango_attribute_destroy (fg); ++ ++ if (fg != NULL) ++ { ++ pango_attribute_destroy (fg); ++ } ++ + g_object_get (tag, "foreground-rgba", &color, NULL); +- fg = pango_attr_foreground_new (color->red, color->green, color->blue); ++ fg = pango_attr_foreground_new (color->red * 65535, ++ color->green * 65535, ++ color->blue * 65535); + gdk_rgba_free (color); + } + diff -Nru gtksourceview3-3.10.2/debian/patches/series gtksourceview3-3.10.2/debian/patches/series --- gtksourceview3-3.10.2/debian/patches/series 2014-02-04 11:10:22.000000000 +0100 +++ gtksourceview3-3.10.2/debian/patches/series 2015-06-16 16:09:44.000000000 +0200 @@ -1 +1,2 @@ 99_ltmain_as-needed.patch +colorfull_print.patch diff -Nru gtksourceview3-3.10.2/debian/.pc/.quilt_patches gtksourceview3-3.10.2/debian/.pc/.quilt_patches --- gtksourceview3-3.10.2/debian/.pc/.quilt_patches 1970-01-01 01:00:00.000000000 +0100 +++ gtksourceview3-3.10.2/debian/.pc/.quilt_patches 2015-06-16 16:09:35.000000000 +0200 @@ -0,0 +1 @@ +patches diff -Nru gtksourceview3-3.10.2/debian/.pc/.quilt_series gtksourceview3-3.10.2/debian/.pc/.quilt_series --- gtksourceview3-3.10.2/debian/.pc/.quilt_series 1970-01-01 01:00:00.000000000 +0100 +++ gtksourceview3-3.10.2/debian/.pc/.quilt_series 2015-06-16 16:09:35.000000000 +0200 @@ -0,0 +1 @@ +series diff -Nru gtksourceview3-3.10.2/debian/.pc/.version gtksourceview3-3.10.2/debian/.pc/.version --- gtksourceview3-3.10.2/debian/.pc/.version 1970-01-01 01:00:00.000000000 +0100 +++ gtksourceview3-3.10.2/debian/.pc/.version 2015-06-16 16:09:35.000000000 +0200 @@ -0,0 +1 @@ +2