gimp r27741 - in trunk: . libgimpwidgets



Author: martinn
Date: Sun Nov 30 21:25:02 2008
New Revision: 27741
URL: http://svn.gnome.org/viewvc/gimp?rev=27741&view=rev

Log:
* libgimpwidgets/gimpwidgets-error.[ch]: New files defining
GIMP_WIDGETS_ERROR domain with currently only a
GIMP_WIDGETS_PARSE_ERROR error code.

* libgimpwidgets/Makefile.am: Add the new files here.


Added:
   trunk/libgimpwidgets/gimpwidgets-error.c
   trunk/libgimpwidgets/gimpwidgets-error.h
Modified:
   trunk/ChangeLog
   trunk/libgimpwidgets/Makefile.am

Modified: trunk/libgimpwidgets/Makefile.am
==============================================================================
--- trunk/libgimpwidgets/Makefile.am	(original)
+++ trunk/libgimpwidgets/Makefile.am	Sun Nov 30 21:25:02 2008
@@ -160,6 +160,8 @@
 	gimpstringcombobox.h		\
 	gimpunitmenu.c			\
 	gimpunitmenu.h			\
+	gimpwidgets-error.c		\
+	gimpwidgets-error.h		\
 	gimpwidgets-private.c		\
 	gimpwidgets-private.h		\
 	gimpwidgets.c			\
@@ -232,6 +234,7 @@
 	gimpstock.h			\
 	gimpstringcombobox.h		\
 	gimpunitmenu.h			\
+	gimpwidgets-error.h		\
 	gimpwidgets.h			\
 	gimpwidgetsenums.h		\
 	gimpwidgetstypes.h		\

Added: trunk/libgimpwidgets/gimpwidgets-error.c
==============================================================================
--- (empty file)
+++ trunk/libgimpwidgets/gimpwidgets-error.c	Sun Nov 30 21:25:02 2008
@@ -0,0 +1,41 @@
+/* LIBGIMP - The GIMP Library
+ * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
+ *
+ * gimpwidgets-error.c
+ * Copyright (C) 2008 Martin Nordholts <martinn svn gnome org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#include "config.h"
+
+#include <glib.h>
+
+#include "gimpwidgets-error.h"
+
+
+/**
+ * gimp_widgets_error_quark:
+ *
+ * This function is never called directly. Use GIMP_WIDGETS_ERROR() instead.
+ *
+ * Return value: the #GQuark that defines the GIMP widgets error domain.
+ **/
+GQuark
+gimp_widgets_error_quark (void)
+{
+  return g_quark_from_static_string ("gimp-widgets-error-quark");
+}

Added: trunk/libgimpwidgets/gimpwidgets-error.h
==============================================================================
--- (empty file)
+++ trunk/libgimpwidgets/gimpwidgets-error.h	Sun Nov 30 21:25:02 2008
@@ -0,0 +1,42 @@
+/* LIBGIMP - The GIMP Library
+ * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
+ *
+ * gimpwidgets-error.h
+ * Copyright (C) 2008  Martin Nordholts <martinn svn gnome org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __GIMP_WIDGETS_ERROR_H__
+#define __GIMP_WIDGETS_ERROR_H__
+
+G_BEGIN_DECLS
+
+
+typedef enum
+{
+  GIMP_WIDGETS_PARSE_ERROR,
+} GimpWidgetsError;
+
+
+#define GIMP_WIDGETS_ERROR (gimp_widgets_error_quark ())
+
+GQuark  gimp_widgets_error_quark (void) G_GNUC_CONST;
+
+
+G_END_DECLS
+
+#endif  /* __GIMP_WIDGETS_ERROR_H__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]