Compare commits

...

1 Commits

Author SHA1 Message Date
Robert Roth
c84574724d menubutton: don't show tooltip if menu is open
Don't show tooltip for active menubuttons, as it might obstruct the
menu items.

When the menu is open (the menubutton is active), set the has-tooltip
gtk-widget property to false, to not show the tooltip.

https://gitlab.gnome.org/GNOME/gtk/issues/1234
2018-08-24 12:55:36 +03:00

View File

@@ -408,6 +408,8 @@ gtk_menu_button_toggled (GtkToggleButton *button)
GtkMenuButtonPrivate *priv = gtk_menu_button_get_instance_private (menu_button);
gboolean active = gtk_toggle_button_get_active (button);
gtk_widget_set_has_tooltip (GTK_WIDGET (button), !active);
if (priv->menu)
{
if (active && !gtk_widget_get_visible (priv->menu))