Re: [PATCH] Updated sendto
Marcel Holtmann <[email protected]>
| Newsgroups | gmane.linux.bluez.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Bastien,
>>>
>>> And one that works with obex-data-server 0.1
>>
>> Updated against current CVS, and fix a memleak when getting the
>> adapters
>> list. New main.c file attached as well, for easier review.
>
> Updated against current CVS.
I've been through the main.c as whole and the actual patch. As you
saw, I took the dialogs out of it since that made sense and was a sane
way to do it. I mentioned that I want small patches and if they are
small and logical, I apply them most of the times immediately. Smaller
patches are easier to review. I am not taking a big chunk blindly.
So current patch is not acceptable. It is actually bad. So first
action must be to remove all these useless comments. An example is this:
+ /* Go into main loop */
gtk_main();
Put comments where the code is unclear and not were everybody knows
what it is doing. This is a perfect example of wrongly commenting code.
Second of all, I am unhappy with all this usage of gtk_main_quit() in
various functions. Can we not just structure the code a lot more
cleaner to avoid multiple calls of it. Besides the signal handling, I
would expect one extra call in case we automatically wanna close the
progress dialog.
After that, I like to see the current sendto patches to look like the
obex-send progress bar. It should be not that complicated.
Then we go for sending multiple files after another.
Regards
Marcel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/