Re: A new signal for the GtkFileChooser interface



On Wed, 2004-01-07 at 11:14, Paolo Bacchilega wrote:
> Il mer, 2004-01-07 alle 16:46, Owen Taylor ha scritto:
> > On Wed, 2004-01-07 at 09:35, Paolo Bacchilega wrote:
> > > Hi,
> > > 
> > > I need a "filename-entry-changed" kind of signal, emitted every time the
> > > filename entry changes its value, is it possible to add it?
> > 
> > _Why_ do you need this signal?
> 
> In the File Roller Add dialog some widgets must be sensitive only if the
> user specifies a wildcard in the filename entry.  
> 
> For example if the user enters "*.jpg" the "Include subfolders" button
> is enabled, but if the user enters "foo.jpg" the "Include subfolders"
> button makes no sense so it must be disabled; the same applies to other
> options.

Allowing the user to enter wildcards is a bit strange. But in any
case, the selection-changed signal should do what you want as long
as the file selector is in save mode. (should as in "is supposed to",
I don't know if it actually does curently.)

In open mode, the selection will always correspond to a file in the
filesystem.

Regards,
						Owen





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