Re: Multiple Selection



Hi,

Thomas Mailund <mailund mailund dk> writes:

> On Wed, 2001-08-29 at 00:23, Emre Turkay wrote:
> > How can I do multiple selection with GtkFileSelection ?
> 
> You can't as far as I can see, at least not directly.  The
> GtkFileSelection class only works for selecting single files.  You can
> probably come up with some hack to use it to select several files, but I
> think the best solution is to either sub-class it (*), or simply use a
> list to load the files in a directory into a list and select them from
> there.

I don't think       

   gtk_clist_set_selection_mode (GTK_CLIST (GTK_FILE_SELECTION (filesel)->file_list),
				 GTK_SELECTION_EXTENDED);

counts as a hack. It's a perfectly valid and documented way to get multiple
selections in a GtkFileSelection.


Salut, Sven







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