octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #39149] uixxx not working


From: Michael Goffioul
Subject: [Octave-bug-tracker] [bug #39149] uixxx not working
Date: Tue, 11 Jun 2013 19:46:50 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31

Follow-up Comment #3, bug #39149 (project octave):

This patch partially solve the problem. Now menus appear correctly, but the
uidemo still doesn't work as expected: the custom-created "File" and "Edit"
menus are empty.


diff -r 13b3b92ea99c libinterp/dldfcn/__init_fltk__.cc
--- a/libinterp/dldfcn/__init_fltk__.cc Fri May 24 15:41:52 2013 -0400
+++ b/libinterp/dldfcn/__init_fltk__.cc Tue Jun 11 15:43:48 2013 -0400
@@ -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)
   {


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39149>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]