[Top][All Lists]

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

[Octave-bug-tracker] [bug #55795] Default Qt figure toolbar should use a

From: Rik
Subject: [Octave-bug-tracker] [bug #55795] Default Qt figure toolbar should use an uitoolbar
Date: Tue, 12 Mar 2019 12:26:26 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #16, bug #55795 (project octave):

There is a similar issue for the "menubar" property.  In
__add_default_menu__.m this is handled by adding a listener on the "menubar"
property which invokes a callback

  ## Add/Restore figure listeners
  toggle_visibility_cb (hf, [], hmenu);
  addlistener (hf, "menubar", address@hidden, hmenu});

where toggle_visibility_cb is

function toggle_visibility_cb (hf, ~, hmenu)
  if (strcmp (get (hf, "menubar"), "none"))
    set (hmenu, "visible", "off")
    set (hmenu, "visible", "on")

Maybe the simplest thing is to set up a similar callback for the "toolbar"
property.  The toggle_visibility_cb for menubar would also need to be extended
to call the toolbar_visibility_cb, or a second listener could be added to the
"menubar" property. 


Reply to this item at:


  Message sent via Savannah

reply via email to

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