diff -r 48580778851e -r 4e8704aae278 main_win.cc --- a/main_win.cc Thu Dec 28 15:31:39 2006 +0000 +++ b/main_win.cc Wed Jan 10 14:37:46 2007 +0000 @@ -22,6 +22,7 @@ #include "main_win.h" #include "guipixbufs.h" +#include "background_chooser_dialog.h" #include "i18n.h" @@ -113,6 +114,8 @@ sigc::mem_fun(*this, &MainWin::zoomFit)); ag->add( Gtk::Action::create("ViewZoom100", Gtk::Stock::ZOOM_100), sigc::mem_fun(*this, &MainWin::zoom100)); + ag->add( Gtk::Action::create("SetBackground", _("Set Background...")), + sigc::mem_fun(*this, &MainWin::createBackgroundChooser)); ag->add( Gtk::Action::create("ShowMenu", _("_Show")) ); ag->add( Gtk::Action::create("ShowMaps", _("_Maps")), @@ -173,6 +176,7 @@ " " " " " " + " " " " " " " " @@ -580,3 +584,9 @@ { tabs[active_tab]->reDesignGraph(); } + +void MainWin::createBackgroundChooser() +{ + BackgroundChooserDialog dialog(&(tabs[active_tab]->mapstorage)); + dialog.run(); +}