aboutsummaryrefslogtreecommitdiffstats
path: root/libgnomecanvas
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-10-09 11:33:15 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-30 01:49:59 +0800
commitebd534357ebcba5fef130d81b3f23c00c418a444 (patch)
tree7e23c488a1db6cfd124d30ad35f5d63f799a2ce2 /libgnomecanvas
parent9c9cbddd06100aebe0341bb8b0a632fd5ff5a2b3 (diff)
downloadgsoc2013-evolution-ebd534357ebcba5fef130d81b3f23c00c418a444.tar
gsoc2013-evolution-ebd534357ebcba5fef130d81b3f23c00c418a444.tar.gz
gsoc2013-evolution-ebd534357ebcba5fef130d81b3f23c00c418a444.tar.bz2
gsoc2013-evolution-ebd534357ebcba5fef130d81b3f23c00c418a444.tar.lz
gsoc2013-evolution-ebd534357ebcba5fef130d81b3f23c00c418a444.tar.xz
gsoc2013-evolution-ebd534357ebcba5fef130d81b3f23c00c418a444.tar.zst
gsoc2013-evolution-ebd534357ebcba5fef130d81b3f23c00c418a444.zip
gnome-canvas: Remove GnomeCanvasBpath item
It's unused.
Diffstat (limited to 'libgnomecanvas')
-rw-r--r--libgnomecanvas/Makefile.am2
-rw-r--r--libgnomecanvas/gnome-canvas-bpath.c161
-rw-r--r--libgnomecanvas/gnome-canvas-bpath.h58
-rw-r--r--libgnomecanvas/libgnomecanvas.h1
4 files changed, 0 insertions, 222 deletions
diff --git a/libgnomecanvas/Makefile.am b/libgnomecanvas/Makefile.am
index e0719ecfa1..a69cbb989d 100644
--- a/libgnomecanvas/Makefile.am
+++ b/libgnomecanvas/Makefile.am
@@ -23,7 +23,6 @@ libgnomecanvasinclude_HEADERS = \
gailcanvastextfactory.h \
gailcanvaswidget.h \
gailcanvaswidgetfactory.h \
- gnome-canvas-bpath.h \
gnome-canvas-clipgroup.h \
gnome-canvas-i18n.h \
gnome-canvas-line.h \
@@ -49,7 +48,6 @@ libgnomecanvas_la_SOURCES = \
gailcanvastextfactory.c \
gailcanvaswidget.c \
gailcanvaswidgetfactory.c \
- gnome-canvas-bpath.c \
gnome-canvas-clipgroup.c \
gnome-canvas-line.c \
gnome-canvas-path-def.c \
diff --git a/libgnomecanvas/gnome-canvas-bpath.c b/libgnomecanvas/gnome-canvas-bpath.c
deleted file mode 100644
index 0aee2ece46..0000000000
--- a/libgnomecanvas/gnome-canvas-bpath.c
+++ /dev/null
@@ -1,161 +0,0 @@
-/* Bpath item type for GnomeCanvas widget
- *
- * GnomeCanvas is basically a port of the Tk toolkit's most excellent canvas widget. Tk is
- * copyrighted by the Regents of the University of California, Sun Microsystems, and other parties.
- *
- * Copyright (C) 1998,1999 The Free Software Foundation
- *
- * Authors: Federico Mena <federico@nuclecu.unam.mx>
- * Raph Levien <raph@acm.org>
- * Lauris Kaplinski <lauris@ximian.com>
- * Miguel de Icaza <miguel@kernel.org>
- * Cody Russell <bratsche@gnome.org>
- * Rusty Conover <rconover@bangtail.net>
- */
-
-/* These includes are set up for standalone compile. If/when this codebase
- is integrated into libgnomeui, the includes will need to change. */
-
-#include <math.h>
-#include <string.h>
-
-#include <gtk/gtk.h>
-#include "gnome-canvas.h"
-#include "gnome-canvas-util.h"
-
-#include "gnome-canvas-bpath.h"
-#include "gnome-canvas-shape.h"
-#include "gnome-canvas-shape-private.h"
-#include "gnome-canvas-path-def.h"
-
-enum {
- PROP_0,
- PROP_BPATH
-};
-
-static void gnome_canvas_bpath_class_init (GnomeCanvasBpathClass *class);
-static void gnome_canvas_bpath_init (GnomeCanvasBpath *bpath);
-static void gnome_canvas_bpath_set_property (GObject *object,
- guint param_id,
- const GValue *value,
- GParamSpec *pspec);
-static void gnome_canvas_bpath_get_property (GObject *object,
- guint param_id,
- GValue *value,
- GParamSpec *pspec);
-
-static void gnome_canvas_bpath_update (GnomeCanvasItem *item, gdouble *affine, ArtSVP *clip_path, gint flags);
-
-static GnomeCanvasShapeClass *parent_class;
-
-GType
-gnome_canvas_bpath_get_type (void)
-{
- static GType bpath_type;
-
- if (!bpath_type) {
- const GTypeInfo object_info = {
- sizeof (GnomeCanvasBpathClass),
- (GBaseInitFunc) NULL,
- (GBaseFinalizeFunc) NULL,
- (GClassInitFunc) gnome_canvas_bpath_class_init,
- (GClassFinalizeFunc) NULL,
- NULL, /* class_data */
- sizeof (GnomeCanvasBpath),
- 0, /* n_preallocs */
- (GInstanceInitFunc) gnome_canvas_bpath_init,
- NULL /* value_table */
- };
-
- bpath_type = g_type_register_static (GNOME_TYPE_CANVAS_SHAPE, "GnomeCanvasBpath",
- &object_info, 0);
- }
-
- return bpath_type;
-}
-
-static void
-gnome_canvas_bpath_class_init (GnomeCanvasBpathClass *class)
-{
- GObjectClass *gobject_class;
- GnomeCanvasItemClass *item_class;
-
- gobject_class = (GObjectClass *) class;
- item_class = (GnomeCanvasItemClass *) class;
-
- parent_class = g_type_class_peek_parent (class);
-
- /* when this gets checked into libgnomeui, change the
- GTK_TYPE_POINTER to GTK_TYPE_GNOME_CANVAS_BPATH, and add an
- entry to gnome-boxed.defs */
-
- gobject_class->set_property = gnome_canvas_bpath_set_property;
- gobject_class->get_property = gnome_canvas_bpath_get_property;
-
- g_object_class_install_property (gobject_class,
- PROP_BPATH,
- g_param_spec_boxed ("bpath", NULL, NULL,
- GNOME_TYPE_CANVAS_PATH_DEF,
- (G_PARAM_READABLE | G_PARAM_WRITABLE)));
-
- item_class->update = gnome_canvas_bpath_update;
-}
-
-static void
-gnome_canvas_bpath_init (GnomeCanvasBpath *bpath)
-{
-
-}
-
-static void
-gnome_canvas_bpath_set_property (GObject *object,
- guint param_id,
- const GValue *value,
- GParamSpec *pspec)
-{
- GnomeCanvasItem *item;
- GnomeCanvasPathDef *gpp;
-
- item = GNOME_CANVAS_ITEM (object);
-
- switch (param_id) {
- case PROP_BPATH:
- gpp = (GnomeCanvasPathDef*) g_value_get_boxed (value);
-
- gnome_canvas_shape_set_path_def (GNOME_CANVAS_SHAPE (object), gpp);
-
- gnome_canvas_item_request_update (item);
- break;
-
- default:
- break;
- }
-}
-
-static void
-gnome_canvas_bpath_get_property (GObject *object,
- guint param_id,
- GValue *value,
- GParamSpec *pspec)
-{
- GnomeCanvasShape *shape;
-
- shape = GNOME_CANVAS_SHAPE (object);
-
- switch (param_id) {
- case PROP_BPATH:
- g_value_set_boxed (value, shape->priv->path);
- break;
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
- break;
- }
-}
-
-static void
-gnome_canvas_bpath_update (GnomeCanvasItem *item, gdouble *affine, ArtSVP *clip_path, gint flags)
-{
- if (GNOME_CANVAS_ITEM_CLASS (parent_class)->update) {
- (* GNOME_CANVAS_ITEM_CLASS (parent_class)->update)(item, affine, clip_path, flags);
- }
-}
diff --git a/libgnomecanvas/gnome-canvas-bpath.h b/libgnomecanvas/gnome-canvas-bpath.h
deleted file mode 100644
index b6488ffe1f..0000000000
--- a/libgnomecanvas/gnome-canvas-bpath.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/* Bpath item type for GnomeCanvas widget
- *
- * GnomeCanvas is basically a port of the Tk toolkit's most excellent canvas widget. Tk is
- * copyrighted by the Regents of the University of California, Sun Microsystems, and other parties.
- *
- * Copyright (C) 1998,1999 The Free Software Foundation
- *
- * Authors: Federico Mena <federico@nuclecu.unam.mx>
- * Raph Levien <raph@acm.org>
- * Lauris Kaplinski <lauris@ximian.com>
- * Rusty Conover <rconover@bangtail.net>
- */
-
-#ifndef GNOME_CANVAS_BPATH_H
-#define GNOME_CANVAS_BPATH_H
-
-#include <libgnomecanvas/gnome-canvas.h>
-#include <libgnomecanvas/gnome-canvas-shape.h>
-#include <libgnomecanvas/gnome-canvas-path-def.h>
-
-G_BEGIN_DECLS
-
-/* Bpath item for the canvas.
- *
- * The following object arguments are available:
- *
- * name type read/write description
- * ------------------------------------------------------------------------------------------
- * bpath GnomeCanvasPathDef * RW Pointer to an GnomeCanvasPathDef structure.
- * This can be created by a call to
- * gp_path_new() in (gp-path.h).
- */
-
-#define GNOME_TYPE_CANVAS_BPATH (gnome_canvas_bpath_get_type ())
-#define GNOME_CANVAS_BPATH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNOME_TYPE_CANVAS_BPATH, GnomeCanvasBpath))
-#define GNOME_CANVAS_BPATH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNOME_TYPE_CANVAS_BPATH, GnomeCanvasBpathClass))
-#define GNOME_IS_CANVAS_BPATH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNOME_TYPE_CANVAS_BPATH))
-#define GNOME_IS_CANVAS_BPATH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_TYPE_CANVAS_BPATH))
-
-typedef struct _GnomeCanvasBpath GnomeCanvasBpath;
-typedef struct _GnomeCanvasBpathPriv GnomeCanvasBpathPriv;
-typedef struct _GnomeCanvasBpathClass GnomeCanvasBpathClass;
-
-struct _GnomeCanvasBpath {
- GnomeCanvasShape item;
-
-};
-
-struct _GnomeCanvasBpathClass {
- GnomeCanvasShapeClass parent_class;
-};
-
-/* Standard Gtk function */
-GType gnome_canvas_bpath_get_type (void) G_GNUC_CONST;
-
-G_END_DECLS
-
-#endif
diff --git a/libgnomecanvas/libgnomecanvas.h b/libgnomecanvas/libgnomecanvas.h
index 93e21fa4bd..e83d9060e6 100644
--- a/libgnomecanvas/libgnomecanvas.h
+++ b/libgnomecanvas/libgnomecanvas.h
@@ -34,7 +34,6 @@
#include <libgnomecanvas/gnome-canvas-pixbuf.h>
#include <libgnomecanvas/gnome-canvas-widget.h>
#include <libgnomecanvas/gnome-canvas-rect-ellipse.h>
-#include <libgnomecanvas/gnome-canvas-bpath.h>
#include <libgnomecanvas/gnome-canvas-util.h>
#include <libgnomecanvas/gnome-canvas-clipgroup.h>