mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
replace deprecated Picture::for_pixbuf method with Picture::for_paintable
This commit is contained in:
parent
6ca1b3ce9a
commit
c5ca74702a
3 changed files with 13 additions and 8 deletions
|
|
@ -19,6 +19,7 @@ use crate::app::browser::{
|
|||
};
|
||||
use crate::Profile;
|
||||
use gtk::{
|
||||
gdk::Texture,
|
||||
gdk_pixbuf::Pixbuf,
|
||||
gio::{
|
||||
Cancellable, IOStream, NetworkAddress, SocketClient, SocketClientEvent, SocketConnectable,
|
||||
|
|
@ -673,7 +674,7 @@ impl Page {
|
|||
.set_title(uri_to_title(&uri).as_str());
|
||||
|
||||
// Update page content
|
||||
content.to_image(&buffer);
|
||||
content.to_image(&Texture::for_pixbuf(&buffer));
|
||||
|
||||
// Update window components
|
||||
update.activate(Some(&id));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue