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

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

[Octave-bug-tracker] [bug #41821] gui-release: octave-cli selects 'qt' g


From: Michael C. Grant
Subject: [Octave-bug-tracker] [bug #41821] gui-release: octave-cli selects 'qt' graphics_toolkit by default, but it is not available
Date: Mon, 10 Mar 2014 06:35:05 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?41821>

                 Summary: gui-release: octave-cli selects 'qt'
graphics_toolkit by default, but it is not available
                 Project: GNU Octave
            Submitted by: mcgrant
            Submitted on: Mon 10 Mar 2014 06:35:03 AM GMT
                Category: Plotting with OpenGL
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: Michael C. Grant
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

Consider the constructor for gtk_manager (libinterp/corefcn/graphics.cc):


gtk_manager::gtk_manager (void)
  : dtk (), available_toolkits (), loaded_toolkits ()
{
#if defined (HAVE_QT)
  dtk = display_info::display_available () ? "qt" : "gnuplot";
#elif defined (HAVE_FLTK)
  dtk = display_info::display_available () ? "fltk" : "gnuplot";
#else
  dtk = "gnuplot";
#endif
}


Notice that if HAVE_QT=1, then "qt" is entered as the default toolkit.
However, *this assumes that "qt" will eventually be added to the list of
available toolkits. This is not the case with octave-cli. It has "fltk" (if
HAVE_FLTK=1 as well), but not "qt". At least, not yet.

It looks like this function is implemented incorrectly, then. In the HAVE_QT
branch, it somehow needs to determine if the GUI is present, and if not,
select "fltk" instead of "qt". Right? If I knew how to do that I'd offer a
patch.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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