[meld] Use left/right bracket arrows for a slightly more Gnome-ish look
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Use left/right bracket arrows for a slightly more Gnome-ish look
- Date: Sat, 28 Apr 2012 23:21:04 +0000 (UTC)
commit 52bcfbaccf3efbad857622a505085301526946c0
Author: Kai Willadsen <kai willadsen gmail com>
Date: Wed Jan 19 13:12:25 2011 +1000
Use left/right bracket arrows for a slightly more Gnome-ish look
data/ui/findbar.ui | 18 ++++++++++++++++--
meld/ui/findbar.py | 5 ++++-
2 files changed, 20 insertions(+), 3 deletions(-)
---
diff --git a/data/ui/findbar.ui b/data/ui/findbar.ui
index 7d05407..b474146 100644
--- a/data/ui/findbar.ui
+++ b/data/ui/findbar.ui
@@ -1,7 +1,16 @@
<?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>
diff --git a/meld/ui/findbar.py b/meld/ui/findbar.py
index ddaf5e7..6eff9c8 100644
--- a/meld/ui/findbar.py
+++ b/meld/ui/findbar.py
@@ -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):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]