[libhandy/hdy-action-row/subtitle: 424/424] HdyActionRow: set the subtitle as a tooltip



commit e76441950b9eaa9cdf85a2b882dbca88ebf9be25
Author: Bilal Elmoussaoui <bil elmoussaoui gmail com>
Date:   Wed Jun 12 18:59:16 2019 +0200

    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

 src/hdy-action-row.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/hdy-action-row.c b/src/hdy-action-row.c
index d95b106f..9f41e83f 100644
--- a/src/hdy-action-row.c
+++ b/src/hdy-action-row.c
@@ -597,6 +597,7 @@ hdy_action_row_set_subtitle (HdyActionRow *self,
     return;
 
   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),
                           subtitle != NULL && g_strcmp0 (subtitle, "") != 0);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]