I am trying to set an icon and name to my root application.
TGMainFrame::SetClassHints does the trick for the name, but SetIconPixmap does nothing. I’m trying to call it with the argument (“record.png”).
The picture is actually found in the root icons because the return value of the function is different than 0.
It calls TGX11::SetIconPixmap which seems to run fine :
It prints “here ok” with success when I call TGMainFrame::SetIconPixmap.
3. I guess it comes from the line XSetWMHints(… ? But it seems it is related to X11 and I don’t know how to go further to find a solution.
Do you have any idea how to solve my problem ? Specifications below.
void test()
{
TGMainFrame *f = new TGMainFrame(gClient->GetRoot(),800,600);
f -> SetIconPixmap("/home/root/icons/bld_rgb.png");
f -> SetClassHints("Testing", "Testing");
f -> MapWindow();
}
launched with the command $root -l test.C.
Result image below :
I understand that this is a minor issue, no problem. I was checking just in case. I might ask the question in few weeks then, unless you can update the post after the 14 days limit ?
Thanks for your time