Changeset 191:af2ed974ab68 in glemon-0.x for main_win.cc
- Timestamp:
- 02/27/07 18:18:19 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3202
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main_win.cc
r190 r191 49 49 Glib::RefPtr<Gdk::Pixbuf> p_newmap_pixbuf = Gdk::Pixbuf::create_from_inline( 50 50 2328, gui_icons_newmap); 51 Glib::RefPtr<Gdk::Pixbuf> p_eps_pixbuf = Gdk::Pixbuf::create_from_inline( 52 2328, gui_icons_eps); 51 53 52 54 Gtk::IconSource move_icon_source; … … 85 87 newmap_icon_set.add_source(newmap_icon_source); 86 88 p_icon_factory->add(Gtk::StockID("gd-newmap"), newmap_icon_set); 89 90 Gtk::IconSource eps_icon_source; 91 eps_icon_source.set_pixbuf(p_eps_pixbuf); 92 Gtk::IconSet eps_icon_set; 93 eps_icon_set.add_source(eps_icon_source); 94 p_icon_factory->add(Gtk::StockID("gd-eps"), eps_icon_set); 87 95 88 96 p_icon_factory->add_default(); … … 152 160 ag->add( Gtk::Action::create("DesignGraph", Gtk::Stock::REFRESH), 153 161 sigc::mem_fun ( *this , &MainWin::reDesignGraph ) ); 162 163 ag->add( Gtk::Action::create("Eps", Gtk::StockID("gd-eps")), 164 sigc::mem_fun ( *this , &MainWin::exportToEPS ) ); 154 165 155 166 uim=Gtk::UIManager::create(); … … 209 220 " <toolitem action='AddMap' />" 210 221 " <toolitem action='DesignGraph' />" 222 " <toolitem action='Eps' />" 211 223 " </toolbar>" 212 224 "</ui>"; … … 611 623 } 612 624 625 void MainWin::exportToEPS() 626 { 627 if(active_tab!=-1) 628 { 629 tabs[active_tab]->createExportToEPSWin(tabnames[active_tab]); 630 } 631 } 632 613 633 void MainWin::createBackgroundChooser() 614 634 {
Note: See TracChangeset
for help on using the changeset viewer.