Re: Creating an app with optional GTK support

2010-05-14 Thread Michael Torrie
Chris Moller wrote: > Might be simpler to write a stand-alone file chooser app in GTK+ and, if > needed, talk fork()/exec() it and talk to it through pipes or sockets. > (I have a GTK+ wrapper for a closed-source implementation of APL that > does this. It works fine.) The utility "zenity" alr

GLib 2.25.5 released

2010-05-14 Thread Matthias Clasen
GLib 2.25.5 is now available for download at: ftp://ftp.gtk.org/pub/glib/2.25/ http://download.gnome.org/sources/glib/2.25/ fb703effa11361cdde93e3d572106029f6fd9f4f035ca8be0c91e811a7b880a6 glib-2.25.5.tar.bz2 15962b01821a116a7d3ba5d103309291e37ab2c2b4d4d9f1eb334f04fbea868a glib-2.25.5.tar.gz

Re: is popen thread safe?

2010-05-14 Thread Donny Viszneki
p2open() is also trivially implementable on your own, and you can do away with libc FILE* i/o if that's your taste to. Here's how I did it: http://code.google.com/p/gpsee/source/browse/gpsee_util.c#274 It's very similar to the OpenSolaris implementation, and probably every other implementation.

Re: is popen thread safe?

2010-05-14 Thread Chris Vine
On Fri, 14 May 2010 15:31:23 -0300 frederico schardong wrote: > LiNuCe, > > I have tried the the g_spawn_command_line_sync, the simple version of > g_spawn_sync, but it work as the popen. > > I have attached a example of what I'm trying to do. As you can see, in > this example I have two thread

Re: is popen thread safe?

2010-05-14 Thread frederico schardong
LiNuCe, I have tried the the g_spawn_command_line_sync, the simple version of g_spawn_sync, but it work as the popen. I have attached a example of what I'm trying to do. As you can see, in this example I have two threads, and in the thread_func I have the g_spawn_command_line_sync that call a soa

Re: Creating an app with optional GTK support

2010-05-14 Thread Lothar Scholz
Hello Andreas, Friday, May 14, 2010, 12:26:00 PM, you wrote: AF> I'm currently developing an X11 app and would like to use GTK only for the AF> file chooser dialog. The rest is done entirely in X11. However, the GTK AF> support shall be optional. If GTK is there, then my app will use the GTK AF>

Re: Creating an app with optional GTK support

2010-05-14 Thread Chris Moller
On 05/14/10 06:26, Andreas Falkenhahn wrote: Hi, I'm currently developing an X11 app and would like to use GTK only for the file chooser dialog. The rest is done entirely in X11. However, the GTK support shall be optional. If GTK is there, then my app will use the GTK file chooser. If GTK is not

Re: Creating an app with optional GTK support

2010-05-14 Thread Tadej Borovšak
Hi. And while you're doing some work to ensure your application will work with future version of libraries, version 3 of GTK+ will also be released soonish (git master is already marked as 3 and can be installed in parallel with GTK+-2), so you may also want to take into account that GTK+ related

Re: Creating an app with optional GTK support

2010-05-14 Thread Andreas Falkenhahn
> Hi. > > >>> >>> As for optional GTK+ support, wouldn't be better to check for GTK+ at >>> configure phase and compile/link your application accordingly? >> >> Not possible because my app is currently not open source. > > Which probably means that you'll be distributing binaries. So you can > comp

Re: Creating an app with optional GTK support

2010-05-14 Thread Andreas Falkenhahn
> On Fri, 2010-05-14 at 12:46 +0200, Andreas Falkenhahn wrote: >> > I'm not sure why you cannot find it, by all my machines have at least >> > libglib-2.0.so, libgtk-x11-2.0.so, libgobject-2.0.so ... Are you sure >> > glib shared object is not present? >> >> Yes, it's not there. Maybe it's because

Re: Creating an app with optional GTK support

2010-05-14 Thread Emmanuele Bassi
On Fri, 2010-05-14 at 12:46 +0200, Andreas Falkenhahn wrote: > > I'm not sure why you cannot find it, by all my machines have at least > > libglib-2.0.so, libgtk-x11-2.0.so, libgobject-2.0.so ... Are you sure > > glib shared object is not present? > > Yes, it's not there. Maybe it's because I've n

Re: Creating an app with optional GTK support

2010-05-14 Thread Tadej Borovšak
Hi. >>> Especially striking is that Ubuntu doesn't have a libglib-XXX.so at all, >>> but only a libglibmm-XXX.so! >> >> I'm not sure why you cannot find it, by all my machines have at least >> libglib-2.0.so, libgtk-x11-2.0.so, libgobject-2.0.so ... Are you sure >> glib shared object is not presen

Re: Creating an app with optional GTK support

2010-05-14 Thread Andreas Falkenhahn
> Hello. > >> Especially striking is that Ubuntu doesn't have a libglib-XXX.so at all, >> but only a libglibmm-XXX.so! > > I'm not sure why you cannot find it, by all my machines have at least > libglib-2.0.so, libgtk-x11-2.0.so, libgobject-2.0.so ... Are you sure > glib shared object is not presen

Re: Creating an app with optional GTK support

2010-05-14 Thread Tadej Borovšak
Hello. > Especially striking is that Ubuntu doesn't have a libglib-XXX.so at all, > but only a libglibmm-XXX.so! I'm not sure why you cannot find it, by all my machines have at least libglib-2.0.so, libgtk-x11-2.0.so, libgobject-2.0.so ... Are you sure glib shared object is not present? As for o

Creating an app with optional GTK support

2010-05-14 Thread Andreas Falkenhahn
Hi, I'm currently developing an X11 app and would like to use GTK only for the file chooser dialog. The rest is done entirely in X11. However, the GTK support shall be optional. If GTK is there, then my app will use the GTK file chooser. If GTK is not there, I'll simply ask for a file name using a