Regarding gdbus-codegen (was: Re: glib-mkenums in glib 2)

2013-07-17 Thread Fan Chun-wei
Hi John, (list people: I understand this is a rather old topic that was brought up few months ago:) ). I was poking around with the Python scripts for gdbus-codegen lately, and I thought it might be good to let you know a few things about its use on Windows, especially under Visual Studio builds

Re: Stock Items Deprecation

2013-07-17 Thread Murray Cumming
On Tue, 2013-07-02 at 09:41 -0400, William Jon McCann wrote: Hi, As some of you may have noticed we have recently deprecated Stock Items in master. Some details on this change may be found here: https://docs.google.com/document/d/1KCVPoYQBqMbDP11tHPpjW6uaEHrvLUmcDPqKAppCY8o/pub

Re: Stock Items Deprecation

2013-07-17 Thread Jean Brefort
Le mercredi 17 juillet 2013 à 11:47 +0200, Murray Cumming a écrit : On Tue, 2013-07-02 at 09:41 -0400, William Jon McCann wrote: Hi, As some of you may have noticed we have recently deprecated Stock Items in master. Some details on this change may be found here:

Re: Stock Items Deprecation

2013-07-17 Thread Emmanuele Bassi
hi; On 17 July 2013 11:01, Jean Brefort jean.bref...@normalesup.org wrote: Le mercredi 17 juillet 2013 à 11:47 +0200, Murray Cumming a écrit : On Tue, 2013-07-02 at 09:41 -0400, William Jon McCann wrote: Hi, As some of you may have noticed we have recently deprecated Stock Items in

Re: Stock Items Deprecation

2013-07-17 Thread Emmanuele Bassi
hi Murray; On 17 July 2013 10:47, Murray Cumming murr...@murrayc.com wrote: On Tue, 2013-07-02 at 09:41 -0400, William Jon McCann wrote: As some of you may have noticed we have recently deprecated Stock Items in master. Some details on this change may be found here:

Re: Stock Items Deprecation

2013-07-17 Thread Murray Cumming
On Wed, 2013-07-17 at 11:23 +0100, Emmanuele Bassi wrote: [snip] in general, GtkUIManager should be replaced by GtkBuilder, so that could be added to the long description of the class instead of each public entry point in the API. [snip] Is there some way, as with GtkUIManager, to merge in,

building gobject-introspection failed

2013-07-17 Thread Kemin Zhou
Hi All, Not sure I am reaching the right group or not. Here I am having a tough problem with gobject-introspection.  I have at least build 2000 packages in my career as a programmer.  This is the first time, it failed at the 'make install' stage.  Here is the background: My machine

Re: Stock Items Deprecation

2013-07-17 Thread David King
Hi On 2013-07-17 11:23, Emmanuele Bassi eba...@gmail.com wrote: I'm sure documentation patches are welcome; I'll gladly review them. I filed a bug about the GtkAction deprecation notices, with a patch: https://bugzilla.gnome.org/show_bug.cgi?id=704392 It probably needs someone who is more

Re: Stock Items Deprecation

2013-07-17 Thread Morten Welinder
Is there some way, as with GtkUIManager, to merge in, and later remove and replace, menu items? I used this with GtkUIManager to dynamically populate a menu with items not known at compile time. Specifically, how does one create menus like Firefox's History and Bookmarks menus which have

Re: Regarding gdbus-codegen (was: Re: glib-mkenums in glib 2)

2013-07-17 Thread Tarnyko
Hi Fan, Thanks for sharing. FYI, MinGW makefiles from latest master generate and install gdbus-codegen correctly. You may want to take inspiration from them if you plan to add gdbus-codegen generation for MSVC (don't know this toolchain enough to do it myself). I just suggested a little

Re: Stock Items Deprecation

2013-07-17 Thread Juan Pablo Ugarte
On Wed, 2013-07-17 at 12:55 +0200, Murray Cumming wrote: On Wed, 2013-07-17 at 11:23 +0100, Emmanuele Bassi wrote: [snip] in general, GtkUIManager should be replaced by GtkBuilder, so that could be added to the long description of the class instead of each public entry point in the API.

Re: Regarding gdbus-codegen

2013-07-17 Thread John Emmas
Thanks guys. My memory is hazy now but from what I can recall, any lines like this were always problematic;- from . import some_module No matter what I did, I couldn't get (Windows) Python to understand what from . meant. If the module to be imported was in a subfolder - e.g.

Re: Regarding gdbus-codegen

2013-07-17 Thread Tarnyko
Hmmm, that's strange, works here. - in gdbus-codegen, we have : path=$PATH:/lib/gdbus-2.0 from codegen import codegen_main - and in /lib/gdbus-2.0/codegen/codegen_main.py we have : from . import config where config.py is in the same directory. Using Windows (not MSYS) Python 2.5, and

Re: building gobject-introspection failed

2013-07-17 Thread Colin Walters
On Mon, 2013-07-15 at 16:11 -0700, Kemin Zhou wrote: Here is the background: My machine (brand new) has RedHat 6.4 I build the gnome-3-8 branch of gobject-introspection for RHEL 6.4 too, but I use jhbuild. This version of g-i is used to bootstrap the gnome-ostree build system which does

Re: Regarding gdbus-codegen

2013-07-17 Thread Fan Chun-wei
Hi John, [Tarnyko wrote: ] Hmmm, that's strange, works here. - in gdbus-codegen, we have : path=$PATH:/lib/gdbus-2.0 from codegen import codegen_main - and in /lib/gdbus-2.0/codegen/codegen_main.py we have : from . import config where config.py is in the same directory. Using Windows (not MSYS)

Re: Regarding gdbus-codegen

2013-07-17 Thread John Emmas
On 18/07/2013 02:04, Fan Chun-wei wrote: I also ran Python 2.7 in both x86 and x64 flavors in the same way Tarnyko ran the script (which I built myself using Visual Studio, so this is a native Windows build/version of Python, running under cmd.exe), and this worked for me too. Thanks