[gtksourceview/wip/gutter-renderer-folds: 8/10] Create empty GtkSourceGutterRendererFolds class



commit 64ee5ff958b5f25f5f500150e927198540b71edc
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Sep 6 18:03:05 2013 +0200

    Create empty GtkSourceGutterRendererFolds class

 gtksourceview/Makefile.am                    |    2 +
 gtksourceview/gtksourcegutterrendererfolds.c |   52 +++++++++++++++++++++++
 gtksourceview/gtksourcegutterrendererfolds.h |   58 ++++++++++++++++++++++++++
 gtksourceview/gtksourcetypes.h               |    1 +
 po/POTFILES.in                               |    1 +
 5 files changed, 114 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/Makefile.am b/gtksourceview/Makefile.am
index e27d220..d6a0162 100644
--- a/gtksourceview/Makefile.am
+++ b/gtksourceview/Makefile.am
@@ -32,6 +32,7 @@ libgtksourceview_headers =                    \
        gtksourcecompletionprovider.h           \
        gtksourcegutter.h                       \
        gtksourcegutterrenderer.h               \
+       gtksourcegutterrendererfolds.h          \
        gtksourcegutterrendererpixbuf.h         \
        gtksourcegutterrenderertext.h           \
        gtksourcelanguage.h                     \
@@ -99,6 +100,7 @@ libgtksourceview_c_files = \
        gtksourcecompletionprovider.c   \
        gtksourcegutter.c               \
        gtksourcegutterrenderer.c       \
+       gtksourcegutterrendererfolds.c  \
        gtksourcegutterrendererpixbuf.c \
        gtksourcegutterrenderertext.c   \
        gtksourcelanguage.c             \
