[dconf-editor] Allow switching to delay mode during a search.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Allow switching to delay mode during a search.
- Date: Thu, 13 Sep 2018 16:41:13 +0000 (UTC)
commit 656c081b62afa838f1066b88fb0eab1b1cb30d85
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Sep 13 16:16:26 2018 +0200
Allow switching to delay mode during a search.
editor/dconf-editor.ui | 1 -
editor/dconf-window.vala | 7 ++-----
2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/editor/dconf-editor.ui b/editor/dconf-editor.ui
index 32fb75b..eb9f9d9 100644
--- a/editor/dconf-editor.ui
+++ b/editor/dconf-editor.ui
@@ -32,7 +32,6 @@
<property name="visible">True</property>
<property name="valign">center</property>
<property name="focus-on-click">False</property>
- <property name="sensitive" bind-source="path_widget" bind-property="search-mode-enabled"
bind-flags="sync-create|invert-boolean"/>
<accelerator key="F10" signal="clicked"/> <!-- TODO report bug: property binding has to be
defined before accelerator -->
<style>
<class name="image-button"/>
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index b124f24..5f07953 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -783,19 +783,16 @@ private class DConfWindow : ApplicationWindow
private void update_hamburger_menu ()
{
- if (path_widget.search_mode_enabled)
- return;
-
GLib.Menu section;
GLib.Menu menu = new GLib.Menu ();
- if (current_type == ViewType.OBJECT) // mainly here for ensuring menu is never empty
+ if (current_type == ViewType.OBJECT) // TODO a better way to copy various representations of a key
name/value/path
{
Variant variant = new Variant.string (model.get_suggested_key_copy_text (current_path,
browser_view.last_context_id));
menu.append (_("Copy descriptor"), "app.copy(" + variant.print (false) + ")");
}
- else
+ else if (current_type != ViewType.SEARCH)
{
section = new GLib.Menu ();
Variant variant = new Variant.string (current_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]