- Small changes: no need to use assert, since libGlade already
does print a warning for us on error - Fix Makefile git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@740 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
f84c7bbf40
commit
c1d104dba8
2 changed files with 2 additions and 9 deletions
|
@ -28,7 +28,6 @@
|
|||
#include <gtkmm/main.h>
|
||||
#include <gtkmm/menuitem.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
|
||||
using namespace sgpem;
|
||||
|
@ -47,19 +46,14 @@ GuiBuilder::GuiBuilder(const std::string& gladefile)
|
|||
// Glade::Xml::get_widget_derived -- better --)
|
||||
MenuItem* file_quit = NULL;
|
||||
_refXml->get_widget("MenuItem.File.Quit", file_quit);
|
||||
assert(file_quit != NULL);
|
||||
file_quit->signal_activate().connect(sigc::ptr_fun(&Main::quit));
|
||||
|
||||
// About dialog
|
||||
MenuItem* help_about = NULL;
|
||||
_refXml->get_widget("MenuItem.Help.About", help_about);
|
||||
assert(help_about != NULL);
|
||||
AboutDialog* about_dialog = NULL;
|
||||
_refXml->get_widget("AboutDialog", about_dialog);
|
||||
assert(about_dialog != NULL);
|
||||
help_about->signal_activate().connect(sigc::mem_fun(*about_dialog, &Window::show));
|
||||
|
||||
// main_window.show_all_children();
|
||||
}
|
||||
|
||||
|
||||
|
@ -73,7 +67,6 @@ GuiBuilder::get_initial_window() const
|
|||
{
|
||||
Gtk::Window* main_window = NULL;
|
||||
_refXml->get_widget("MainWindow", main_window);
|
||||
assert(main_window != NULL);
|
||||
return *main_window;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue