|
From: Mark T. <mar...@go...> - 2007-02-06 16:17:07
|
Hi Sylvian, thanks for sharing your ideas and your patch with the mtPaint project. Dmitry is able to merge in the improvements to cleanse_txt() which will be done for the next version. Sadly he is not able to merge the changes for the file selector for the following reasons: 1) This code area has been modified since v3.10 so the patch can't be applied. 2) There are possibly going to be changes to the structure of mtPaint over the coming months. GUI changes of this nature would be best applied after this change rather than before otherwise it will create extra work. I will briefly explain these structural changes to you, including a little history: When I started writing mtPaint in 2004 GTK+2 was still relatively new, so I made the decision to use an interface that was largely compatible with GTK+1 and GTK+2 so I chose to use widgets that appeared in both toolkits (even if they were deprecated in GTK+2). However as time passed, GTK+2 matured and developed with features like the file chooser. Now that we are in 2007, it is becoming clear that the interface of mtPaint needs to be updated in some structural sense. One option on the table is to break mtPaint into 2 parts: 1) A kernel for handling memory, file handling, and all toolkit/interface independent code. 2) A toolkit interface for the user to interact with. This is attractive because mtPaint could continue to support GTK+1/2 as now but also an updated GTK+2 version which stops using deprecated features and prepares for any GTK+3 release. In addition it would also be possible to use another toolkit like FLTK, Qt, or maybe even a console version that could run on text only systems. Just to prove the feasibility of this I created a very small FLTK interface to demonstrate what can be done - see the attached screenshots from Linux and Windows systems. It is a big job to implement these things, but once the core structure is set it will make changes such as the file chooser you propose much more logical. For example the current GTK+1/2 code would exist in a directory named ./src/gtk12/, with the filechooser code you created living in ./src/gtk3/. Then the configure script could be used to target gtk1, gtk2, gtk3 or whatever toolkits are supported. If you have any thoughts on these plans you are very welcome to share them. Regards, Mark. On 06/02/07, Sylvain Cresto <sc...@gm...> wrote: > Hi, > > A patch for mtPaint 3.10 to use GtkFileChooserDialog widget instead of > old GtkFileSelection. > > GtkFileChooserDialog is used when Gtk-2.4 (or greater) is detected by > configure script, I have also added 2 options to the configure script > (gtkfilechooser and nogtkfilechooser) to force choice. > > Feel free to use it! > > Thanks, > Sylvain Cresto > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Mtpaint-devel mailing list > Mtp...@li... > https://lists.sourceforge.net/lists/listinfo/mtpaint-devel > > > |