diff options
author | Murray Cumming <murrayc@murrayc.com> | 2013-09-08 20:02:26 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2013-09-08 20:02:26 +0200 |
commit | c077defd970629fbc4fa9f2251973813bf939ed0 (patch) | |
tree | 67df985a948dc4a848e0307ff7902b5b79840b82 | |
parent | 93548404f790810e6d7632097424b1e446f8992f (diff) | |
download | glibmm-c077defd970629fbc4fa9f2251973813bf939ed0.tar.gz |
Revert "Fix the build"
This reverts commit 5d4342dd14bb7ca79b63c1341fdfa420164b35e4.
-rw-r--r-- | glib/glibmm/objectbase.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/glib/glibmm/objectbase.cc b/glib/glibmm/objectbase.cc index e1fab4a6..047f1925 100644 --- a/glib/glibmm/objectbase.cc +++ b/glib/glibmm/objectbase.cc @@ -1,4 +1,7 @@ -/* Copyright 2002-2013 The gtkmm Development Team +// -*- c++ -*- +/* $Id$ */ + +/* Copyright 2002 The gtkmm Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -261,7 +264,7 @@ void ObjectBase::set_property_value(const Glib::ustring& property_name, const Gl if(cvalue && G_VALUE_HOLDS(cvalue, G_TYPE_STRING)) { const gchar* str = g_value_get_string (cvalue); - if(g_strcmp0(str, "") == 0) + if(str && (strcmp(str, "") == 0)) { //Pass NULL to the C API instead of "": g_object_set(gobj(), property_name.c_str(), (void*)0, (void*)0); |