Re: FileSelection



On Wed, 2003-03-05 at 10:58, Jean-Marc Frigerio wrote:
or try a little black magic (see if you can
decompose the widget returned by get_column_widget to find the button).

Done, but what to do with an Gtk::Alignment ???

you could waste time digging around in the widget's child hierarchy, but
i wouldn't recommend it.  there are other solutions.


My mind is to have a select_all connected to this button

well, here's why i would say "don't do that":

1. column titles are typically used for sorting.  having the title
select all the elements is unexpected behavior.
2. no other application with have that behavior so no one will think to
try it
3. unless you change the label text, it will be undocumented.
4. there are other precedents which are MUCH less work:


recall the "add files to play list" file selector in XMMS...  it has
"add selected files" and "add all files in directory" buttons under the
listboxes but above the selection entry.

GtkFileSelection exports the main_vbox member specifically for this
purpose.  put a "Select all file in directory" button in there and
you're home free.

by using a multi-select file selection you will probably have some extra
work to do to get the filenames out.


also, this hack would work find in Gtk2, as well, with appropriate
changes to the list selection handling code.


-- 
muppet <scott asofyet org>




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