Phil,
That bug has been fixed in the alpha series of commits (post
1.4.7).
static Fl_Image* msg_icon;
void set_message_icon(const char** pixmap)
{
??????? if (msg_icon && msg_icon->data() == pixmap)
??????????????? return;
??????? delete msg_icon;
??????? Fl_Widget* msg = fl_message_icon();
??????? msg->label("");
??????? msg->align(FL_ALIGN_TOP_LEFT | FL_ALIGN_INSIDE);
??????? if (msg->parent() != NULL)
??????????????? msg->color(msg->parent()->color());
??????? msg->box(FL_NO_BOX);
??????? msg->image(msg_icon = new Fl_Pixmap(pixmap));
}
Your analysis of the bug is correct.? Your
membership in linuxham has been approved.
73, David, W1HKJ
On 2/12/23 10:09, Philip Rose via
groups.io wrote:
toggle quoted message
Show quoted text
Yes I know I should post on linuxham, but my application to join is still waiting to be approved after several days.
I am trying to compile flrig on raspberry Pi4 using a recent snapshot of fltk 1.4. It compiles OK but I get a run error.
It's failing in this code in graphics/icons.cxx li247+
void set_message_icon(const char** pixmap)
{
if (msg_icon && msg_icon->data() == pixmap)
return;
delete msg_icon;
Fl_Widget* msg = fl_message_icon();
msg->label("");
msg->align(FL_ALIGN_TOP_LEFT | FL_ALIGN_INSIDE);
msg->color(msg->parent()->color()); <<<<<<<<<
msg->box(FL_NO_BOX);
msg->image(msg_icon = new Fl_Pixmap(pixmap));
}
As if the widget is being created without a parent. I don't know if this is a feature of FLTK 1.4 v. the version of FLTK tested with.
Regards Phil GM3ZZA