aboutsummaryrefslogtreecommitdiff
path: root/src/config_error_notification.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-02-06 08:59:13 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-02-06 09:40:34 +0400
commitd2a4e6a0cbc839813c6d4ef68b75820d87cfc5b0 (patch)
tree1fd29c8455fa502594ae1279915af3b56c44b8a3 /src/config_error_notification.rs
parent8916b18c6bdd420857adf1a2c49a6f4b12493243 (diff)
downloadniri-d2a4e6a0cbc839813c6d4ef68b75820d87cfc5b0.tar.gz
niri-d2a4e6a0cbc839813c6d4ef68b75820d87cfc5b0.tar.bz2
niri-d2a4e6a0cbc839813c6d4ef68b75820d87cfc5b0.zip
Update dependencies
Diffstat (limited to 'src/config_error_notification.rs')
-rw-r--r--src/config_error_notification.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config_error_notification.rs b/src/config_error_notification.rs
index c4f314ca..2a3c0860 100644
--- a/src/config_error_notification.rs
+++ b/src/config_error_notification.rs
@@ -194,7 +194,7 @@ fn render(scale: i32, created_path: Option<&Path>) -> anyhow::Result<MemoryRende
let surface = ImageSurface::create(cairo::Format::ARgb32, 0, 0)?;
let cr = cairo::Context::new(&surface)?;
- let layout = pangocairo::create_layout(&cr);
+ let layout = pangocairo::functions::create_layout(&cr);
layout.set_font_description(Some(&font));
layout.set_markup(&text);
@@ -212,12 +212,12 @@ fn render(scale: i32, created_path: Option<&Path>) -> anyhow::Result<MemoryRende
cr.paint()?;
cr.move_to(padding.into(), padding.into());
- let layout = pangocairo::create_layout(&cr);
+ let layout = pangocairo::functions::create_layout(&cr);
layout.set_font_description(Some(&font));
layout.set_markup(&text);
cr.set_source_rgb(1., 1., 1.);
- pangocairo::show_layout(&cr, &layout);
+ pangocairo::functions::show_layout(&cr, &layout);
cr.move_to(0., 0.);
cr.line_to(width.into(), 0.);