Skip to content

Commit 712fe43

Browse files
committed
Revert "fix(gtk4): remove deprecated warnings on style_context methods"
This reverts commit 337eaad. The function on the type is indeed deprecated and the plain function is its replacement.
1 parent 08fba04 commit 712fe43

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gtk4/src/style_context.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use glib::translate::*;
55
use crate::{ffi, prelude::*, StyleContext, StyleProvider};
66

77
impl StyleContext {
8+
#[deprecated(note = "Use gtk::style_context_add_provider_for_display instead.")]
89
#[doc(alias = "gtk_style_context_add_provider_for_display")]
910
pub fn add_provider_for_display(
1011
display: &impl IsA<gdk::Display>,
@@ -21,6 +22,7 @@ impl StyleContext {
2122
}
2223
}
2324

25+
#[deprecated(note = "Use gtk::style_context_remove_provider_for_display instead.")]
2426
#[doc(alias = "gtk_style_context_remove_provider_for_display")]
2527
pub fn remove_provider_for_display(
2628
display: &impl IsA<gdk::Display>,

0 commit comments

Comments
 (0)