Kaydet (Commit) 60b3664b authored tarafından Caolán McNamara's avatar Caolán McNamara

use tool button label as default tooltip

Change-Id: I67e1697a1621d1ff645eecb2f010041ce84448b8
Reviewed-on: https://gerrit.libreoffice.org/72318
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 3490c872
......@@ -9706,6 +9706,13 @@ private:
gtk_widget_show(pImage);
}
}
// if no tooltip reuse the label as default tooltip
if (!gtk_widget_get_tooltip_text(pWidget))
{
if (const gchar* label = gtk_tool_button_get_label(pToolButton))
gtk_widget_set_tooltip_text(pWidget, label);
}
}
//set helpids
......
Markdown is supported
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