Gtk2: do not set widget name, it's completelly unnecessary and produce unexpected behaviour if some keywords are in widget name.issue #21661

git-svn-id: trunk@36608 -
This commit is contained in:
zeljko 2012-04-06 13:24:28 +00:00
parent af2f01c513
commit 8b863c792d

View File

@ -918,7 +918,8 @@ begin
if (AComponent<>nil) and (AComponent.Name<>'') then
RCName:=AComponent.Name+'_'+RCName;
end;
gtk_widget_set_name(AWidget,PChar(RCName));
// do not set widget name issue #21661
// gtk_widget_set_name(AWidget,PChar(RCName));
//debugln('Set_RC_Name ',GetWidgetDebugReport(AWidget),' RCName="',RCName,'"');
gtk_widget_set_rc_style(AWidget);
end;