Welcome! Here you'll find various stuff related to opensource software:
A patch [1] that demonstrates migration from the old GTK file selection dialog (GtkFileSelection) to the new, improved file chooser (GtkFileChooser) introduced in GTK 2.4. It's a patch against the LogJam LiveJournal client [2], and using proper #ifdef preprocessor directives, it maintains backward compatibility (that is, when compiled with GTK < 2.4 it will use the old GtkFileSelection interface).
Links:
[1] http://olo.org.pl/static/opensource/logjam-4.4.1_GTK_2.4_filechooser_ifdefed.patch
[2] http://logjam.danga.com/