gtkmm-documentation r75 - in trunk: . examples/book/builder/basic examples/book/builder/derived
- From: murrayc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtkmm-documentation r75 - in trunk: . examples/book/builder/basic examples/book/builder/derived
- Date: Mon, 10 Nov 2008 14:22:47 +0000 (UTC)
Author: murrayc
Date: Mon Nov 10 14:22:47 2008
New Revision: 75
URL: http://svn.gnome.org/viewvc/gtkmm-documentation?rev=75&view=rev
Log:
2008-11-10 Murray Cumming <murrayc murrayc com>
* examples/book/builder/basic/main.cc:
* examples/book/builder/derived/main.cc: Catch FileError as well as
BuilderError, because that is what the C function actually gives if the
filename is wrong.
Bug #548022 (Alexander Shaduri)
Modified:
trunk/ChangeLog
trunk/examples/book/builder/basic/main.cc
trunk/examples/book/builder/derived/main.cc
Modified: trunk/examples/book/builder/basic/main.cc
==============================================================================
--- trunk/examples/book/builder/basic/main.cc (original)
+++ trunk/examples/book/builder/basic/main.cc Mon Nov 10 14:22:47 2008
@@ -19,14 +19,18 @@
{
refBuilder->add_from_file("basic.ui");
}
+ catch(const Glib::FileError& ex)
+ {
+ std::cerr << "FileError: " << ex.what() << std::endl;
+ return 1;
+ }
catch(const Gtk::BuilderError& ex)
{
- std::cerr << ex.what() << std::endl;
+ std::cerr << "BuilderError: " << ex.what() << std::endl;
return 1;
}
//Get the GtkBuilder-instantiated Dialog:
-
refBuilder->get_widget("DialogBasic", pDialog);
if(pDialog)
{
Modified: trunk/examples/book/builder/derived/main.cc
==============================================================================
--- trunk/examples/book/builder/derived/main.cc (original)
+++ trunk/examples/book/builder/derived/main.cc Mon Nov 10 14:22:47 2008
@@ -29,9 +29,14 @@
{
refBuilder->add_from_file("basic.ui");
}
+ catch(const Glib::FileError& ex)
+ {
+ std::cerr << "FileError: " << ex.what() << std::endl;
+ return 1;
+ }
catch(const Gtk::BuilderError& ex)
{
- std::cerr << ex.what() << std::endl;
+ std::cerr << "BuilderError: " << ex.what() << std::endl;
return 1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]