diff --git a/gtksourceview/gtksourcegutterrendererfolds.c b/gtksourceview/gtksourcegutterrendererfolds.c
new file mode 100644
index 0000000..d82cc47
--- /dev/null
+++ b/gtksourceview/gtksourcegutterrendererfolds.c
@@ -0,0 +1,52 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*- */
+/* gtksourcegutterrendererfolds.c
+ * This file is part of GtkSourceView
+ *
+ * Copyright (C) 2013 - Sébastien Wilmet <swilmet gnome org>
+ *
+ * GtkSourceView 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.1 of the License, or (at your option) any later version.
+ *
+ * GtkSourceView 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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#include "gtksourcegutterrendererfolds.h"
+
+struct _GtkSourceGutterRendererFoldsPrivate
+{
+       gint something;
+};
+
+G_DEFINE_TYPE_WITH_PRIVATE (GtkSourceGutterRendererFolds,
+                           gtk_source_gutter_renderer_folds,
+                           GTK_SOURCE_TYPE_GUTTER_RENDERER)
+
+static void
+gtk_source_gutter_renderer_folds_finalize (GObject *object)
+{
+
+       G_OBJECT_CLASS (gtk_source_gutter_renderer_folds_parent_class)->finalize (object);
+}
+
+static void
+gtk_source_gutter_renderer_folds_class_init (GtkSourceGutterRendererFoldsClass *klass)
+{
+       GObjectClass *object_class = G_OBJECT_CLASS (klass);
+
+       object_class->finalize = gtk_source_gutter_renderer_folds_finalize;
+}
+
+static void
+gtk_source_gutter_renderer_folds_init (GtkSourceGutterRendererFolds *self)
+{
+       self->priv = gtk_source_gutter_renderer_folds_get_instance_private (self);
+}
diff --git a/gtksourceview/gtksourcegutterrendererfolds.h b/gtksourceview/gtksourcegutterrendererfolds.h
new file mode 100644
index 0000000..09953f6
--- /dev/null
+++ b/gtksourceview/gtksourcegutterrendererfolds.h
@@ -0,0 +1,58 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8; coding: utf-8 -*- */
+/* gtksourcegutterrendererfolds.h
+ * This file is part of GtkSourceView
+ *
+ * Copyright (C) 2013 - Sébastien Wilmet <swilmet gnome org>
+ *
+ * GtkSourceView 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.1 of the License, or (at your option) any later version.
+ *
+ * GtkSourceView 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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#ifndef __GTK_SOURCE_GUTTER_RENDERER_FOLDS_H__
+#define __GTK_SOURCE_GUTTER_RENDERER_FOLDS_H__
+
+#include <gtksourceview/gtksourcetypes.h>
+#include <gtksourceview/gtksourcegutterrenderer.h>
+
+G_BEGIN_DECLS
+
+#define GTK_SOURCE_TYPE_GUTTER_RENDERER_FOLDS             (gtk_source_gutter_renderer_folds_get_type ())
+#define GTK_SOURCE_GUTTER_RENDERER_FOLDS(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), 
GTK_SOURCE_TYPE_GUTTER_RENDERER_FOLDS, GtkSourceGutterRendererFolds))
+#define GTK_SOURCE_GUTTER_RENDERER_FOLDS_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), 
GTK_SOURCE_TYPE_GUTTER_RENDERER_FOLDS, GtkSourceGutterRendererFoldsClass))
+#define GTK_SOURCE_IS_GUTTER_RENDERER_FOLDS(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), 
GTK_SOURCE_TYPE_GUTTER_RENDERER_FOLDS))
+#define GTK_SOURCE_IS_GUTTER_RENDERER_FOLDS_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), 
GTK_SOURCE_TYPE_GUTTER_RENDERER_FOLDS))
+#define GTK_SOURCE_GUTTER_RENDERER_FOLDS_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), 
GTK_SOURCE_TYPE_GUTTER_RENDERER_FOLDS, GtkSourceGutterRendererFoldsClass))
+
+typedef struct _GtkSourceGutterRendererFoldsClass    GtkSourceGutterRendererFoldsClass;
+typedef struct _GtkSourceGutterRendererFoldsPrivate  GtkSourceGutterRendererFoldsPrivate;
+
+struct _GtkSourceGutterRendererFolds
+{
+       GtkSourceGutterRenderer parent;
+
+       GtkSourceGutterRendererFoldsPrivate *priv;
+};
+
+struct _GtkSourceGutterRendererFoldsClass
+{
+       GtkSourceGutterRendererClass parent_class;
+
+       gpointer padding[10];
+};
+
+GType gtk_source_gutter_renderer_folds_get_type (void) G_GNUC_CONST;
+
+G_END_DECLS
+
+#endif /* __GTK_SOURCE_GUTTER_RENDERER_FOLDS_H__ */
diff --git a/gtksourceview/gtksourcetypes.h b/gtksourceview/gtksourcetypes.h
index 6442ddd..2f9ed21 100644
--- a/gtksourceview/gtksourcetypes.h
+++ b/gtksourceview/gtksourcetypes.h
@@ -35,6 +35,7 @@ typedef struct _GtkSourceCompletionProposal   GtkSourceCompletionProposal;
 typedef struct _GtkSourceCompletionProvider    GtkSourceCompletionProvider;
 typedef struct _GtkSourceGutter                        GtkSourceGutter;
 typedef struct _GtkSourceGutterRenderer                GtkSourceGutterRenderer;
+typedef struct _GtkSourceGutterRendererFolds   GtkSourceGutterRendererFolds;
 typedef struct _GtkSourceGutterRendererPixbuf  GtkSourceGutterRendererPixbuf;
 typedef struct _GtkSourceGutterRendererText    GtkSourceGutterRendererText;
 typedef struct _GtkSourceLanguage              GtkSourceLanguage;
diff --git a/po/POTFILES.in b/po/POTFILES.in
index ec203dc..dd344ec 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -122,6 +122,7 @@ gtksourceview/gtksourcecompletionmodel.c
 gtksourceview/gtksourcecontextengine.c
 gtksourceview/gtksourcegutter.c
 gtksourceview/gtksourcegutterrenderer.c
+gtksourceview/gtksourcegutterrendererfolds.c
 gtksourceview/gtksourcegutterrendererpixbuf.c
 gtksourceview/gtksourcegutterrenderertext.c
 gtksourceview/gtksourcelanguage.c


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