lib/GtkUtil: Set label on toolbar_append_button() calls.
This commit is contained in:
parent
1eea07dfd1
commit
fc21d509a9
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
auto button = ui::ToolButton::from(gtk_tool_button_new(new_local_image(icon), nullptr));
|
||||||
button_connect_callback(button, callback);
|
button_connect_callback(button, callback);
|
||||||
|
gtk_tool_button_set_label(GTK_TOOL_BUTTON(button), description);
|
||||||
toolbar_append(toolbar, button, description);
|
toolbar_append(toolbar, button, description);
|
||||||
return button;
|
return button;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue