//to compile, type:
//g++ -g -Wall `pkg-config --cflags --libs gtkmm-2.4` -o create-windows create-windows.cc
#include <gtkmm.h>
#include <boost/shared_ptr.hpp>

using namespace Glib ;
using namespace Gtk ;
using namespace sigc ;

/*for those who don't want to type*/
typedef boost::shared_ptr<Window> WindowPtr ;

WindowPtr
create_window (const ustring &a_title)
{
    WindowPtr result (new Window) ;
    result->set_title (a_title) ;
    return result ;
}


int
main (int argc, char **argv)
{
    Main init (argc, argv) ;
    WindowPtr win = create_window ("Hooza, I won't leak this window !") ;
    win->show_all () ;
    Gtk::Main::run (*win) ;
    return 0 ;
}


