2007-03-18 Don Allingham <don@gramps-project.org>
* src/ViewManager.py: use tooltips for buttons when text disabled (bug 959) * src/Editors/_EditSourceRef.py: fix help button (bug 960), delete the cancel on the comment tab. * src/Editors/_EditReference.py: make sure help button is sensitive if used. * src/GrampsDbUtils/_GedcomParse.py: check for UTF16 BOM * src/ArgHandler.py: use STOCK_NEW for create of db (bug 947) * src/DbLoader.py: use STOCK_NEW for create of db (bug 947) svn: r8304
This commit is contained in:
@ -205,6 +205,7 @@ class ViewManager:
|
||||
self.active_page = None
|
||||
self.views = []
|
||||
self.pages = []
|
||||
self.tips = gtk.Tooltips()
|
||||
self._key = None
|
||||
self.file_loaded = False
|
||||
self._build_main_window()
|
||||
@ -747,6 +748,10 @@ class ViewManager:
|
||||
self.prev_nav = PageView.NAVIGATION_NONE
|
||||
|
||||
use_text = Config.get(Config.SIDEBAR_TEXT)
|
||||
if use_text:
|
||||
self.tips.disable()
|
||||
else:
|
||||
self.tips.enable()
|
||||
|
||||
index = 0
|
||||
for page_def in self.views:
|
||||
@ -776,6 +781,7 @@ class ViewManager:
|
||||
|
||||
# create the button and add it to the sidebar
|
||||
button = gtk.ToggleButton()
|
||||
self.tips.set_tip(button, page_title)
|
||||
hbox = gtk.HBox()
|
||||
hbox.show()
|
||||
image = gtk.Image()
|
||||
|
Reference in New Issue
Block a user