Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webtoolbar.py
diff options
context:
space:
mode:
authorEben Eliason <eben@sugar.(none)>2008-06-16 22:46:09 (GMT)
committer Eben Eliason <eben@sugar.(none)>2008-06-16 22:46:09 (GMT)
commit5ff37788bdce825d8ce10f8c81828bb9e36c52ce (patch)
treeb3b5f29dd281512bb52eb0d1d5ea73af164a5292 /webtoolbar.py
parentc4c891f2ac9021df1a1cf91b3b0b66ef4492b0b2 (diff)
Clean up appearance of URI auto-completion popup
Diffstat (limited to 'webtoolbar.py')
-rwxr-xr-xwebtoolbar.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/webtoolbar.py b/webtoolbar.py
index cb40ddf..b79cfc6 100755
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -94,18 +94,18 @@ class WebEntry(AddressEntry):
cell = gtk.CellRendererText()
cell.props.ellipsize = pango.ELLIPSIZE_END
cell.props.ellipsize_set = True
+ cell.props.font = 'Bold'
column.pack_start(cell, True)
- column.set_attributes(cell, text=self._COL_ADDRESS)
+ column.set_attributes(cell, text=self._COL_TITLE)
cell = gtk.CellRendererText()
cell.props.ellipsize = pango.ELLIPSIZE_END
cell.props.ellipsize_set = True
cell.props.alignment = pango.ALIGN_LEFT
- cell.props.font = 'Bold'
column.pack_start(cell)
- column.set_attributes(cell, text=self._COL_TITLE)
+ column.set_attributes(cell, text=self._COL_ADDRESS)
return view
@@ -123,9 +123,9 @@ class WebEntry(AddressEntry):
entry_x, entry_y = self.window.get_origin()
entry_w, entry_h = self.size_request()
- x = entry_x
+ x = entry_x + entry_h / 2
y = entry_y + entry_h
- width = self.allocation.width
+ width = self.allocation.width - entry_h
height = gtk.gdk.screen_height() / 3
i = self._search_view.get_model().get_iter_first()