Commit 52bcfbac authored by Kai Willadsen's avatar Kai Willadsen

Use left/right bracket arrows for a slightly more Gnome-ish look

parent 05070818
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 2.12 -->
<requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy toplevel-contextual -->
<object class="GtkArrow" id="arrow_left">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="arrow_type">left</property>
</object>
<object class="GtkArrow" id="arrow_right">
<property name="visible">True</property>
<property name="can_focus">False</property>
</object>
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<child>
......@@ -70,12 +79,14 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="image">arrow_left</property>
<property name="relief">none</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
......@@ -86,6 +97,8 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="image">arrow_right</property>
<property name="relief">none</property>
<property name="use_underline">True</property>
<property name="focus_on_click">False</property>
</object>
......@@ -171,6 +184,7 @@
<object class="GtkHBox" id="find_options">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
<object class="GtkCheckButton" id="match_case">
<property name="label" translatable="yes">_Match Case</property>
......
......@@ -24,10 +24,13 @@ from gettext import gettext as _
class FindBar(gnomeglade.Component):
def __init__(self, parent):
gnomeglade.Component.__init__(self, paths.ui_dir("findbar.ui"), "findbar")
gnomeglade.Component.__init__(self, paths.ui_dir("findbar.ui"),
"findbar", ["arrow_left", "arrow_right"])
gnomeglade.connect_signal_handlers(self)
self.textview = None
self.orig_base_color = self.find_entry.get_style().base[0]
self.arrow_left.show()
self.arrow_right.show()
parent.connect('set-focus-child', self.on_focus_child)
def on_focus_child(self, container, widget):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment