mirror of
https://gitlab.gnome.org/World/Authenticator.git
synced 2025-03-04 08:44:40 +01:00
preferences: Set search-enabled=False
In general we don't use this when there are so few preferences.
This commit is contained in:
parent
f9aaae6863
commit
2721b9145d
2 changed files with 0 additions and 33 deletions
|
@ -9,7 +9,6 @@
|
||||||
<template class="PreferencesWindow" parent="AdwPreferencesDialog">
|
<template class="PreferencesWindow" parent="AdwPreferencesDialog">
|
||||||
<property name="content-width">550</property>
|
<property name="content-width">550</property>
|
||||||
<property name="content-height">570</property>
|
<property name="content-height">570</property>
|
||||||
<property name="search-enabled">True</property>
|
|
||||||
<child>
|
<child>
|
||||||
<object class="AdwPreferencesPage">
|
<object class="AdwPreferencesPage">
|
||||||
<property name="icon-name">applications-system-symbolic</property>
|
<property name="icon-name">applications-system-symbolic</property>
|
||||||
|
|
|
@ -555,38 +555,6 @@ impl PreferencesWindow {
|
||||||
fn setup_actions(&self) {
|
fn setup_actions(&self) {
|
||||||
let imp = self.imp();
|
let imp = self.imp();
|
||||||
|
|
||||||
imp.camera_page.connect_map(clone!(
|
|
||||||
#[weak(rename_to = win)]
|
|
||||||
self,
|
|
||||||
move |_| {
|
|
||||||
win.set_search_enabled(false);
|
|
||||||
}
|
|
||||||
));
|
|
||||||
|
|
||||||
imp.camera_page.connect_unmap(clone!(
|
|
||||||
#[weak(rename_to = win)]
|
|
||||||
self,
|
|
||||||
move |_| {
|
|
||||||
win.set_search_enabled(true);
|
|
||||||
}
|
|
||||||
));
|
|
||||||
|
|
||||||
imp.password_page.connect_map(clone!(
|
|
||||||
#[weak(rename_to = win)]
|
|
||||||
self,
|
|
||||||
move |_| {
|
|
||||||
win.set_search_enabled(false);
|
|
||||||
}
|
|
||||||
));
|
|
||||||
|
|
||||||
imp.password_page.connect_unmap(clone!(
|
|
||||||
#[weak(rename_to = win)]
|
|
||||||
self,
|
|
||||||
move |_| {
|
|
||||||
win.set_search_enabled(true);
|
|
||||||
}
|
|
||||||
));
|
|
||||||
|
|
||||||
let show_camera_page = gio::ActionEntry::builder("show_camera_page")
|
let show_camera_page = gio::ActionEntry::builder("show_camera_page")
|
||||||
.activate(clone!(
|
.activate(clone!(
|
||||||
#[weak(rename_to = win)]
|
#[weak(rename_to = win)]
|
||||||
|
|
Loading…
Add table
Reference in a new issue