[glom: 1/2] Fix an error check.
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Subject: [glom: 1/2] Fix an error check.
- Date: Sun, 28 Jun 2009 09:49:40 +0000 (UTC)
commit 495be5e7379275593fa96f4068540a4412c45300
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Jun 26 19:38:04 2009 +0200
Fix an error check.
* glom/xsl_utils.cc: transform_and_open(): Fix the check for a failed
gtk_show_uri(), so we really check. Noticed while stealing this code
for vidrot.
ChangeLog | 8 ++++++++
glom/xsl_utils.cc | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ec24b08..4d42c16 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-06-26 Murray Cumming <murrayc murrayc com>
+
+ Fix an error check.
+
+ * glom/xsl_utils.cc: transform_and_open(): Fix the check for a failed
+ gtk_show_uri(), so we really check. Noticed while stealing this code
+ for vidrot.
+
2009-06-26 Armin Burgmeier <armin openismus com>
* glom/libglom/document/bakery/document.h: Document that failure_code
diff --git a/glom/xsl_utils.cc b/glom/xsl_utils.cc
index c202fdc..c00c708 100644
--- a/glom/xsl_utils.cc
+++ b/glom/xsl_utils.cc
@@ -147,7 +147,7 @@ void GlomXslUtils::transform_and_open(const xmlpp::Document& xml_document, const
#else
//Use the GNOME browser:
GError* gerror = 0;
- if(gtk_show_uri(0 /* screen */, file->get_uri().c_str(), GDK_CURRENT_TIME, &gerror))
+ if(!gtk_show_uri(0 /* screen */, file->get_uri().c_str(), GDK_CURRENT_TIME, &gerror))
{
std::cerr << "Error while calling gtk_show_uri(): " << gerror->message << std::endl;
g_error_free(gerror);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]