How to filter file types in chooser?

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
arivas_2005
Posts: 212
Joined: Sun 25 Feb 2007, 14:39

How to filter file types in chooser?

#1 Post by arivas_2005 »

greetings

I need filter only files *.odt and *.ods

how i can modified in <chooser> for filter only files of the type "*.odt" and "*.ods" ?


Code: Select all

#!/bin/bash

DIRACTUAL=`pwd`

export MAIN_DIALOG='
<vbox>

   <chooser>
         <height>500</height>
         <width>600</width>
         <variable>CHOOSER</variable>
         <default>'$DIRACTUAL'</default>

   </chooser>

   <hbox>
          <button help></button>
          <button ok></button>
   </hbox>

</vbox>
'
gtkdialog --program=MAIN_DIALOG
Excuse my english

thanks

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#2 Post by Geoffrey »

[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

Post Reply