lib/GtkUtil: Set label on toolbar_append_button() calls.

This commit is contained in:
Marco Cawthorne 2021-06-07 09:26:36 +02:00
parent 1eea07dfd1
commit fc21d509a9

View file

@ -43,6 +43,7 @@ toolbar_append_button(ui::Toolbar toolbar, const char *description, const char *
{
auto button = ui::ToolButton::from(gtk_tool_button_new(new_local_image(icon), nullptr));
button_connect_callback(button, callback);
gtk_tool_button_set_label(GTK_TOOL_BUTTON(button), description);
toolbar_append(toolbar, button, description);
return button;
}