mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 00:59:38 +02:00
Gtk2: small optimization
git-svn-id: trunk@39549 -
This commit is contained in:
parent
7a137ce8d3
commit
f2be37ded9
@ -988,7 +988,7 @@ begin
|
|||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
P := gtk_label_get_text(PGtkLabel(PGtkBin(BoxWidget)^.child));
|
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_widget_show(PGtkBin(BoxWidget)^.child);
|
||||||
gtk_button_set_label(PGtkButton(BoxWidget), PChar(Ampersands2Underscore(AText)));
|
gtk_button_set_label(PGtkButton(BoxWidget), PChar(Ampersands2Underscore(AText)));
|
||||||
gtk_button_set_use_underline(PGtkButton(BoxWidget), True);
|
gtk_button_set_use_underline(PGtkButton(BoxWidget), True);
|
||||||
|
Loading…
Reference in New Issue
Block a user