Ethereal-cvs: [Ethereal-cvs] rev 13330: /trunk/gtk/: main.c /trunk/: file.c file.h

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Mon, 07 Feb 2005 00:54:57 -0000
User: ulfl
Date: 2005/02/06 06:54 PM

Log:
 Instead of calling each single thing when doing/finish a file operation, file.c shouldn't call all the GUI related functions itself, instead throwing some kind of Events to it's caller(s). 
 
 I've implemented a very simple callback mechanism which provides exactly this. I've tried GHook from GLib before, but this doesn't seem to be the right thing, as it's too inflexible for the purpose here.
 
 So I've implemented a callback function in main.c which receives all "events" and spreads them to menu, statusbar and itself.
 
 I would see this implementation as a prototype which may need  improvements. Please comment the changes.

Directory: /trunk/gtk/
  Changes    Path          Action
  +262 -0    main.c        Modified

Directory: /trunk/
  Changes    Path          Action
  +49 -154   file.c        Modified
  +23 -0     file.h        Modified



http://anonsvn.ethereal.com/viewcvs/viewcvs.py?rev=13330&view=rev