I've attached a patch against gerbv-1.0.1 that replaces the old GTK 1.2 file selection dialogs with the new GTK 2.X dialogs. This involves changes to gerbv.c in the file load/save routines as well as in the PNG export functions. I also modified the Makefile.am and the configure.in files to default to GTK 2.X support (needed for the new dialogs). Just for good measure, I also added a script called autogen.sh to automate the rebuilding of the configure script.
In my testing so far I haven't seen any problems related to the changes, however there is one outstanding issue. The PNG load routine needs a reference to the main window in order to change the cursor to the busy cursor. Previously, this reference was provided by the GTK 1.2 file selector but I haven't found a way to get this reference in GTK 2.X. Perhaps there is a reference to the main window floating around somewhere that we could pass. Alternatively, it might be a better idea to add two functions set_cursor_busy() and set_cursor_default() and just call these as needed. For the moment I just commented out the cursor change. Lastly, I changed the version in configure.in to 1.0.1.1 to differentiate the two source trees on my system. You'd probably want to change it to something else. Good luck and let me know how it goes, David Carr
gerbv-1.0.1-gtk2-patch.gz
Description: GNU Zip compressed data