File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ impl ResApplications {
522
522
}
523
523
}
524
524
525
- pub fn get_search_bar ( & self ) -> & gtk:: SearchBar {
525
+ pub fn search_bar ( & self ) -> & gtk:: SearchBar {
526
526
& self . imp ( ) . search_bar
527
527
}
528
528
Original file line number Diff line number Diff line change @@ -634,7 +634,7 @@ impl ResProcesses {
634
634
}
635
635
}
636
636
637
- pub fn get_search_bar ( & self ) -> & gtk:: SearchBar {
637
+ pub fn search_bar ( & self ) -> & gtk:: SearchBar {
638
638
& self . imp ( ) . search_bar
639
639
}
640
640
Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ impl MainWindow {
310
310
let imp = self . imp ( ) ;
311
311
312
312
imp. apps
313
- . get_search_bar ( )
313
+ . search_bar ( )
314
314
. bind_property (
315
315
"search-mode-enabled" ,
316
316
& imp. apps_search_button . get ( ) ,
@@ -321,7 +321,7 @@ impl MainWindow {
321
321
. build ( ) ;
322
322
323
323
imp. processes
324
- . get_search_bar ( )
324
+ . search_bar ( )
325
325
. bind_property (
326
326
"search-mode-enabled" ,
327
327
& imp. processes_search_button . get ( ) ,
@@ -331,11 +331,11 @@ impl MainWindow {
331
331
. bidirectional ( )
332
332
. build ( ) ;
333
333
334
- // close the split view if we're in "mobile layout" and the user has clicked on an element
335
334
imp. content_stack . connect_visible_child_notify ( clone ! (
336
335
#[ weak]
337
336
imp,
338
337
move |_| {
338
+ // close the split view if we're in "mobile layout" and the user has clicked on an element
339
339
if imp. split_view. is_collapsed( ) {
340
340
imp. split_view. set_show_sidebar( false ) ;
341
341
}
You can’t perform that action at this time.
0 commit comments