NetworkManager r3657 - trunk/gfilemonitor
- From: dcbw svn gnome org
- To: svn-commits-list gnome org
- Subject: NetworkManager r3657 - trunk/gfilemonitor
- Date: Mon, 12 May 2008 02:18:03 +0100 (BST)
Author: dcbw
Date: Mon May 12 01:18:03 2008
New Revision: 3657
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3657&view=rev
Log:
Replace usage of g_warn_if_fail() with g_warning()
Modified:
trunk/gfilemonitor/glocaldirectorymonitor.c
trunk/gfilemonitor/glocalfilemonitor.c
Modified: trunk/gfilemonitor/glocaldirectorymonitor.c
==============================================================================
--- trunk/gfilemonitor/glocaldirectorymonitor.c (original)
+++ trunk/gfilemonitor/glocaldirectorymonitor.c Mon May 12 01:18:03 2008
@@ -101,7 +101,8 @@
{
if (strcmp ("dirname", g_param_spec_get_name (construct_properties[i].pspec)) == 0)
{
- g_warn_if_fail (G_VALUE_HOLDS_STRING (construct_properties[i].value));
+ if (!G_VALUE_HOLDS_STRING (construct_properties[i].value))
+ g_warning ("%s: warning: construct_properties[i].value does not hold a string!", __func__);
dirname = g_value_get_string (construct_properties[i].value);
break;
}
Modified: trunk/gfilemonitor/glocalfilemonitor.c
==============================================================================
--- trunk/gfilemonitor/glocalfilemonitor.c (original)
+++ trunk/gfilemonitor/glocalfilemonitor.c Mon May 12 01:18:03 2008
@@ -79,13 +79,15 @@
{
if (strcmp ("filename", g_param_spec_get_name (construct_properties[i].pspec)) == 0)
{
- g_warn_if_fail (G_VALUE_HOLDS_STRING (construct_properties[i].value));
+ if (!G_VALUE_HOLDS_STRING (construct_properties[i].value))
+ g_warning ("%s: warning: construct_properties[i].value does not hold a string!", __func__);
filename = g_value_get_string (construct_properties[i].value);
break;
}
}
- g_warn_if_fail (filename != NULL);
+ if (filename == NULL)
+ g_warning ("%s: warning: filename was NULL", __func__);
local_monitor->filename = g_strdup (filename);
return obj;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]