Gtk2: small optimization

git-svn-id: trunk@39549 -
This commit is contained in:
zeljko 2012-12-15 12:11:06 +00:00
parent 7a137ce8d3
commit f2be37ded9

View File

@ -988,7 +988,7 @@ begin
end else
begin
P := gtk_label_get_text(PGtkLabel(PGtkBin(BoxWidget)^.child));
B := (StrPas(P) <> AText) or (StrPas(P) = '');
B := (StrPas(P) <> AText);
gtk_widget_show(PGtkBin(BoxWidget)^.child);
gtk_button_set_label(PGtkButton(BoxWidget), PChar(Ampersands2Underscore(AText)));
gtk_button_set_use_underline(PGtkButton(BoxWidget), True);