bugGNU Octave - Bugs: bug #44526, FLTK menus and toolbar don't show...

 
 

bug #44526: FLTK menus and toolbar don't show after switching from Qt toolkit

Submitter:  Rik <rik5>
Submitted:  Thu 12 Mar 2015 10:06:27 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  2 - Minor
Priority:  3 - Low Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 24 Oct 2018 11:15:45 AM UTC, comment #4: 

This is no more an issue now that both Qt and FLTK have the same way of building default menus.

Closing report as fixed.

Pantxo Diribarne <pantxo>
Group Member
Thu 19 Mar 2015 06:05:03 AM UTC, comment #3: 

I'm not seeing the refresh() requirement, and I can't recall seeing anything like that in the past.

Dan Sebald <sebald>
Mon 16 Mar 2015 03:16:07 PM UTC, comment #2: 

Another problem is that when switching to FLTK there is occasionally no figure shown.  One needs to execute refresh() in order to see it drawn.  Could do that at the end of graphics_toolkit, although it suggests that there is something wrong with the updating routings in graphics.cc that it doesn't realize that the figure window needs to be redrawn after switching toolkits.

Sample code:


./run-octave -f --no-gui
graphics_toolkit qt
sombrero
graphics_toolkit (1, 'fltk')
graphics_toolkit (1, 'gnuplot')
graphics_toolkit (1, 'fltk')
# refresh() needed here


Rik <rik5>
Group administrator
Thu 12 Mar 2015 10:16:03 PM UTC, comment #1: 

The problem is located in figure.m


if (init_new_figure)
  f = __go_figure__ (f, varargin{:});
  __add_default_menu__ (f);
  __add_default_mouse_modes__ (f);
elseif (nargs > 0)
  set (f, varargin{:});
endif


Switching toolkits only changes the renderer, but doesn't cause _add_default_menu_ to be invoked.  It's always been a bit of a kluge, but probably not worth fixing unless someone sees an easy way to do it.

Rik <rik5>
Group administrator
Thu 12 Mar 2015 10:06:27 PM UTC, original submission:  

This is minor, but one is supposed to be able to change the toolkit on an existing plot without closing it, switching toolkits, and then replotting.

Sample code:


./run-octave -f --no-gui
graphics_toolkit qt
sombrero
graphics_toolkit (gcf, "fltk")


I've attached a png image of the window that results.

Interestingly, going in the reverse direction works.  Starting with an fltk plot and switching to qt works correctly, and then switching that same figure back to fltk also works.

Rik <rik5>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #33325:  fltk_no_menu.png added by rik5 (57KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by sebald (Posted a comment)
  • -email is unavailable- added by rik5 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-10-24 pantxo StatusNone Fixed
        Open/ClosedOpen Closed
    2015-04-17 rik5 Priority5 - Normal 3 - Low
    2015-03-12 rik5 Attached File- Added fltk_no_menu.png, #33325

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code