diff options
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/Makefile.am | 6 | ||||
-rw-r--r-- | e-util/e-canvas-utils.h | 7 | ||||
-rw-r--r-- | e-util/e-util.h | 8 | ||||
-rw-r--r-- | e-util/e-util.h-29002 | 8 | ||||
-rw-r--r-- | e-util/e-xml-utils.c | 36 | ||||
-rw-r--r-- | e-util/e-xml-utils.c-56826 | 36 | ||||
-rw-r--r-- | e-util/e-xml-utils.h | 30 | ||||
-rw-r--r-- | e-util/e-xml-utils.h-82548 | 30 |
8 files changed, 158 insertions, 3 deletions
diff --git a/e-util/Makefile.am b/e-util/Makefile.am index 151b0b107f..303e74f58b 100644 --- a/e-util/Makefile.am +++ b/e-util/Makefile.am @@ -12,6 +12,8 @@ libeutil_a_SOURCES = \ e-cursors.h \ e-gui-utils.c \ e-gui-utils.h \ - e-util.h \ e-setup.c \ - e-setup.h + e-setup.h \ + e-util.h \ + e-xml-utils.c \ + e-xml-utils.h diff --git a/e-util/e-canvas-utils.h b/e-util/e-canvas-utils.h index 13ec43117c..9580f64f96 100644 --- a/e-util/e-canvas-utils.h +++ b/e-util/e-canvas-utils.h @@ -1,6 +1,6 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* - * e-canvas-utils.c + * e-canvas-utils.h * Copyright (C) 2000 Helix Code, Inc. * Author: Chris Lahey <clahey@helixcode.com> * @@ -20,5 +20,10 @@ * Boston, MA 02111-1307, USA. */ +#ifndef __E_CANVAS_UTILS__ +#define __E_CANVAS_UTILS__ + #include <gnome.h> void e_canvas_item_move_absolute (GnomeCanvasItem *item, double dx, double dy); + +#endif /* __E_CANVAS_UTILS__ */ diff --git a/e-util/e-util.h b/e-util/e-util.h index ad4d754770..660e579bfc 100644 --- a/e-util/e-util.h +++ b/e-util/e-util.h @@ -21,4 +21,12 @@ GtkType l##_get_type(void)\ return type;\ }\ + +typedef enum { + E_FOCUS_NONE, + E_FOCUS_CURRENT, + E_FOCUS_START, + E_FOCUS_END +} EFocus; + #endif /* _E_UTIL_H_ */ diff --git a/e-util/e-util.h-29002 b/e-util/e-util.h-29002 index ad4d754770..660e579bfc 100644 --- a/e-util/e-util.h-29002 +++ b/e-util/e-util.h-29002 @@ -21,4 +21,12 @@ GtkType l##_get_type(void)\ return type;\ }\ + +typedef enum { + E_FOCUS_NONE, + E_FOCUS_CURRENT, + E_FOCUS_START, + E_FOCUS_END +} EFocus; + #endif /* _E_UTIL_H_ */ diff --git a/e-util/e-xml-utils.c b/e-util/e-xml-utils.c new file mode 100644 index 0000000000..7c6356dbef --- /dev/null +++ b/e-util/e-xml-utils.c @@ -0,0 +1,36 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * e-xml-utils.c + * Copyright (C) 2000 Helix Code, Inc. + * Author: Chris Lahey <clahey@helixcode.com> + * + * This library 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 library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#include "e-xml-utils.h" +#include <gnome-xml/parser.h> + +xmlNode *e_xml_get_child_by_name(xmlNode *parent, xmlChar *child_name) +{ + xmlNode *child; + + for (child = parent->childs; child; child = child->next) { + if ( !xmlStrcmp( child->name, child_name ) ) { + return child; + } + } + return NULL; +} diff --git a/e-util/e-xml-utils.c-56826 b/e-util/e-xml-utils.c-56826 new file mode 100644 index 0000000000..7c6356dbef --- /dev/null +++ b/e-util/e-xml-utils.c-56826 @@ -0,0 +1,36 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * e-xml-utils.c + * Copyright (C) 2000 Helix Code, Inc. + * Author: Chris Lahey <clahey@helixcode.com> + * + * This library 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 library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#include "e-xml-utils.h" +#include <gnome-xml/parser.h> + +xmlNode *e_xml_get_child_by_name(xmlNode *parent, xmlChar *child_name) +{ + xmlNode *child; + + for (child = parent->childs; child; child = child->next) { + if ( !xmlStrcmp( child->name, child_name ) ) { + return child; + } + } + return NULL; +} diff --git a/e-util/e-xml-utils.h b/e-util/e-xml-utils.h new file mode 100644 index 0000000000..b55b4c6362 --- /dev/null +++ b/e-util/e-xml-utils.h @@ -0,0 +1,30 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * e-xml-utils.h + * Copyright (C) 2000 Helix Code, Inc. + * Author: Chris Lahey <clahey@helixcode.com> + * + * This library 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 library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __E_XML_UTILS__ +#define __E_XML_UTILS__ + +#include <gnome.h> +#include <gnome-xml/tree.h> +xmlNode *e_xml_get_child_by_name(xmlNode *parent, xmlChar *child_name); + +#endif /* __E_XML_UTILS__ */ diff --git a/e-util/e-xml-utils.h-82548 b/e-util/e-xml-utils.h-82548 new file mode 100644 index 0000000000..b55b4c6362 --- /dev/null +++ b/e-util/e-xml-utils.h-82548 @@ -0,0 +1,30 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * e-xml-utils.h + * Copyright (C) 2000 Helix Code, Inc. + * Author: Chris Lahey <clahey@helixcode.com> + * + * This library 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 library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef __E_XML_UTILS__ +#define __E_XML_UTILS__ + +#include <gnome.h> +#include <gnome-xml/tree.h> +xmlNode *e_xml_get_child_by_name(xmlNode *parent, xmlChar *child_name); + +#endif /* __E_XML_UTILS__ */ |