44
55use std:: { cell:: RefCell , mem, rc:: Rc } ;
66
7- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
7+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
88use std:: sync:: Arc ;
99
10- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
10+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
1111use arc_swap:: ArcSwap ;
1212
1313use crate :: {
@@ -26,7 +26,7 @@ use crate::{
2626pub struct IconMenuItem {
2727 pub ( crate ) id : Rc < MenuId > ,
2828 pub ( crate ) inner : Rc < RefCell < crate :: platform_impl:: MenuChild > > ,
29- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
29+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
3030 pub ( crate ) compat : Arc < ArcSwap < crate :: CompatMenuItem > > ,
3131}
3232
@@ -46,7 +46,7 @@ impl IsMenuItem for IconMenuItem {
4646}
4747
4848impl IconMenuItem {
49- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
49+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
5050 pub ( crate ) fn compat_menu_item (
5151 item : & crate :: platform_impl:: MenuChild ,
5252 ) -> crate :: CompatMenuItem {
@@ -81,13 +81,13 @@ impl IconMenuItem {
8181 None ,
8282 ) ;
8383
84- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
84+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
8585 let compat = Self :: compat_menu_item ( & inner) ;
8686
8787 Self {
8888 id : Rc :: new ( inner. id ( ) . clone ( ) ) ,
8989 inner : Rc :: new ( RefCell :: new ( inner) ) ,
90- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
90+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
9191 compat : Arc :: new ( ArcSwap :: from_pointee ( compat) ) ,
9292 }
9393 }
@@ -112,13 +112,13 @@ impl IconMenuItem {
112112 Some ( id. clone ( ) ) ,
113113 ) ;
114114
115- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
115+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
116116 let compat = Self :: compat_menu_item ( & inner) ;
117117
118118 Self {
119119 id : Rc :: new ( id) ,
120120 inner : Rc :: new ( RefCell :: new ( inner) ) ,
121- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
121+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
122122 compat : Arc :: new ( ArcSwap :: from_pointee ( compat) ) ,
123123 }
124124 }
@@ -144,13 +144,13 @@ impl IconMenuItem {
144144 None ,
145145 ) ;
146146
147- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
147+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
148148 let compat = Self :: compat_menu_item ( & inner) ;
149149
150150 Self {
151151 id : Rc :: new ( inner. id ( ) . clone ( ) ) ,
152152 inner : Rc :: new ( RefCell :: new ( inner) ) ,
153- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
153+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
154154 compat : Arc :: new ( ArcSwap :: from_pointee ( compat) ) ,
155155 }
156156 }
@@ -178,13 +178,13 @@ impl IconMenuItem {
178178 Some ( id. clone ( ) ) ,
179179 ) ;
180180
181- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
181+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
182182 let compat = Self :: compat_menu_item ( & inner) ;
183183
184184 Self {
185185 id : Rc :: new ( id) ,
186186 inner : Rc :: new ( RefCell :: new ( inner) ) ,
187- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
187+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
188188 compat : Arc :: new ( ArcSwap :: from_pointee ( compat) ) ,
189189 }
190190 }
@@ -206,10 +206,10 @@ impl IconMenuItem {
206206 let mut inner = self . inner . borrow_mut ( ) ;
207207 inner. set_text ( text. as_ref ( ) ) ;
208208
209- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
209+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
210210 self . compat . store ( Arc :: new ( Self :: compat_menu_item ( & inner) ) ) ;
211211
212- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
212+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
213213 crate :: send_menu_update ( ) ;
214214 }
215215
@@ -223,10 +223,10 @@ impl IconMenuItem {
223223 let mut inner = self . inner . borrow_mut ( ) ;
224224 inner. set_enabled ( enabled) ;
225225
226- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
226+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
227227 self . compat . store ( Arc :: new ( Self :: compat_menu_item ( & inner) ) ) ;
228228
229- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
229+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
230230 crate :: send_menu_update ( ) ;
231231 }
232232
@@ -245,10 +245,10 @@ impl IconMenuItem {
245245 let mut inner = self . inner . borrow_mut ( ) ;
246246 inner. set_icon ( icon) ;
247247
248- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
248+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
249249 self . compat . store ( Arc :: new ( Self :: compat_menu_item ( & inner) ) ) ;
250250
251- #[ cfg( all( feature = "ksni" , target_os = "linux" ) ) ]
251+ #[ cfg( all( feature = "linux- ksni" , target_os = "linux" ) ) ]
252252 crate :: send_menu_update ( ) ;
253253 }
254254
0 commit comments