end of line mistake

This commit is contained in:
Perberos 2011-11-12 04:28:06 -03:00
parent 09be0113ed
commit 8e150735c5
5 changed files with 86 additions and 89 deletions

View File

@ -4,20 +4,23 @@
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME=mate-text-editor
PKG_NAME="mate-text-editor"
(test -f $srcdir/configure.ac \
&& test -f $srcdir/autogen.sh \
&& test -d $srcdir/pluma \
&& test -f $srcdir/pluma/pluma.c) || {
(test -f $srcdir/configure.ac) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
}
which mate-autogen.sh || {
echo "You need to install mate-common from the MATE CVS"
echo "You need to install mate-common from the MATE Git"
exit 1
}
REQUIRED_AUTOMAKE_VERSION=1.9 REQUIRED_MACROS=python.m4 MATE_DATADIR="$mate_datadir" USE_COMMON_DOC_BUILD=yes . mate-autogen.sh
REQUIRED_AUTOMAKE_VERSION=1.9
REQUIRED_MACROS=python.m4
MATE_DATADIR="$mate_datadir"
USE_COMMON_DOC_BUILD=yes
. mate-autogen.sh

0
plugins/modelines/pluma-modeline-plugin.h Executable file → Normal file
View File

View File

@ -525,21 +525,25 @@ free_tag_group (TagGroup *tag_group)
pluma_debug_message (DEBUG_PLUGINS, "END");
}
void
free_taglist (void)
void free_taglist(void)
{
GList* l;
pluma_debug_message(DEBUG_PLUGINS, "ref_count: %d", taglist_ref_count);
if (taglist == NULL)
{
return;
}
g_return_if_fail(taglist_ref_count > 0);
--taglist_ref_count;
if (taglist_ref_count > 0)
{
return;
}
for (l = taglist->tag_groups; l != NULL; l = g_list_next (l))
{
@ -553,8 +557,7 @@ free_taglist (void)
pluma_debug_message (DEBUG_PLUGINS, "Really freed");
}
static TagList *
parse_taglist_dir (const gchar *dir)
static TagList* parse_taglist_dir(const gchar* dir)
{
GError* error = NULL;
GDir* d;
@ -563,6 +566,7 @@ parse_taglist_dir (const gchar *dir)
pluma_debug_message(DEBUG_PLUGINS, "DIR: %s", dir);
d = g_dir_open(dir, 0, &error);
if (!d)
{
pluma_debug_message(DEBUG_PLUGINS, "%s", error->message);
@ -572,8 +576,7 @@ parse_taglist_dir (const gchar *dir)
while ((dirent = g_dir_read_name(d)))
{
if (g_str_has_suffix (dirent, ".tags") ||
g_str_has_suffix (dirent, ".tags.gz"))
if (g_str_has_suffix(dirent, ".tags") || g_str_has_suffix(dirent, ".tags.gz"))
{
gchar* tags_file = g_build_filename(dir, dirent, NULL);
parse_taglist_file(tags_file);
@ -628,19 +631,13 @@ TagList* create_taglist (const gchar *data_dir)
}
else if (home != NULL)
{
pdir = g_build_filename (home,
".config",
USER_PLUMA_TAGLIST_PLUGIN_LOCATION,
NULL);
pdir = g_build_filename(home, ".config", USER_PLUMA_TAGLIST_PLUGIN_LOCATION, NULL);
parse_taglist_dir(pdir);
g_free (pdir);
}
#else
pdir = g_build_filename (g_get_user_config_dir (),
"pluma",
"taglist",
NULL);
pdir = g_build_filename(g_get_user_config_dir(), "pluma", "taglist", NULL);
parse_taglist_dir(pdir);
g_free(pdir);
#endif

View File

@ -38,20 +38,17 @@ typedef struct _TagList TagList;
typedef struct _TagGroup TagGroup;
typedef struct _Tag Tag;
struct _TagList
{
struct _TagList {
GList* tag_groups;
};
struct _TagGroup
{
struct _TagGroup {
xmlChar* name;
GList* tags;
};
struct _Tag
{
struct _Tag {
xmlChar* name;
xmlChar* begin;
xmlChar* end;

View File

@ -75,7 +75,7 @@ void _pluma_cmd_help_about(GtkAction* action, PlumaWindow* window)
"Copyright \xc2\xa9 1998-2000 Evan Lawrence, Alex Robert\n"
"Copyright \xc2\xa9 2000-2002 Chema Celorio, Paolo Maggi\n"
"Copyright \xc2\xa9 2003-2006 Paolo Maggi\n"
"Copyright \xc2\xa9 2004-2010 Paolo Borelli, Jesse van den Kieboom\nSteve Fr\303\251cinaux, Ignacio Casal Quinteiro"
"Copyright \xc2\xa9 2004-2010 Paolo Borelli, Jesse van den Kieboom\nSteve Fr\303\251cinaux, Ignacio Casal Quinteiro\n"
"Copyright \xc2\xa9 2011 Perberos";
static const gchar comments[] = \