<div dir="ltr">I add some line to disp_callback.c like this<div><div>static void </div><div>add_custom_menu_item (GtkMenu *menu) </div><div>{</div><div>  GtkWidget *menu_item = gtk_menu_item_new_with_label(_("Custom Link"));</div><div>  g_signal_connect(GTK_OBJECT(menu_item), "activate", G_CALLBACK(call_python_callback), NULL);</div><div>  gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);</div><div>  gtk_widget_show(menu_item);</div><div>}</div></div><div>and i add some line to commands.c like this</div><div><div>#include <Python.h></div><div>...</div><div>void</div><div>call_python_callback (GtkAction *action)</div><div>{</div><div>    Py_SetProgramName("Testing"); /* optional but recommended */</div><div>    Py_Initialize();</div><div><br></div><div>    FILE *fp = fopen("tree.py", "r");</div><div>    if (fp == NULL)</div><div>        return 2;</div><div><br></div><div>    PyRun_SimpleFile(fp, "tree.py");</div><div>    Py_Finalize();</div><div><br></div><div>    fclose(fp);</div><div>    return 0;</div><div>}</div></div><div>When i make the compilation</div><div>commands.c:17:20: fatal error: Python.h: No such file or directory<br>How to solve that thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 2, 2015 at 7:00 PM,  <span dir="ltr"><<a href="mailto:dia-list-request@gnome.org" target="_blank">dia-list-request@gnome.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send dia-list mailing list submissions to<br>
        <a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://mail.gnome.org/mailman/listinfo/dia-list" target="_blank">https://mail.gnome.org/mailman/listinfo/dia-list</a><br>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:dia-list-request@gnome.org">dia-list-request@gnome.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:dia-list-owner@gnome.org">dia-list-owner@gnome.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of dia-list digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. DIA extend properties (Yosua Alvin Adi Soetrisno)<br>
   2. Re: DIA extend properties (Michael Ross)<br>
   3. Re: DIA extend properties (Octavio Alvarez)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 2 Apr 2015 00:21:24 +0700<br>
From: Yosua Alvin Adi Soetrisno <<a href="mailto:yosuaalvin.mti13@mail.ugm.ac.id">yosuaalvin.mti13@mail.ugm.ac.id</a>><br>
To: <a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a><br>
Subject: DIA extend properties<br>
Message-ID:<br>
        <<a href="mailto:CAFZkH6QiCST4-GtvdAE45omgL4emsLCFVRdLtHSOTJ5ChkCpSA@mail.gmail.com">CAFZkH6QiCST4-GtvdAE45omgL4emsLCFVRdLtHSOTJ5ChkCpSA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Let me introduce myself I'm Yosua from Gadjah Mada University, I'm still on<br>
progress working my master thesis. I'd like to develop OpenERP module based<br>
on DIA OpenERP Interface. My problem is I can't extend default object<br>
properties with custom data type like properties list. I want to ask how to<br>
compile DIA with make, but there is some customization in dispcallback.c<br>
with include Python.h, i want to extend some right click properties with<br>
custom Python GTK Window, so i linked it with C script<br>
Thanks before, I've referenced by Lars Causen to ask in mailing list<br>
Regards Yosua Alvin<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://mail.gnome.org/archives/dia-list/attachments/20150402/462e7627/attachment.html" target="_blank">https://mail.gnome.org/archives/dia-list/attachments/20150402/462e7627/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 1 Apr 2015 15:11:45 -0400<br>
From: Michael Ross <<a href="mailto:michael.e.ross@gmail.com">michael.e.ross@gmail.com</a>><br>
To: discussions about usage and development of dia<br>
        <<a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a>><br>
Subject: Re: DIA extend properties<br>
Message-ID:<br>
        <CANNQeoLcA=<a href="mailto:7QELc3KdMQ6ufEODckFPykrtUcQwNQtMEXGSG39A@mail.gmail.com">7QELc3KdMQ6ufEODckFPykrtUcQwNQtMEXGSG39A@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Your message is received, but I do not know the answer.  Someone will write<br>
back who does know.<br>
<br>
On Wed, Apr 1, 2015 at 1:21 PM, Yosua Alvin Adi Soetrisno <<br>
<a href="mailto:yosuaalvin.mti13@mail.ugm.ac.id">yosuaalvin.mti13@mail.ugm.ac.id</a>> wrote:<br>
<br>
> Let me introduce myself I'm Yosua from Gadjah Mada University, I'm still<br>
> on progress working my master thesis. I'd like to develop OpenERP module<br>
> based on DIA OpenERP Interface. My problem is I can't extend default object<br>
> properties with custom data type like properties list. I want to ask how to<br>
> compile DIA with make, but there is some customization in dispcallback.c<br>
> with include Python.h, i want to extend some right click properties with<br>
> custom Python GTK Window, so i linked it with C script<br>
> Thanks before, I've referenced by Lars Causen to ask in mailing list<br>
> Regards Yosua Alvin<br>
><br>
> _______________________________________________<br>
> dia-list mailing list<br>
> <a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a><br>
> <a href="https://mail.gnome.org/mailman/listinfo/dia-list" target="_blank">https://mail.gnome.org/mailman/listinfo/dia-list</a><br>
> FAQ at <a href="http://live.gnome.org/Dia/Faq" target="_blank">http://live.gnome.org/Dia/Faq</a><br>
> Main page at <a href="http://live.gnome.org/Dia" target="_blank">http://live.gnome.org/Dia</a><br>
><br>
><br>
><br>
<br>
<br>
--<br>
To invent, you need a good imagination and a pile of junk.<br>
Thomas A. Edison<br>
<<a href="http://www.brainyquote.com/quotes/quotes/t/thomasaed125362.html" target="_blank">http://www.brainyquote.com/quotes/quotes/t/thomasaed125362.html</a>><br>
<br>
A public-opinion poll is no substitute for thought.<br>
*Warren Buffet*<br>
<br>
Michael E. Ross<br>
<a href="tel:%28919%29%20585-6737" value="+19195856737">(919) 585-6737</a> Land<br>
<a href="tel:%28919%29%20576-0824" value="+19195760824">(919) 576-0824</a> <<a href="https://www.google.com/voice/b/0?pli=1#phones" target="_blank">https://www.google.com/voice/b/0?pli=1#phones</a>> Google Phone<br>
<a href="tel:%28919%29%20631-1451" value="+19196311451">(919) 631-1451</a> Cell<br>
<br>
<a href="mailto:michael.e.ross@gmail.com">michael.e.ross@gmail.com</a><br>
<<a href="mailto:michael.e.ross@gmail.com">michael.e.ross@gmail.com</a>><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="https://mail.gnome.org/archives/dia-list/attachments/20150401/d30455d8/attachment.html" target="_blank">https://mail.gnome.org/archives/dia-list/attachments/20150401/d30455d8/attachment.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Wed, 01 Apr 2015 23:19:49 -0700<br>
From: Octavio Alvarez <<a href="mailto:alvarezp@alvarezp.ods.org">alvarezp@alvarezp.ods.org</a>><br>
To: discussions about usage and development of dia<br>
        <<a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a>><br>
Subject: Re: DIA extend properties<br>
Message-ID: <<a href="mailto:551CDF85.8060408@alvarezp.ods.org">551CDF85.8060408@alvarezp.ods.org</a>><br>
Content-Type: text/plain; charset=windows-1252<br>
<br>
On 01/04/15 10:21, Yosua Alvin Adi Soetrisno wrote:<br>
> I want to ask how to compile DIA with make<br>
<br>
Hi.<br>
<br>
What happens when you try it?<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
dia-list mailing list<br>
<a href="mailto:dia-list@gnome.org">dia-list@gnome.org</a><br>
<a href="https://mail.gnome.org/mailman/listinfo/dia-list" target="_blank">https://mail.gnome.org/mailman/listinfo/dia-list</a><br>
<br>
<br>
------------------------------<br>
<br>
End of dia-list Digest, Vol 132, Issue 1<br>
****************************************<br>
</blockquote></div><br></div>