Commit e7644195 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui Committed by Alexander Mikhaylenko
Browse files

HdyActionRow: set the subtitle as a tooltip

Currently, if the subtitle is long enough the user can't just hover the subtitle to read it's content and have to resize the window which is not great
parent 295a7057
...@@ -597,6 +597,7 @@ hdy_action_row_set_subtitle (HdyActionRow *self, ...@@ -597,6 +597,7 @@ hdy_action_row_set_subtitle (HdyActionRow *self,
return; return;
gtk_label_set_text (priv->subtitle, subtitle); gtk_label_set_text (priv->subtitle, subtitle);
gtk_widget_set_tooltip_text (GTK_WIDGET (priv->subtitle), subtitle);
gtk_widget_set_visible (GTK_WIDGET (priv->subtitle), gtk_widget_set_visible (GTK_WIDGET (priv->subtitle),
subtitle != NULL && g_strcmp0 (subtitle, "") != 0); subtitle != NULL && g_strcmp0 (subtitle, "") != 0);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment