Difference between revisions of "Tooltips"
From GnuCash
(collect information) |
|||
Line 7: | Line 7: | ||
=== Old implementation in 1.8 === | === Old implementation in 1.8 === | ||
− | The 1.8-Widget for the multichoice-options was a [http://developer.gnome.org/doc/API/gtk/gtkoptionmenu.html GtkOptionMenu] widget. It contains a [http://developer.gnome.org/doc/API/gtk/gtkmenu.html GtkMenu] where [http://developer.gnome.org/doc/API/gtk/gtkmenuitem.html GtkMenuItem]s are inserted, which are created by gtk_menu_item_new_with_label. | + | The 1.8-Widget for the multichoice-options was a [http://developer.gnome.org/doc/API/gtk/gtkoptionmenu.html GtkOptionMenu] widget. It contains a [http://developer.gnome.org/doc/API/gtk/gtkmenu.html GtkMenu] where [http://developer.gnome.org/doc/API/gtk/gtkmenuitem.html GtkMenuItem]s are inserted, which are created by gtk_menu_item_new_with_label. This was all used in gnc_build_option_menu() in src/gnome-utils/dialog-utils.c. The tooltip was directly set on any new GtkMenuItem by calling gtk_tooltips_set_tip() on the GtkMenuItem. |
Revision as of 15:31, 6 January 2006
Tooltips in GnuCash
In the 1.8-branch of gnucash, all menu items and all multichoice-option values were having a corresponding tooltip that was displayed when the mouse hovers of the items. In the gnome2 version SVN-HEAD, these are no longer there due to missing features in gtk2. This page collects the information about feasible re-implementations of that feature.
- https://lists.gnucash.org/pipermail/gnucash-devel/2005-December/015139.html Discussion on gnucash-devel
Old implementation in 1.8
The 1.8-Widget for the multichoice-options was a GtkOptionMenu widget. It contains a GtkMenu where GtkMenuItems are inserted, which are created by gtk_menu_item_new_with_label. This was all used in gnc_build_option_menu() in src/gnome-utils/dialog-utils.c. The tooltip was directly set on any new GtkMenuItem by calling gtk_tooltips_set_tip() on the GtkMenuItem.