Instead of calling each single thing when doing/finish a file operation, file.c shoul...
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 7 Feb 2005 00:54:46 +0000 (00:54 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 7 Feb 2005 00:54:46 +0000 (00:54 +0000)
commit4c7def914f4eee5f20fc21429a0d7369a612ac16
tree5e047e9ae04cd327b2be4652d850490555991aab
parent6a916966d0a5bda514832f31092d5dce923bd485
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.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13330 f5534014-38df-0310-8fa8-9805f1628bb7
file.c
file.h
gtk/main.c