summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-lib-self-check-functions.c
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2000-01-07 00:07:34 +0000
committerDarin Adler <darin@src.gnome.org>2000-01-07 00:07:34 +0000
commit313469f41318c61679368f9fa5973151f5f6500b (patch)
tree3ef5110ac2fadd29561c2ad4203a48b06b2e2ca8 /libnautilus-private/nautilus-lib-self-check-functions.c
parent5abab532aa672b3febfbb97017fc42da767d9b97 (diff)
downloadnautilus-313469f41318c61679368f9fa5973151f5f6500b.tar.gz
Moved self-check framework into libnautilus. Added functions so each
check will report if it fails instead of just aborting. Added new functions to manage a string that specifies a color or gradient, and added tests for the new functions.
Diffstat (limited to 'libnautilus-private/nautilus-lib-self-check-functions.c')
-rw-r--r--libnautilus-private/nautilus-lib-self-check-functions.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-lib-self-check-functions.c b/libnautilus-private/nautilus-lib-self-check-functions.c
new file mode 100644
index 000000000..3e8d2e21e
--- /dev/null
+++ b/libnautilus-private/nautilus-lib-self-check-functions.c
@@ -0,0 +1,39 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
+
+ nautilus-lib-self-check-functions.c: Wrapper for all self check functions
+ in Nautilus proper.
+
+ Copyright (C) 2000 Eazel, Inc.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with this program; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+ Author: Darin Adler <darin@eazel.com>
+*/
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#if ! defined (NAUTILUS_OMIT_SELF_CHECK)
+
+#include "nautilus-lib-self-check-functions.h"
+
+void nautilus_run_lib_self_checks ()
+{
+ nautilus_self_check_gdk_extensions ();
+}
+
+#endif /* ! NAUTILUS_OMIT_SELF_CHECK */