Skip to content

Commit 9ec046d

Browse files
committed
Function name consistency
1 parent e35cbbb commit 9ec046d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/ui/pages/applications/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ impl ResApplications {
522522
}
523523
}
524524

525-
pub fn get_search_bar(&self) -> &gtk::SearchBar {
525+
pub fn search_bar(&self) -> &gtk::SearchBar {
526526
&self.imp().search_bar
527527
}
528528

src/ui/pages/processes/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ impl ResProcesses {
634634
}
635635
}
636636

637-
pub fn get_search_bar(&self) -> &gtk::SearchBar {
637+
pub fn search_bar(&self) -> &gtk::SearchBar {
638638
&self.imp().search_bar
639639
}
640640

src/ui/window.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ impl MainWindow {
310310
let imp = self.imp();
311311

312312
imp.apps
313-
.get_search_bar()
313+
.search_bar()
314314
.bind_property(
315315
"search-mode-enabled",
316316
&imp.apps_search_button.get(),
@@ -321,7 +321,7 @@ impl MainWindow {
321321
.build();
322322

323323
imp.processes
324-
.get_search_bar()
324+
.search_bar()
325325
.bind_property(
326326
"search-mode-enabled",
327327
&imp.processes_search_button.get(),
@@ -331,11 +331,11 @@ impl MainWindow {
331331
.bidirectional()
332332
.build();
333333

334-
// close the split view if we're in "mobile layout" and the user has clicked on an element
335334
imp.content_stack.connect_visible_child_notify(clone!(
336335
#[weak]
337336
imp,
338337
move |_| {
338+
// close the split view if we're in "mobile layout" and the user has clicked on an element
339339
if imp.split_view.is_collapsed() {
340340
imp.split_view.set_show_sidebar(false);
341341
}

0 commit comments

Comments
 (0)