Updated Spanish translation
[anjuta-git-plugin.git] / plugins / sourceview / anjuta-utils.h
blob7d8e1aa9784806e580e3d84c88341c00878d75d4
1 /*
2 * anjuta-utils.h
3 * This file is part of anjuta
5 * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
6 * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi
7 * Copyright (C) 2002 - 2005 Paolo Maggi
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA.
26 * Modified by the anjuta Team, 1998-2005. See the AUTHORS file for a
27 * list of people on the anjuta Team.
28 * See the ChangeLog files for a list of changes.
30 * $Id$
33 #ifndef __GEDIT_UTILS_H__
34 #define __GEDIT_UTILS_H__
36 #include <glib.h>
37 #include <gtk/gtkwidget.h>
38 #include <gtk/gtkdialog.h>
39 #include <gtk/gtkaboutdialog.h>
40 #include <gtk/gtkmenu.h>
41 #include <gtk/gtktextiter.h>
42 #include <atk/atk.h>
43 #include "anjuta-encodings.h"
45 G_BEGIN_DECLS
47 /* useful macro */
48 #define GBOOLEAN_TO_POINTER(i) ((gpointer) ((i) ? 2 : 1))
49 #define GPOINTER_TO_BOOLEAN(i) ((gboolean) ((((gint)(i)) == 2) ? TRUE : FALSE))
51 #define IS_VALID_BOOLEAN(v) (((v == TRUE) || (v == FALSE)) ? TRUE : FALSE)
53 enum { GEDIT_ALL_WORKSPACES = 0xffffffff };
55 gboolean anjuta_utils_uri_has_writable_scheme (const gchar *uri);
56 gboolean anjuta_utils_uri_has_file_scheme (const gchar *uri);
58 gboolean g_utf8_caselessnmatch (const char *s1,
59 const char *s2,
60 gssize n1,
61 gssize n2);
63 gboolean anjuta_utils_uri_exists (const gchar* text_uri);
65 gchar *anjuta_utils_make_valid_utf8 (const char *name);
67 gboolean anjuta_utils_is_valid_uri (const gchar *uri);
69 G_END_DECLS
71 #endif /* __ANJUTA_UTILS_H__ */