Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-21 Thread Manolo Gouy
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Attached file gtk-browser3.patch... Link: http://www.fltk.org/str.php?L2904 Version: 1.3-featureIndex: src/Fl_Native_File_Chooser_GTK.cxx

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-21 Thread Manolo Gouy
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature In attached gtk-browser3.patch: - class Fl_X11_File_Chooser renamed Fl_FLTK_File_Chooser - added support for

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-20 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature A thought: Should Fl_X11_File_Chooser maybe be called Fl_Fltk_File_Chooser or some such thing? In that, it is not really X11 specific, it is

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-18 Thread Manolo Gouy
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Attached file gtk-browser2.patch... Link: http://www.fltk.org/str.php?L2904 Version: 1.3-featureIndex: src/Fl_Native_File_Chooser_GTK.cxx

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-18 Thread Manolo Gouy
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Uploaded gtk-browser2.patch with a somewhat cleaner implementation that separates the FLTK and GTK browsers in two classes and two source files.

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-17 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Cool tweaks: very good stuff. But, addressing Sanel's observations: Do we want to do this? I wrote the code more as a proof of concept in

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-16 Thread Manolo Gouy
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Attached file gtk-browser.patch... Link: http://www.fltk.org/str.php?L2904 Version: 1.3-featureIndex: src/fl_gtk.h

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-16 Thread Manolo Gouy
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature The attached gtk-browser.patch modifies the current svn repository so that Fl_Native_File_Chooser uses the GTK dialog when libgtk2-or-3.so is

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-15 Thread Manolo Gouy
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Attached file Fl_Native_File_Chooser_GTK_test.cxx... Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature// $Id: $ // // FLTK native

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-15 Thread Manolo Gouy
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Attached file gtk.h... Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature#ifndef FALSE #define FALSE (0) #endif #ifndef TRUE

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-15 Thread Manolo Gouy
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature - added support for Fl_Native_File_Chooser-directory(char*) - added a Show hidden files toggle button - dlopen first searches for GTK3 and then,

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-15 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Thanks Manolo! Nice addition. Would be great if you could document any gtk/linux specifics for use of FNFC in the docs, and try to hit on:

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-13 Thread Manolo Gouy
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Attached file Fl_Native_File_Chooser_GTK_Test.cxx... Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature// $Id: $ // // FLTK native

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-13 Thread Manolo Gouy
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Attached file Fl_Native_File_Chooser.H... Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature// // $Id: Fl_Native_File_Chooser.H 9704

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2013-02-13 Thread Manolo Gouy
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature With today's Fl_Native_File_Chooser.H and Fl_Native_File_Chooser_GTK_test.cxx (attached files), the GTK widget fully supports filters. The

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-30 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature FWIW, zenity(1) is a simple linux command line tool that can among other things bring up a native file chooser. $ zenity --title=Select a

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-21 Thread bartek
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature I will have a look at it when I have time. Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-20 Thread Manolo Gouy
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature It works well here: Linux Debian 2.6 in VirtualBox with Gtk2 Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-20 Thread Ian MacArthur
On 20 Dec 2012, at 16:46, Manolo Gouy wrote: Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature It works well here: Linux Debian 2.6 in VirtualBox with Gtk2 Cheers Manolo, Reassuring to know! I'm also in the process of creating an Ubuntu 12.04 LTS VM, for testing there,

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-19 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Attached file fnfc-gtk-patch-v2.zip... Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Attachment:

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-19 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature OK: revised version of previous patch. This now loads all the GTK and GLib dependencies (of which there are many...) at run time so that we do

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-17 Thread Albrecht Schlosser
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature FWIW: doing this as Ian suggested means that the gtk development files (headers etc.) must be present on the /developer's/ machine. So we'd have

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-17 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Indeed so - and I was not suggesting I was all that keen on that approach - only that it looks feasible! I suppose a safe fallback might be to

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-17 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature OK... So, despite saying I wouldn't, I had a quick stab at this. It is *very* incomplete, and I have made no attempt to load the GTK libs via

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-17 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Attached file fnfc-gtk-patch.zip... Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Attachment:

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-16 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature No, perhaps you misunderstand: it is not necessary to copy/paste anything from gtk. What we'd have to do would be something like this: (note

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-16 Thread bartek
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Okay, I will look into doing some patch. I have one question though. How do GTK apps recognize default file browser? It must be stored in some

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-16 Thread bartek
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Well we can also try luck with looking into GTK source code and trying to copy-paste file chooser source, as adding gtk dependencies won't be

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-16 Thread bartek
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature But probably this won't be easy and ending up with including half of gtk into source isn't what we want. Ill do some research. Link:

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-16 Thread bartek
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature I think I have found something! It says it is stored in ~/.local/share/applications/defaults.list , but there are also other files mentioned. I

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-15 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature No, I was mistaken about XDG, well at least xdg-open and the xdg-mime stuff does not do what is wanted, so the .../defaults.list file is not

Re: [fltk.development] [RFE] STR #2904: Native file chooser isn't exactly native on linux

2012-12-14 Thread Ian MacArthur
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2904 Version: 1.3-feature Is there an XDG code for this sort of thing? Does anyone know? Re: Greg's suggestion of a stand-alone chooser; ISTR that some tool (maybe LVE