On 6 April 2010 13:17, Søren Hauberg <[email protected]> wrote:
> Hmm, I think we need to stick to the standard approach here, such that
> your example would be
>
>  zenity_file_selection("Please select the best song ever",
>                        "timeout", 20,
>                        "default_filename", "InertiaticESP.ogg")

I have some more questions about this standard.

If the the users tries to define the same parameter twice, should he
get a warning, an error or none? If it's not an error, should the
function use the last or first value given? For example, what
behaviour should this give?

zenity_message ("Drugs are dangerous, you should use them under adult
supervision", "timeout", 5, "timeout", 10)

Also, should the parameters and values be case sensitive? At the
moment I wrote them to be insensitive (it's an anarchist API). The
following would work just as fine

zenity_message("Drugs are dangerous, you should use them under adult
supervision", "tImEoUt", 10)

On 11 April 2010 18:06, Søren Hauberg <[email protected]> wrote:
>> Another one, is this is my favorite, a list dialog
>> could be shown at the same time of the select files that would show
>> which files had already been selected.
>
> I don't think we can do this within the 'zenity' package. I think it
> requires a proper package for making GTK interfaces.

I was not thinking about a new interface (I don't think I have the
knowledge to do something like that yet). I was thinking about calling
the zenity_list function inside the zenity_file_selection if the the
"repeated selection" was on. This would show 2 windows, two different
calls to zenity. Every time the user selected new files, the list
dialog would de redone with the new files. I only taught myself how to
work with an hammer so all my problems look like nails.

But I guess you are right. I'll get all the functions working with the
standard API first. After the new release I will think about something
for this.

Carnẽ Draug

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to