xed-tab-label.c: Apply tab tooltip to the box containing the tab's

label and icon, regression from 808e77b052.
This commit is contained in:
Michael Webster 2019-12-16 11:34:39 -05:00
parent 808e77b052
commit 4eaddc1cb7
1 changed files with 4 additions and 2 deletions

View File

@ -46,7 +46,7 @@ struct _XedTabLabelPrivate
{
XedTab *tab;
GtkWidget *ebox;
GtkWidget *label_box;
GtkWidget *close_button;
GtkWidget *spinner;
GtkWidget *icon;
@ -121,7 +121,7 @@ sync_tip (XedTab *tab,
str = _xed_tab_get_tooltips (tab);
g_return_if_fail (str != NULL);
gtk_widget_set_tooltip_markup (tab_label->priv->ebox, str);
gtk_widget_set_tooltip_markup (tab_label->priv->label_box, str);
g_free (str);
}
@ -286,6 +286,8 @@ xed_tab_label_init (XedTabLabel *tab_label)
label = gtk_label_new ("");
tab_label->priv->label_box = hbox;
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_margin_start (label, 0);
gtk_widget_set_margin_end (label, 0);