Hi James et. al.,
attached a growing patch, to compile Dia on Win32
again. It addresses - as usual - some missing includes.

Additional there are some things, which may need deeper looking:

* app/interface.c : reverted toolbar buttons to stretch to
        window borders. IHMO it looks quite nicer even with
        13 buttons

* app/paginate_psprint.c : diagram_print_ps(Diagram *dia)
        defined a local var *dia -> removed. Shouldn't GCC
        report this as bug, too?

* lib/dia_dirs.c : changed path calculation for G_OS_WIN32.
        Same functionality

* lib/plug-ins.c : Plug-in extension ".la" not required,
        at least not on Win32

* lib/properties.[h,c] : DIAVAR PropNumData. Don't try export 
        variables, whiches pointer should be used in constant
        struct. Use static vars instead.        

The last thing was resolved some time ago, see below.
(James, it's the same issue recently discussed on PyGtk list)

At 00:52 02.03.00 +0100, Hans Breuer wrote:
> ...
>properties.h uses GIMPVAR to export prop_std_line_width_data, etc.
>
>Thanks for using it, but because later on there is used a pointer
>to these vars, which breaks the built (initializer is not a constant).
>
>The address depends on the dynamic linker and probably isn't resolved
>when initializing is needed.
>I've fixed it by declaring these vars as static, which will result
>in many instances (one for every includage of properties.h).
>

Thanks in advance for applying this patch to CVS,

        Hans
 

dia-00-04-18-hb.zip


-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to 
get along without it.                -- Dilbert

Reply via email to