[gnome-terminal/wip/headerbar: 2/8] window: Expose find action in headerbar
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/wip/headerbar: 2/8] window: Expose find action in headerbar
- Date: Mon, 5 Nov 2018 22:28:42 +0000 (UTC)
commit ce0b74593fb34f4a9aab287b512c0bdbf5da68f9
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Nov 5 23:24:50 2018 +0100
window: Expose find action in headerbar
Find is a useful standard action, and now that we are using client-side
decorations, we have a place to expose it more prominently than hiding
it in the menu.
For now this simply opens the existing dialog, in the future it may be
worth considering to make the UI available in a popover as well.
https://bugzilla.gnome.org/show_bug.cgi?id=756798
src/terminal-headerbar.ui | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
---
diff --git a/src/terminal-headerbar.ui b/src/terminal-headerbar.ui
index d96fd889..b75ee6b5 100644
--- a/src/terminal-headerbar.ui
+++ b/src/terminal-headerbar.ui
@@ -39,5 +39,26 @@
</child>
</object>
</child>
+ <child>
+ <object class="GtkButton">
+ <property name="visible">True</property>
+ <property name="focus_on_click">False</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="action-name">win.find</property>
+ <style>
+ <class name="image-button"/>
+ </style>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="icon_name">edit-find-symbolic</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="pack_type">end</property>
+ </packing>
+ </child>
</template>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]