-->

mtPaint Guide by Mark Tyler on

File Picker (Selector)

(preserved on this site by Blaze)

Home > RefInfo menu >

Computer topics menu (Linux section) >

Linux GuidesByBlaze menu > mtPaint NotesByBlaze page >

mtPaint Mark-Tyler-Blog (backup) MENU page >

This mtPaint Blog Post (backup)

2008 Nov 22 blog post by Mark Tyler on

File Picker
(link to original post)

Keywords:
File Picker, File Selector

The image below has a larger version.
Click on the image to see the larger version.
Click on your web browser's Back button to return to this page.

The following are Mark Tyler's words:

During 2007 and 2008 I designed and implemented a new file picker for mtPaint. Dmitry then refined my efforts to make the picker even better, with the final results now in version 3.30 of mtPaint:

Designing and implementing a new file picker was a big effort but I felt I had no choice due to my increasing frustration with the existing GTK+ file pickers. For a few years I tolerated the Motif style GtkFileSelection, but the time finally came to improve things. I also found that the GtkFileChooser is even worse due to its lack of functionality compared to more orthodox and mainstream file pickers.

The general design of the new mtPaint file picker was deliberately conservative as I was looking to preserve the simplicity and ease of use I have seen in programs like OpenOffice, and most Windows/Qt/KDE systems.

The picker also has the luxury of tab completions and wildcards. If you type "p" into the entry box and press tab, only files beginning with "p" will be displayed. If you type "dsc*.jpg" into the entry box and press tab, the file list will only display files beginning with "dsc" and ending with ".jpg". As you would expect the * wildcard represents any number of characters and the ? wildcard represents exactly one character.

I consider this new design to be far better than the rather feeble GTK+ designs, but some people may prefer the GtkFileSelection dialog, so if that is the case you can re-compile mtPaint with:

    ./configure gtkfilesel
    make

I have also started using this new picker in my other programs such as my 6502 disassembler mt6502dis and my spreadsheet mtCellEdit.

As well as my own programs this new picker can be added to any GTK+ program, so I decided to add it to Leafpad. I call this fork mtLeafpad.

Bottom of this
mtPaint Guide by Mark Tyler
on a File Picker for mtPaint

(preserved on this site by Blaze).

To return to a previously visited web page location, click on the Back button of your web browser, a sufficient number of times. OR, use the History-list option of your web browser.
OR ...

< Return to TOP of this page, above. >

Page was created 2010 Jun 07.

Page was changed 2019 Jan07.
(Added css and javascript to try to handle text-size for smartphones, esp. in portrait orientation.)