Re: Adding a Python dependency to app/* (was: Re: dia-list Digest, Vol 132, Issue 3)

2015-04-04 Thread Michael Ross
Respectfully, could you cut off the text of the digest not pertinent to
your message when replying?

For example, see below.

Thanks.

On Sat, Apr 4, 2015 at 2:18 AM, Yosua Alvin Adi Soetrisno <
yosuaalvin.mt...@mail.ugm.ac.id> wrote:

>
> Thanks for the clear explanation Hans Breuer
> So to avoid direct dependency, how is the best way to put my modification
> code? and how the best way to integrate python with dia core functionality?
> Thanks before,
> Regards Yosua Alvin
>


> ​SNIP
>
-- 
To invent, you need a good imagination and a pile of junk.
Thomas A. Edison


A public-opinion poll is no substitute for thought.
*Warren Buffet*

Michael E. Ross
(919) 585-6737 Land
(919) 576-0824  Google Phone
(919) 631-1451 Cell

michael.e.r...@gmail.com

___
dia-list mailing list
dia-list@gnome.org
https://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



Adding a Python dependency to app/* (was: Re: dia-list Digest, Vol 132, Issue 3)

2015-04-03 Thread Yosua Alvin Adi Soetrisno
Thanks for the clear explanation Hans Breuer
So to avoid direct dependency, how is the best way to put my modification
code? and how the best way to integrate python with dia core functionality?
Thanks before,
Regards Yosua Alvin

On Fri, Apr 3, 2015 at 9:13 PM,  wrote:

> Send dia-list mailing list submissions to
> dia-list@gnome.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mail.gnome.org/mailman/listinfo/dia-list
> or, via email, send a message with subject or body 'help' to
> dia-list-requ...@gnome.org
>
> You can reach the person managing the list at
> dia-list-ow...@gnome.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of dia-list digest..."
>
>
> Today's Topics:
>
>1. Re: dia-list Digest, Vol 131, Issue 5 (Hans Breuer)
>2. Re: dia-list Digest, Vol 132, Issue 2 (Yosua Alvin Adi Soetrisno)
>3. Adding a Python dependency to app/* (was: Re: dia-list
>   Digest, Vol   132, Issue 2) (Hans Breuer)
>
>
> --
>
> Message: 1
> Date: Fri, 03 Apr 2015 14:16:12 +0200
> From: Hans Breuer 
> To: discussions about usage and development of dia
> 
> Cc: ewager...@gmail.com
> Subject: Re: dia-list Digest, Vol 131, Issue 5
> Message-ID: <551e848c.5000...@breuer.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Am 25.03.2015 um 00:21 schrieb Elijah Wagers:
> > Remove from list please.
> >
> Done.
>
> Good bye,
> Hans
>
>  Hans "at" Breuer "dot" Org ---
> Tell me what you need, and I'll tell you how to
> get along without it.-- Dilbert
>
>
> --
>
> Message: 2
> Date: Fri, 3 Apr 2015 19:59:35 +0700
> From: Yosua Alvin Adi Soetrisno 
> To: dia-list@gnome.org
> Subject: Re: dia-list Digest, Vol 132, Issue 2
> Message-ID:
>  ylet2j6nand7ubqrqiqyxt...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I've installed python2-dev, but i haven't try python3-dev, i use ubuntu
> 12.04, outside dia folder i have been succeed to compile c file with gcc,
> but when code inserted inside commands.c in folder dia/app, make have error
> like commands.c:17:20: fatal error: Python.h: No such file or directory,
> Must i installed python3-dev?
> On Apr 3, 2015 7:00 PM,  wrote:
>
> > Send dia-list mailing list submissions to
> > dia-list@gnome.org
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > https://mail.gnome.org/mailman/listinfo/dia-list
> > or, via email, send a message with subject or body 'help' to
> > dia-list-requ...@gnome.org
> >
> > You can reach the person managing the list at
> > dia-list-ow...@gnome.org
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of dia-list digest..."
> >
> >
> > Today's Topics:
> >
> >1. Re: dia-list Digest, Vol 132, Issue 1 (Yosua Alvin Adi Soetrisno)
> >2. Re: dia-list Digest, Vol 132, Issue 1 (Octavio Alvarez)
> >
> >
> > --
> >
> > Message: 1
> > Date: Fri, 3 Apr 2015 09:48:43 +0700
> > From: Yosua Alvin Adi Soetrisno 
> > To: dia-list@gnome.org, alvar...@alvarezp.ods.org
> > Subject: Re: dia-list Digest, Vol 132, Issue 1
> > Message-ID:
> >  > j9sv...@mail.gmail.com>
> > Content-Type: text/plain; charset="utf-8"
> >
> > I add some line to disp_callback.c like this
> > static void
> > add_custom_menu_item (GtkMenu *menu)
> > {
> >   GtkWidget *menu_item = gtk_menu_item_new_with_label(_("Custom Link"));
> >   g_signal_connect(GTK_OBJECT(menu_item), "activate",
> > G_CALLBACK(call_python_callback), NULL);
> >   gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
> >   gtk_widget_show(menu_item);
> > }
> > and i add some line to commands.c like this
> > #include 
> > ...
> > void
> > call_python_callback (GtkAction *action)
> > {
> > Py_SetProgramName("Testing"); /* optional but recommended */
> > Py_Initialize();
> >
> > FILE *fp = fopen("tree.py", "r");
> > if (fp == NULL)
> > return 2;
> >
> > PyRun_SimpleFile(fp, "tree.py");
> > Py_Finalize();
> >
> > fclose(fp);
> > return 0;
> > }
> > When i make the compilation
> > commands.c:17:20: fatal error: Python.h: No such file or directory
> > How to solve that thanks
> >
> > On Thu, Apr 2, 2015 at 7:00 PM,  wrote:
> >
> > > Send dia-list mailing list submissions to
> > > dia-list@gnome.org
> > >
> > > To subscribe or unsubscribe via the World Wide Web, visit
> > > https://mail.gnome.org/mailman/listinfo/dia-list
> > > or, via email, send a message with subject or body 'help' to
> > > dia-list-requ...@gnome.org
> > >
> > > You can reach the person managing the list at
> > > dia-list-ow...@gnome.org
> > >
> > > When replying, please edit your Subject line so it is more specific
> > > than "