#include <gio/gio.h>

int main ()
{
	GFile *http_uri;
	char *basename;

	g_type_init ();

	http_uri = g_file_new_for_uri ("http://www.gnome.org/learn/admin-guide/gnome2.14-system-admin-guide.pdf");
	basename = g_file_get_basename (http_uri);
	g_print ("Basename: %s\n", basename);
	g_free (basename);
	g_object_unref (http_uri);

	return 0;
}
