[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 04/08: grc: no icon in search entry box for
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 04/08: grc: no icon in search entry box for old PyGTK versions |
Date: |
Wed, 1 Oct 2014 19:32:58 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 864629c963b66d8d728c70ac856ae309d84a6ebb
Author: Sebastian Koslowski <address@hidden>
Date: Fri Sep 5 11:45:28 2014 +0200
grc: no icon in search entry box for old PyGTK versions
---
grc/gui/BlockTreeWindow.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/grc/gui/BlockTreeWindow.py b/grc/gui/BlockTreeWindow.py
index b04a4dd..76eebdb 100644
--- a/grc/gui/BlockTreeWindow.py
+++ b/grc/gui/BlockTreeWindow.py
@@ -58,10 +58,13 @@ class BlockTreeWindow(gtk.VBox):
# search entry
self.search_entry = gtk.Entry()
- self.search_entry.set_icon_from_stock(gtk.ENTRY_ICON_PRIMARY,
gtk.STOCK_FIND)
- self.search_entry.set_icon_activatable(gtk.ENTRY_ICON_PRIMARY, False)
- self.search_entry.set_icon_from_stock(gtk.ENTRY_ICON_SECONDARY,
gtk.STOCK_CLOSE)
- self.search_entry.connect('icon-release', self._handle_icon_event)
+ try:
+ self.search_entry.set_icon_from_stock(gtk.ENTRY_ICON_PRIMARY,
gtk.STOCK_FIND)
+ self.search_entry.set_icon_activatable(gtk.ENTRY_ICON_PRIMARY,
False)
+ self.search_entry.set_icon_from_stock(gtk.ENTRY_ICON_SECONDARY,
gtk.STOCK_CLOSE)
+ self.search_entry.connect('icon-release', self._handle_icon_event)
+ except AttributeError:
+ pass # no icon for old pygtk
self.search_entry.connect('changed', self._update_search_tree)
self.search_entry.connect('key-press-event',
self._handle_search_key_press)
self.pack_start(self.search_entry, False)
- [Commit-gnuradio] [gnuradio] branch maint updated (ff7e74b -> 1edeff1), git, 2014/10/01
- [Commit-gnuradio] [gnuradio] 08/08: Merge remote-tracking branch 'gnuradio-wg-grc/maint_grcwg' into maint, git, 2014/10/01
- [Commit-gnuradio] [gnuradio] 06/08: grc: fix missing xterm (Bug #725), git, 2014/10/01
- [Commit-gnuradio] [gnuradio] 01/08: grc: yet another py26 incompatibility, git, 2014/10/01
- [Commit-gnuradio] [gnuradio] 07/08: grc: fix lagging drag and drop, round two, git, 2014/10/01
- [Commit-gnuradio] [gnuradio] 03/08: grc: update all flowgraphs when hiding port labels, git, 2014/10/01
- [Commit-gnuradio] [gnuradio] 05/08: grc: fix lagging drag and drop, git, 2014/10/01
- [Commit-gnuradio] [gnuradio] 02/08: grc: fix search entry box for old PyGTK versions, git, 2014/10/01
- [Commit-gnuradio] [gnuradio] 04/08: grc: no icon in search entry box for old PyGTK versions,
git <=