changeset 17081: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 18137205f57d
children 58d3fba6df17
files libinterp/dldfcn/__init_fltk__.cc
diffstat 1 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)
   {