# HG changeset patch # User Michael Goffioul # Date 1374768158 -7200 # Node ID 7a67ab7c47714827ff6886327942e65f1655c2aa # Parent 18137205f57db176574be1f2f6954f68ab3d89ee Initialize uimenu objects for the fltk toolkit. * libinterp/dldfcn/__init_fltk__.cc (fltk_graphics_toolkit): Modify the initialze method to include uimenu objects. diff --git a/libinterp/dldfcn/__init_fltk__.cc b/libinterp/dldfcn/__init_fltk__.cc --- a/libinterp/dldfcn/__init_fltk__.cc +++ b/libinterp/dldfcn/__init_fltk__.cc @@ -1845,7 +1845,18 @@ bool is_valid (void) const { return true; } bool initialize (const graphics_object& go) - { return go.isa ("figure"); } + { + if (go.isa ("figure") + || go.isa ("uimenu")) + { + if (go.isa ("uimenu")) + update (go, uimenu::properties::ID_LABEL); + + return true; + } + + return false; + } void finalize (const graphics_object& go) {