mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-24 20:22:10 +00:00
Widget: Fix delayed "SetText"
This commit is contained in:
parent
507cf222fb
commit
3517fa5de8
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ void Button::SetText(const std::string& text)
|
||||||
{
|
{
|
||||||
if (m_Widget && text != m_Text)
|
if (m_Widget && text != m_Text)
|
||||||
{
|
{
|
||||||
gtk_button_set_label((GtkButton*)m_Widget, m_Text.c_str());
|
gtk_button_set_label((GtkButton*)m_Widget, text.c_str());
|
||||||
}
|
}
|
||||||
m_Text = text;
|
m_Text = text;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue