Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 27 Nov 2014, 00:38
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
How to filter file types in chooser?
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
arivas_2005

Joined: 25 Feb 2007
Posts: 100

PostPosted: Thu 26 Dec 2013, 13:46    Post_subject:  How to filter file types in chooser?  

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:
#!/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
Back to top
View user's profile Send_private_message 
Geoffrey


Joined: 30 May 2010
Posts: 1477
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: Thu 26 Dec 2013, 21:49    Post_subject:  

It doesn't support file filter http://code.google.com/p/gtkdialog/source/browse/trunk/examples/miscellaneous/chooser?r=292&spec=svn320
_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0542s ][ Queries: 11 (0.0192s) ][ GZIP on ]