From 337eaad19d0d72eafc9ab513369b8bc3a53353af Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Fri, 17 Oct 2025 11:39:26 +0100 Subject: [PATCH] fix(gtk4): remove deprecated warnings on style_context methods --- gtk4/src/style_context.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gtk4/src/style_context.rs b/gtk4/src/style_context.rs index 22c3110748f3..c1b0c59a9e9b 100644 --- a/gtk4/src/style_context.rs +++ b/gtk4/src/style_context.rs @@ -5,8 +5,6 @@ use glib::translate::*; use crate::{ffi, prelude::*, StyleContext, StyleProvider}; impl StyleContext { - #[deprecated(note = "Use gtk::style_context_add_provider_for_display instead.")] - #[doc(alias = "gtk_style_context_add_provider_for_display")] pub fn add_provider_for_display( display: &impl IsA, provider: &impl IsA, @@ -22,8 +20,6 @@ impl StyleContext { } } - #[deprecated(note = "Use gtk::style_context_remove_provider_for_display instead.")] - #[doc(alias = "gtk_style_context_remove_provider_for_display")] pub fn remove_provider_for_display( display: &impl IsA, provider: &impl IsA,