fix use of deprecated gtk toolbar tooltips API when GTK_NEW_TOOLTIP_API is defined
git-svn-id: svn://localhost/ardour2/branches/3.0@4317 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
596d699b95
commit
dcc8f688cd
@ -539,12 +539,16 @@ ToolbarStyle Toolbar::get_toolbar_style() const
|
||||
|
||||
void Toolbar::set_tooltips(bool enable)
|
||||
{
|
||||
gtk_toolbar_set_tooltips(gobj(), static_cast<int>(enable));
|
||||
#ifndef GTK_NEW_TOOLTIP_API
|
||||
gtk_toolbar_set_tooltips(gobj(), static_cast<int>(enable));
|
||||
#endif
|
||||
}
|
||||
|
||||
bool Toolbar::get_tooltips() const
|
||||
{
|
||||
#ifndef GTK_NEW_TOOLTIP_API
|
||||
return gtk_toolbar_get_tooltips(const_cast<GtkToolbar*>(gobj()));
|
||||
#endif
|
||||
}
|
||||
|
||||
void Toolbar::unset_toolbar_style()
|
||||
|
Loading…
Reference in New Issue
Block a user