Menu

#11 Adding 2 tooltips in the outline

0.2
open
nobody
None
5
2014-08-23
2010-01-25
No

Here are two lines to add to latex/views.py to add tooltips in the outline to the buttons for showing tables and graphics :

# additional toolbar buttons
btn_graphics = gtk.ToggleToolButton()
btn_graphics.set_icon_widget(gtk.image_new_from_file(find_resource("icons/tree_includegraphics.png")))
btn_graphics.set_tooltip_text("Show graphics")
self._toolbar.insert(btn_graphics, -1)

btn_tables = gtk.ToggleToolButton()
btn_tables.set_icon_widget(gtk.image_new_from_file(find_resource("icons/tree_table.png")))
btn_tables.set_tooltip_text("Show tables")
self._toolbar.insert(btn_tables, -1)

instead of

# additional toolbar buttons
btn_graphics = gtk.ToggleToolButton()
btn_graphics.set_icon_widget(gtk.image_new_from_file(find_resource("icons/tree_includegraphics.png")))
self._toolbar.insert(btn_graphics, -1)

btn_tables = gtk.ToggleToolButton()
btn_tables.set_icon_widget(gtk.image_new_from_file(find_resource("icons/tree_table.png")))
self._toolbar.insert(btn_tables, -1)

at line 205 in svn rev 357.

Discussion


Log in to post a comment.