Removed GtkSourceTag

This commit is contained in:
Yevgen Muntyan 2006-12-13 23:17:07 -06:00
parent fbf40d617b
commit ed840c1b22
5 changed files with 2 additions and 94 deletions

View File

@ -49,7 +49,5 @@ libgtksourceview_la_SOURCES = \
gtksourcestylemanager.h \
gtksourcestylescheme.c \
gtksourcestylescheme.h \
gtksourcetag.c \
gtksourcetag.h \
gtktextregion.c \
gtktextregion.h

View File

@ -25,7 +25,6 @@
#include "gtksourceview-i18n.h"
#include "gtksourcecontextengine.h"
#include "gtktextregion.h"
#include "gtksourcetag.h"
#include "gtksourcelanguage-private.h"
#include "gtksourcebuffer.h"
#include "eggregex.h"
@ -533,18 +532,15 @@ create_tag (GtkSourceContextEngine *ce,
{
GSList *tags;
GtkTextTag *new_tag;
GtkTextTagTable *table;
g_assert (style_name != NULL);
tags = g_hash_table_lookup (ce->priv->tags, style_name);
new_tag = g_object_new (GTK_TYPE_SOURCE_TAG, NULL);
table = gtk_text_buffer_get_tag_table (ce->priv->buffer);
gtk_text_tag_table_add (table, new_tag);
new_tag = gtk_text_buffer_create_tag (ce->priv->buffer, NULL, NULL);
set_tag_style (ce, new_tag, style_name);
tags = g_slist_prepend (tags, new_tag);
tags = g_slist_prepend (tags, g_object_ref (new_tag));
g_hash_table_insert (ce->priv->tags, g_strdup (style_name), tags);
return new_tag;

View File

@ -28,7 +28,6 @@
#include <libxml/parser.h>
#include "gtksourceview-i18n.h"
#include "gtksourcebuffer.h"
#include "gtksourcetag.h"
#include "gtksourcelanguage.h"
#include "gtksourcelanguagesmanager.h"
#include "gtksourcelanguage-private.h"

View File

@ -1,33 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
* gtksourcetag.c
*
* Copyright (C) 2003 - Paolo Maggi <paolo.maggi@polito.it>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library 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 Library General Public License for more details.
*
* You should have received a copy of the GNU Library 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.
*/
#include "gtksourcetag.h"
G_DEFINE_TYPE (GtkSourceTag, gtk_source_tag, GTK_TYPE_TEXT_TAG)
static void
gtk_source_tag_class_init (GtkSourceTagClass *klass)
{
}
static void
gtk_source_tag_init (GtkSourceTag *tag)
{
}

View File

@ -1,52 +0,0 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*-
* gtksourcetag.h
*
* Copyright (C) 2003 - Paolo Maggi <paolo.maggi@polito.it>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library 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 Library General Public License for more details.
*
* You should have received a copy of the GNU Library 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.
*/
#ifndef __GTK_SOURCE_TAG_H__
#define __GTK_SOURCE_TAG_H__
#include <gtk/gtktexttag.h>
G_BEGIN_DECLS
#define GTK_TYPE_SOURCE_TAG (gtk_source_tag_get_type ())
#define GTK_SOURCE_TAG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_SOURCE_TAG, GtkSourceTag))
#define GTK_SOURCE_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_SOURCE_TAG, GtkSourceTagClass))
#define GTK_IS_SOURCE_TAG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_SOURCE_TAG))
#define GTK_IS_SOURCE_TAG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SOURCE_TAG))
#define GTK_SOURCE_TAG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_SOURCE_TAG, GtkSourceTagClass))
typedef struct _GtkSourceTag GtkSourceTag;
typedef struct _GtkSourceTagClass GtkSourceTagClass;
struct _GtkSourceTag
{
GtkTextTag base;
};
struct _GtkSourceTagClass
{
GtkTextTagClass base_class;
};
GType gtk_source_tag_get_type (void) G_GNUC_CONST;
G_END_DECLS
#endif /* __GTK_SOURCE_TAG_H__ */