Re: Creating an app with optional GTK support

2010-06-05 Thread Donny Viszneki
On Fri, Jun 4, 2010 at 3:14 AM, Holger Berndt bern...@gmx.de wrote: On Fr, 14.05.2010 23:31, Michael Torrie wrote: The utility zenity already implements this: zenity --file-selection returns the file the user chose on standard out.  Of course it's not the most flexible thing.   You can't pick

Re: Creating an app with optional GTK support

2010-06-04 Thread Holger Berndt
On Fr, 14.05.2010 23:31, Michael Torrie wrote: The utility zenity already implements this: zenity --file-selection returns the file the user chose on standard out. Of course it's not the most flexible thing. You can't pick a directory, for example. You can, with zenity --file-selection

Re: Creating an app with optional GTK support

2010-05-16 Thread Andreas Falkenhahn
On 15.05.2010 at 21:14 Stanislav Maslovski wrote: On Fri, May 14, 2010 at 12:26:00PM +0200, Andreas Falkenhahn wrote: Hi, I'm currently developing an X11 app and would like to use GTK only for the file chooser dialog. Are you sure you want to use it? It is broken beyond repair in all

Re: Creating an app with optional GTK support

2010-05-16 Thread Andreas Falkenhahn
On 14.05.2010 at 18:34 Lothar Scholz wrote: 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

Re: Creating an app with optional GTK support

2010-05-16 Thread Stanislav Maslovski
On Sun, May 16, 2010 at 11:02:48AM +0200, Andreas Falkenhahn wrote: On 15.05.2010 at 21:14 Stanislav Maslovski wrote: On Fri, May 14, 2010 at 12:26:00PM +0200, Andreas Falkenhahn wrote: Hi, I'm currently developing an X11 app and would like to use GTK only for the file chooser

Re: Creating an app with optional GTK support

2010-05-16 Thread Paul Davis
On Sun, May 16, 2010 at 5:31 AM, Stanislav Maslovski stanislav.maslov...@gmail.com wrote: File chooser dialog is for sure broken. Have you ever tried using it with a large directory, esp. on a network share? what version of GTK are you referring to? i've certainly seen the problems you are

Re: Creating an app with optional GTK support

2010-05-15 Thread Stanislav Maslovski
On Fri, May 14, 2010 at 12:26:00PM +0200, Andreas Falkenhahn wrote: Hi, I'm currently developing an X11 app and would like to use GTK only for the file chooser dialog. Are you sure you want to use it? It is broken beyond repair in all possible ways. The rest is done entirely in X11. Then

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

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

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 present? Yes,

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 present? Yes,

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 not

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 I've not

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 compile two versions

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 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 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 already