#include <iostream>
#include <gtkmm.h>

using namespace std;
using namespace Gtk;

int main(int argc, char** argv)
{
    Gtk::Main main(&argc, &argv);

    FileChooserButton chooserButton(("Select a directory"), FILE_CHOOSER_ACTION_SELECT_FOLDER);
    Window window;

    window.add(chooserButton);
    window.set_default_size(200, 40);
    window.show_all_children();
    
    Main::run(window);

    cout << "Selected path: " << chooserButton.get_current_folder() << endl;
}

