~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to src/sp-polygon.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Kees Cook, Ted Gould
  • Date: 2008-02-10 14:20:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080210142016-vcnb2zqyhszu0xvb
Tags: 0.46~pre1-0ubuntu1
[ Kees Cook ]
* debian/control:
  - add libgtkspell-dev build-dep to gain GtkSpell features (LP: #183547).
  - update Standards version (no changes needed).
  - add Vcs and Homepage fields.
  - switch to new python-lxml dep.
* debian/{control,rules}: switch from dpatch to quilt for more sanity.
* debian/patches/20_fix_glib_and_gxx43_ftbfs.patch:
  - merged against upstream fixes.
  - added additional fixes for newly written code.
* debian/rules: enable parallel building.

[ Ted Gould ]
* Updating POTFILES.in to make it so things build correctly.
* debian/control:
  - add ImageMagick++ and libboost-dev to build-deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include "libnr/n-art-bpath.h"
22
22
#include "svg/stringstream.h"
23
23
#include "xml/repr.h"
 
24
#include "document.h"
24
25
 
25
26
static void sp_polygon_class_init(SPPolygonClass *pc);
26
27
static void sp_polygon_init(SPPolygon *polygon);
68
69
    item_class->description = sp_polygon_description;
69
70
}
70
71
 
71
 
static void sp_polygon_init(SPPolygon *polygon)
 
72
static void sp_polygon_init(SPPolygon */*polygon*/)
72
73
{
73
74
    /* Nothing here */
74
75
}
120
121
    sp_shape_set_shape(shape);
121
122
 
122
123
    if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) {
123
 
        repr = sp_repr_new("svg:polygon");
 
124
        Inkscape::XML::Document *xml_doc = sp_document_repr_doc(SP_OBJECT_DOCUMENT(object));
 
125
        repr = xml_doc->createElement("svg:polygon");
124
126
    }
125
127
 
126
128
    /* We can safely write points here, because all subclasses require it too (Lauris) */
228
230
    }
229
231
}
230
232
 
231
 
static gchar *sp_polygon_description(SPItem *item)
 
233
static gchar *sp_polygon_description(SPItem */*item*/)
232
234
{
233
235
    return g_strdup(_("<b>Polygon</b>"));
234
236
}