Mercurial > octave-antonio
diff libinterp/dldfcn/__init_fltk__.cc @ 17079:7a67ab7c4771
Initialize uimenu objects for the fltk toolkit.
* libinterp/dldfcn/__init_fltk__.cc (fltk_graphics_toolkit): Modify the
initialze method to include uimenu objects.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Thu, 25 Jul 2013 18:02:38 +0200 |
parents | 5e30b1c950b8 |
children | ea19ea629a09 |
line wrap: on
line diff
--- a/libinterp/dldfcn/__init_fltk__.cc Wed Jul 24 23:12:46 2013 -0700 +++ b/libinterp/dldfcn/__init_fltk__.cc Thu Jul 25 18:02:38 2013 +0200 @@ -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) {