Attached is a patch to add grouped downloads functionality to the gtk2
interface.  I had to make some decisions about appearance (helped by the
folks on IRC) but of course we can change it later.

Check it out:  http://dist.struggle.ca/downloads4.jpg (sorry, I'm too
tired to wait for a 'better' screenshot)

I hope this won't be too big of a deal to integrate.  The main problem
is I had to convert the CLists into TreeViews which are Gtk2 specific so
download_gui had to be split into GTK1 and GTK2 parts (similar to what
we have for search_gui). 

I didn't include the glade files in the diff since they waste space and
you probably won't need them anyway (the changes are trivial).  I can
send them if you need.


Glade Changes:

In the main_downloads_tab
- Remove clist_downloads and clist_downloads_queue
- Replace with treeview_downloads and treeview_downloads_queue



File Layout Changes:

- Instead of downloads_gui.h/c and downloads_cb.h/c we now have
  downloads_gui.h/c, downloads_gui2.c, downloads_cb.h/c,,
downloads_cb2.h/c and downloads_gui_common.h/c

- Structure follows that of search_gui files


Notes:

- There are a bunch of loose atoms floating around, these were
  there in CVS already.  I think the problem's in download.c with 
  creating and freeing the atoms, didn't have time to deal with it.

- Some of the popup functions aren't available for a group of downloads,
  for example "Start Now" as some of the grouped files shouldn't be able
  to be started.  I felt we could worry about this extra functionality
  later.


I am going to take a little rest from programming but my next big goal
is to look at grouped searchs and grouped downloads for gtk1.

Emile

(Attached tar contains diff and new source files)


Attachment: multi_dl_gtk2.tar.gz
Description: application/compressed-tar

Reply via email to