From f5a902ba492aca8aa6038d5b3538250c8d0f1190 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 17 Oct 2022 19:55:42 +0300 Subject: [PATCH] example: Update for pango API changes --- examples/src/bin/overlay-composition.rs | 2 +- examples/src/bin/pango-cairo.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/src/bin/overlay-composition.rs b/examples/src/bin/overlay-composition.rs index d2b12c2a8..103e30f84 100644 --- a/examples/src/bin/overlay-composition.rs +++ b/examples/src/bin/overlay-composition.rs @@ -89,7 +89,7 @@ fn create_pipeline() -> Result { // The PangoFontMap represents the set of fonts available for a particular rendering system. let fontmap = pangocairo::FontMap::new(); // Create a new pango layouting context for the fontmap. - let context = fontmap.create_context().unwrap(); + let context = fontmap.create_context(); // Create a pango layout object. This object is a string of text we want to layout. // It is wrapped in a LayoutWrapper (defined above) to be able to send it across threads. let layout = LayoutWrapper(pango::Layout::new(&context)); diff --git a/examples/src/bin/pango-cairo.rs b/examples/src/bin/pango-cairo.rs index 3a2e55f4e..81badbced 100644 --- a/examples/src/bin/pango-cairo.rs +++ b/examples/src/bin/pango-cairo.rs @@ -90,7 +90,7 @@ fn create_pipeline() -> Result { // The PangoFontMap represents the set of fonts available for a particular rendering system. let fontmap = pangocairo::FontMap::new(); // Create a new pango layouting context for the fontmap. - let context = fontmap.create_context().unwrap(); + let context = fontmap.create_context(); // Create a pango layout object. This object is a string of text we want to layout. // It is wrapped in a LayoutWrapper (defined above) to be able to send it across threads. let layout = LayoutWrapper(pango::Layout::new(&context));