Commit 7b58ecc0 authored by Murray Cumming's avatar Murray Cumming
Browse files

Fix the build when -fno-exceptions

is used.
parent abe4d551
2009-09-05 Murray Cumming <murrayc@murrayc.com>
* glom/print_layout/canvas_print_layout.cc:
* glom/utility_widgets/imageglom.cc: Fix the build when -fno-exceptions
is used.
2009-09-05 Murray Cumming <murrayc@murrayc.com>
 
Added dlopen test of the python library.
......
......@@ -638,9 +638,12 @@ void Canvas_PrintLayout::fill_with_data(const Glib::RefPtr<Goocanvas::Group>& ca
bool records_found = false;
Glib::RefPtr<Gnome::Gda::DataModel> datamodel;
#ifdef GLIBMM_EXCEPTIONS_ENABLED //TODO: Catch the error somehow?
try
{
#endif
datamodel = query_execute_select(sql_query);
#ifdef GLIBMM_EXCEPTIONS_ENABLED
}
catch(const Glib::Exception& ex)
{
......@@ -650,6 +653,7 @@ void Canvas_PrintLayout::fill_with_data(const Glib::RefPtr<Goocanvas::Group>& ca
{
std::cout << "Canvas_PrintLayout::fill_with_data: exception: " << ex.what() << std::endl;
}
#endif
if(datamodel)
{
......
......@@ -139,6 +139,8 @@ bool ImageGlom::on_button_press_event(GdkEventButton *event)
#ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
return Gtk::EventBox::on_button_press_event(event);
#else
return false;
#endif // GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment