[Top][All Lists]

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

[Octave-bug-tracker] [bug #41665] 'qt' is default graphics toolkit even

From: Michael C. Grant
Subject: [Octave-bug-tracker] [bug #41665] 'qt' is default graphics toolkit even when it is not available
Date: Mon, 10 Mar 2014 15:49:38 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9 (KHTML, like Gecko) Version/7.0.2 Safari/537.74.9

Follow-up Comment #19, bug #41665 (project octave):

I've created a patch that modifies the default toolkit setting as available
toolkits are added. Priority is given to "qt", then "fltk", then "gnuplot".

One side effect of this approach is that if you call "graphics_toolkit" from
the Octave command line before creating a figure, it will return the empty
string. This is because the defaultfigure__graphics_toolkit__ value is
initialized *before* the available toolkit list is initialized.

However, it looks like the code handles this properly, because if you attempt
a plot, it seems to re-initialize this value. Subsequent calls to
"graphics_toolkit" produce a non-empty result with the expected value ("fltk"
for cli, "qt" for guy).

So it's a bit clumsy, but arguably no more clumsy then having a default value
set before the available choices are loaded. And it has the added bonus that
it works! I do think that the empty graphics_toolkit issue should be rectified
somehow, but that requires more code rearrangement than I am willing to
attempt without guidance. One option is to eliminate
defaultfigure__graphics_toolkit__ as a static property and replace it with
calls to gtk_manager.

(file #30844)

Additional Item Attachment:

File name: toolkit.diff                   Size:2 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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