summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 86b296f)
raw | patch | inline | side by side (parent: 86b296f)
author | joncruz <joncruz@users.sourceforge.net> | |
Sun, 4 May 2008 05:14:00 +0000 (05:14 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sun, 4 May 2008 05:14:00 +0000 (05:14 +0000) |
18 files changed:
index b94f5ea054bec2f32ec2cc348fc2bf49b0e178d0..3af818824191bcf02f78b8b853db690af1ab4115 100644 (file)
namespace Inkscape {
namespace NSApplication {
-AppPrototype::AppPrototype()
+AppPrototype::AppPrototype()
{
}
-AppPrototype::AppPrototype(int argc, const char **argv)
+AppPrototype::AppPrototype(int /*argc*/, const char **/*argv*/)
{
}
index b0bc44bd7e4355bd7de2c34f159b35c01d643819..1ce08bfdf40fe13720961c85420b8a736bc08a25 100644 (file)
// impossible original values to make sure they are read from prefs
static gint x = -1000, y = -1000, w = 0, h = 0;
-static gchar *prefs_path = "dialogs.clonetiler";
+static gchar const *prefs_path = "dialogs.clonetiler";
#define SB_MARGIN 1
#define VB_MARGIN 4
diff --git a/src/dialogs/find.cpp b/src/dialogs/find.cpp
index 93077bec15cad82081bb58fc995a20aa05356e01..6f9eca0d73c8acdb26fc9d88f9072fd7c5f7cb71 100644 (file)
--- a/src/dialogs/find.cpp
+++ b/src/dialogs/find.cpp
// impossible original values to make sure they are read from prefs
static gint x = -1000, y = -1000, w = 0, h = 0;
-static gchar *prefs_path = "dialogs.find";
+static gchar const *prefs_path = "dialogs.find";
index 390452a8a6a06a06cd1543290ccad85276976d9e..2f93179e109095abcf979e66b548542062e9e961 100644 (file)
// impossible original values to make sure they are read from prefs
static gint x = -1000, y = -1000, w = 0, h = 0;
-static gchar *prefs_path = "dialogs.object";
+static gchar const *prefs_path = "dialogs.object";
static void sp_item_widget_modify_selection (SPWidget *spw, Inkscape::Selection *selection, guint flags, GtkWidget *itemw);
static void sp_item_widget_change_selection (SPWidget *spw, Inkscape::Selection *selection, GtkWidget *itemw);
diff --git a/src/dom/cssreader.cpp b/src/dom/cssreader.cpp
index 4bbcefb984dd9dc44981a0b617b0773e087f83c0..4e329d91456c4f0dccd6964cb29f84ea00e424be 100644 (file)
--- a/src/dom/cssreader.cpp
+++ b/src/dom/cssreader.cpp
* | {empty}
* ;
*/
-int CssReader::getDeclaration(int p0, CSSStyleDeclaration &declarationList)
+int CssReader::getDeclaration(int p0, CSSStyleDeclaration &/*declarationList*/)
{
int p = p0;
"inkscape.css",
"meyerweb.css",
NULL
- };
+ };
bool doTests()
{
printf("Test failed\n");
return false;
}
- }
- return true;
+ }
+ return true;
}
int main(int argc, char **argv)
diff --git a/src/dom/domimpl.cpp b/src/dom/domimpl.cpp
index 663a8febc55935d2fc32e0f41a9c78af2d0177a1..e932cfd8089d7893f33a23266542c188e0906280 100644 (file)
--- a/src/dom/domimpl.cpp
+++ b/src/dom/domimpl.cpp
*
*/
DOMImplementation *DOMImplementationSourceImpl::getDOMImplementation(
- const DOMString &features)
+ const DOMString &/*features*/)
{
return domImpl;
}
*
*/
DOMImplementationList DOMImplementationSourceImpl::getDOMImplementationList(
- const DOMString &features)
+ const DOMString &/*features*/)
{
return domImplList;
}
/**
*
*/
-bool DOMImplementationImpl::hasFeature(const DOMString& feature,
- const DOMString& version)
+bool DOMImplementationImpl::hasFeature(const DOMString& /*feature*/,
+ const DOMString& /*version*/)
{
return false;
}
/**
*
*/
-DOMObject *DOMImplementationImpl::getFeature(const DOMString& feature,
- const DOMString& version)
+DOMObject *DOMImplementationImpl::getFeature(const DOMString& /*feature*/,
+ const DOMString& /*version*/)
{
return NULL;
/**
*
*/
-bool NodeImpl::isSupported(const DOMString& feature,
- const DOMString& version)
+bool NodeImpl::isSupported(const DOMString& /*feature*/,
+ const DOMString& /*version*/)
{
//again, no idea
return false;
/**
*
*/
-DOMObject *NodeImpl::getFeature(const DOMString &feature,
- const DOMString &version)
+DOMObject *NodeImpl::getFeature(const DOMString &/*feature*/,
+ const DOMString &/*version*/)
{
//dont know
return NULL;
/**
*
*/
-NodeImpl::NodeImpl(DocumentImplPtr owner, const DOMString &theNamespaceURI,
- const DOMString &qualifiedName) : Node()
+NodeImpl::NodeImpl(DocumentImplPtr owner, const DOMString &/*theNamespaceURI*/,
+ const DOMString &qualifiedName) : Node()
{
init();
ownerDocument = owner;
diff --git a/src/dom/domstring.cpp b/src/dom/domstring.cpp
index 34629edb6153e69a4629d5720e17b0cae65ce9c2..eb00afa8ec72d2cb6db74030293ef781b4555811 100644 (file)
--- a/src/dom/domstring.cpp
+++ b/src/dom/domstring.cpp
}
-void DOMString::erase(unsigned long pos, unsigned long count)
+void DOMString::erase(unsigned long /*pos*/, unsigned long count)
{
std::vector<XMLCh>::iterator iter = chars.begin();
chars.erase(iter, iter + count);
index 2cab2b3f4d2c305db3ddc65dddba263a1b38a89a..509c67d6d80f7fe7ae94b60a7cfbb294a31c8ec5 100644 (file)
//# B A S E 6 4 O U T P U T S T R E A M
//#########################################################################
-static char *base64encode =
+static char const *base64encode =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
/**
index 6f8dc634d5596e70a589e2b289d978aa947372f7..bc3810de037bed97e33c083ff3f422f641c6d797 100644 (file)
--- a/src/dom/io/domstream.cpp
+++ b/src/dom/io/domstream.cpp
//# F O R M A T T E D P R I N T I N G
//#########################################################################
-static char *digits = "0123456789abcdefghijklmnopqrstuvwxyz";
+static char const *digits = "0123456789abcdefghijklmnopqrstuvwxyz";
static int dprintInt(Writer &outs,
long arg, int base,
- int flag, int width, int precision)
+ int flag, int width, int /*precision*/)
{
DOMString buf;
* XML entities.
*/
static int dprintString(Writer &outs, const DOMString &str,
- int flags, int width, int precision)
+ int flags, int /*width*/, int /*precision*/)
{
int len = str.size();
if (flags == '#')
index e9f8fe2a2924f62e6048fce78c62f1b0da756df9..c90f3760be0298f0688fcbca47dd9112f29c15da 100644 (file)
--- a/src/io/base64stream.cpp
+++ b/src/io/base64stream.cpp
//# B A S E 6 4 O U T P U T S T R E A M
//#########################################################################
-static char *base64encode =
+static char const *base64encode =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
/**
index 12f57bd81f81deeecb40ee1a4c3643095b13f712..7ecdd75c3e6f5f0953b2b75ee7fd2d25d80f859b 100644 (file)
--- a/src/libnr/nr-object.cpp
+++ b/src/libnr/nr-object.cpp
c->cpp_ctor = NRObject::invoke_ctor<NRObject>;
}
-static void nr_object_init (NRObject *object)
+static void nr_object_init (NRObject */*object*/)
{
}
-static void nr_object_finalize (NRObject *object)
+static void nr_object_finalize (NRObject */*object*/)
{
}
object_class->cpp_ctor = NRObject::invoke_ctor<NRActiveObject>;
}
-static void nr_active_object_init(NRActiveObject *object)
+static void nr_active_object_init(NRActiveObject */*object*/)
{
}
index 5e025c7eb20102314c6f3494fc12062868e3620f..eb8b404b4a3717b4ad9ea5373744fd3f63100e1a 100644 (file)
#include <libnr/nr-pixblock-pixel.h>
void
-nr_pixblock_draw_line_rgba32 (NRPixBlock *d, long x0, long y0, long x1, long y1, short first, unsigned long rgba)
+nr_pixblock_draw_line_rgba32 (NRPixBlock *d, long x0, long y0, long x1, long y1, short /*first*/, unsigned long rgba)
{
long deltax, deltay, xinc1, xinc2, yinc1, yinc2;
long den, num, numadd, numpixels;
diff --git a/src/sp-item-group.cpp b/src/sp-item-group.cpp
index 6ec5256eecba218495c671843454d2622ef122b1..acdf8aa36628914359d6e401d532b3ec0592fd3d 100644 (file)
--- a/src/sp-item-group.cpp
+++ b/src/sp-item-group.cpp
item_class->show = sp_group_show;
item_class->hide = sp_group_hide;
item_class->snappoints = sp_group_snappoints;
-
+
lpe_item_class->update_patheffect = sp_group_update_patheffect;
}
SPItem *item = (SPItem *) doc->getObjectByRepr(repr);
sp_item_write_transform(item, repr, item->transform, NULL, false);
-
+
Inkscape::GC::release(repr);
if (children && SP_IS_ITEM (item))
*children = g_slist_prepend (*children, item);
items = g_slist_remove (items, items->data);
}
- if (do_done)
+ if (do_done)
sp_document_done (doc, SP_VERB_NONE, _("Ungroup"));
}
_group->requestModified(SP_OBJECT_MODIFIED_FLAG);
}
-void CGroup::onUpdate(SPCtx *ctx, unsigned int flags) {
+void CGroup::onUpdate(SPCtx *ctx, unsigned int flags) {
SPItemCtx *ictx, cctx;
ictx = (SPItemCtx *) ctx;
}
void CGroup::calculateBBox(NRRect *bbox, NR::Matrix const &transform, unsigned const flags) {
-
+
NR::Maybe<NR::Rect> dummy_bbox = NR::Nothing();
-
+
GSList *l = _group->childList(false, SPObject::ActionBBox);
while (l) {
SPObject *o = SP_OBJECT (l->data);
@@ -697,10 +697,10 @@ void CGroup::calculateBBox(NRRect *bbox, NR::Matrix const &transform, unsigned c
SPItem *child = SP_ITEM(o);
NR::Matrix const ct(child->transform * transform);
sp_item_invoke_bbox_full(child, &dummy_bbox, ct, flags, FALSE);
- }
+ }
l = g_slist_remove (l, o);
}
-
+
*bbox = NRRect(dummy_bbox);
}
SPObject *o = SP_OBJECT (l->data);
if (SP_IS_ITEM(o)) {
sp_item_invoke_print (SP_ITEM (o), ctx);
- }
+ }
l = g_slist_remove (l, o);
}
}
len++;
}
}
-
+
return len;
}
}
static void
-sp_group_update_patheffect (SPLPEItem *lpeitem, bool write)
+sp_group_update_patheffect (SPLPEItem *lpeitem, bool /*write*/)
{
#ifdef GROUP_VERBOSE
g_message("sp_group_update_patheffect: %p\n", lpeitem);
diff --git a/src/sp-tref.cpp b/src/sp-tref.cpp
index 1f1cb4351022319c5ee56ad360063fe801303c35..0c6da351812f0c30659c40e37264d7cf3c4c56bd 100644 (file)
--- a/src/sp-tref.cpp
+++ b/src/sp-tref.cpp
* SVG <tref> implementation - All character data within the referenced
* element, including character data enclosed within additional markup,
* will be rendered.
- *
+ *
* This file was created based on skeleton.cpp
*/
/*
sp_object_class->set = sp_tref_set;
sp_object_class->update = sp_tref_update;
sp_object_class->modified = sp_tref_modified;
-
+
gobject_class->finalize = sp_tref_finalize;
-
+
SPItemClass *item_class = (SPItemClass *) tref_class;
-
+
item_class->bbox = sp_tref_bbox;
item_class->description = sp_tref_description;
}
sp_tref_init(SPTRef *tref)
{
new (&tref->attributes) TextTagAttributes;
-
+
tref->href = NULL;
tref->uriOriginalRef = new SPTRefReference(SP_OBJECT(tref));
new (&tref->_delete_connection) sigc::connection();
new (&tref->_changed_connection) sigc::connection();
-
- tref->_changed_connection =
+
+ tref->_changed_connection =
tref->uriOriginalRef->changedSignal().connect(sigc::bind(sigc::ptr_fun(sp_tref_href_changed), tref));
}
sp_tref_release(SPObject *object)
{
SPTRef *tref = SP_TREF(object);
-
+
tref->attributes.~TextTagAttributes();
tref->_delete_connection.disconnect();
{
debug("0x%p %s(%u): '%s'",object,
sp_attribute_name(key),key,value ? value : "<no value>");
-
+
SPTRef *tref = SP_TREF(object);
-
+
if (tref->attributes.readSingleAttribute(key, value)) { // x, y, dx, dy, rotate
object->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
} else if (key == SP_ATTR_XLINK_HREF) { // xlink:href
tref->href = NULL;
tref->uriOriginalRef->detach();
} else if ((tref->href && strcmp(value, tref->href) != 0) || (!tref->href)) {
-
+
// Value has changed
-
+
if ( tref->href ) {
g_free(tref->href);
tref->href = NULL;
}
-
+
tref->href = g_strdup(value);
-
+
try {
tref->uriOriginalRef->attach(Inkscape::URI(value));
tref->uriOriginalRef->updateObserver();
g_warning("%s", e.what());
tref->uriOriginalRef->detach();
}
-
+
// No matter what happened, an update should be in order
SP_OBJECT(tref)->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
}
-
+
} else { // default
if (((SPObjectClass *) tref_parent_class)->set) {
((SPObjectClass *) tref_parent_class)->set(object, key, value);
sp_tref_update(SPObject *object, SPCtx *ctx, guint flags)
{
debug("0x%p",object);
-
+
SPTRef *tref = SP_TREF(object);
if (((SPObjectClass *) tref_parent_class)->update) {
if (flags & SP_OBJECT_MODIFIED_FLAG) {
flags |= SP_OBJECT_PARENT_MODIFIED_FLAG;
}
-
- flags &= SP_OBJECT_MODIFIED_CASCADE;
+
+ flags &= SP_OBJECT_MODIFIED_CASCADE;
SPObject *child = tref->stringChild;
if (child) {
}
}
-
+
}
static void
if (flags & SP_OBJECT_MODIFIED_FLAG) {
flags |= SP_OBJECT_PARENT_MODIFIED_FLAG;
}
-
+
flags &= SP_OBJECT_MODIFIED_CASCADE;
SPObject *child = tref_obj->stringChild;
sp_tref_write(SPObject *object, Inkscape::XML::Node *repr, guint flags)
{
debug("0x%p",object);
-
+
SPTRef *tref = SP_TREF(object);
-
+
if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) {
Inkscape::XML::Document *xml_doc = sp_document_repr_doc(SP_OBJECT_DOCUMENT(object));
repr = xml_doc->createElement("svg:tref");
}
-
+
tref->attributes.writeTo(repr);
-
+
if (tref->uriOriginalRef->getURI()) {
gchar *uri_string = tref->uriOriginalRef->getURI()->toString();
debug("uri_string=%s", uri_string);
sp_tref_description(SPItem *item)
{
SPTRef *tref = SP_TREF(item);
-
+
SPObject *referred = tref->getObjectReferredTo();
-
+
if (tref && tref->getObjectReferredTo()) {
char *child_desc;
-
+
if (SP_IS_ITEM(referred)) {
child_desc = sp_item_description(SP_ITEM(referred));
} else {
- child_desc = "";
+ child_desc = g_strdup("");
}
char *ret = g_strdup_printf(
{
// Save a pointer to the original object being referred to
SPObject *refRoot = tref->getObjectReferredTo();
-
+
tref->_delete_connection.disconnect();
-
+
if (tref->stringChild) {
sp_object_detach(SP_OBJECT(tref), tref->stringChild);
tref->stringChild = NULL;
}
-
+
// Ensure that we are referring to a legitimate object
if (tref->href && refRoot && sp_tref_reference_allowed(tref, refRoot)) {
-
+
// Update the text being referred to (will create a new string child)
- sp_tref_update_text(tref);
-
+ sp_tref_update_text(tref);
+
// Restore the delete connection now that we're done messing with stuff
- tref->_delete_connection = SP_OBJECT(refRoot)->connectDelete(sigc::bind(sigc::ptr_fun(&sp_tref_delete_self), tref));
+ tref->_delete_connection = SP_OBJECT(refRoot)->connectDelete(sigc::bind(sigc::ptr_fun(&sp_tref_delete_self), tref));
}
-
- }
+
+ }
}
SPObject * SPTRef::getObjectReferredTo(void)
{
SPObject *referredObject = NULL;
-
+
if (uriOriginalRef) {
referredObject = SP_OBJECT(uriOriginalRef->getObject());
}
-
- return referredObject;
+
+ return referredObject;
}
sp_tref_reference_allowed(SPTRef *tref, SPObject *possible_ref)
{
bool allowed = false;
-
+
if (tref && possible_ref) {
if (tref != possible_ref) {
bool ancestor = false;
if (possible_ref == obj) {
ancestor = true;
break;
- }
+ }
}
allowed = !ancestor;
}
}
-
+
return allowed;
}
* iterators and layout (or if there is no tref).
*/
bool
-sp_tref_fully_contained(SPObject *start_item, Glib::ustring::iterator &start,
+sp_tref_fully_contained(SPObject *start_item, Glib::ustring::iterator &start,
SPObject *end_item, Glib::ustring::iterator &end)
{
bool fully_contained = false;
-
+
if (start_item && end_item) {
-
+
// If neither the beginning or the end is a tref then we return true (whether there
// is a tref in the innards or not, because if there is one then it must be totally
// contained)
&& !(SP_IS_STRING(end_item) && SP_IS_TREF(SP_OBJECT_PARENT(end_item)))) {
fully_contained = true;
}
-
+
// Both the beginning and end are trefs; but in this case, the string iterators
// must be at the right places
else if ((SP_IS_STRING(start_item) && SP_IS_TREF(SP_OBJECT_PARENT(start_item)))
fully_contained = true;
}
}
-
+
// If the beginning is a string that is a child of a tref, the iterator has to be
// at the beginning of the item
else if ((SP_IS_STRING(start_item) && SP_IS_TREF(SP_OBJECT_PARENT(start_item)))
fully_contained = true;
}
}
-
+
// Same, but the for the end
else if (!(SP_IS_STRING(start_item) && SP_IS_TREF(SP_OBJECT_PARENT(start_item)))
&& (SP_IS_STRING(end_item) && SP_IS_TREF(SP_OBJECT_PARENT(end_item)))) {
}
}
}
-
+
return fully_contained;
}
// Get the character data that will be used with this tref
Glib::ustring charData = "";
build_string_from_root(SP_OBJECT_REPR(tref->getObjectReferredTo()), &charData);
-
+
if (tref->stringChild) {
sp_object_detach(SP_OBJECT(tref), tref->stringChild);
tref->stringChild = NULL;
}
-
+
// Create the node and SPString to be the tref's child
Inkscape::XML::Document *xml_doc = sp_document_repr_doc(SP_OBJECT_DOCUMENT(tref));
-
+
Inkscape::XML::Node *newStringRepr = xml_doc->createTextNode(charData.c_str());
tref->stringChild = SP_OBJECT(g_object_new(sp_repr_type_lookup(newStringRepr), NULL));
-
+
// Add this SPString as a child of the tref
sp_object_attach(SP_OBJECT(tref), tref->stringChild, tref->lastChild());
sp_object_unref(tref->stringChild, NULL);
sp_object_invoke_build(tref->stringChild, SP_OBJECT(tref)->document, newStringRepr, TRUE);
-
+
Inkscape::GC::release(newStringRepr);
}
}
build_string_from_root(Inkscape::XML::Node *root, Glib::ustring *retString)
{
if (root && retString) {
-
+
// Stop and concatenate when a SPString is found
if (root->type() == Inkscape::XML::TEXT_NODE) {
*retString += (root->content());
-
+
debug("%s", retString->c_str());
-
+
// Otherwise, continue searching down the tree (with the assumption that no children nodes
// of a SPString are actually legal)
} else {
build_string_from_root(childNode, retString);
}
}
- }
+ }
}
/**
sp_tref_convert_to_tspan(SPObject *obj)
{
SPObject * new_tspan = NULL;
-
+
////////////////////
// BASE CASE
////////////////////
if (SP_IS_TREF(obj)) {
-
+
SPTRef *tref = SP_TREF(obj);
-
+
if (tref && tref->stringChild) {
Inkscape::XML::Node *tref_repr = SP_OBJECT_REPR(tref);
Inkscape::XML::Node *tref_parent = sp_repr_parent(tref_repr);
-
+
SPDocument *document = SP_OBJECT(tref)->document;
Inkscape::XML::Document *xml_doc = sp_document_repr_doc(document);
-
+
Inkscape::XML::Node *new_tspan_repr = xml_doc->createElement("svg:tspan");
-
+
// Add the new tspan element just after the current tref
tref_parent->addChild(new_tspan_repr, tref_repr);
Inkscape::GC::release(new_tspan_repr);
-
+
new_tspan = document->getObjectByRepr(new_tspan_repr);
-
+
// Create a new string child for the tspan
Inkscape::XML::Node *new_string_repr = SP_OBJECT_REPR(tref->stringChild)->duplicate(xml_doc);
- new_tspan_repr->addChild(new_string_repr, NULL);
-
+ new_tspan_repr->addChild(new_string_repr, NULL);
+
//SPObject * new_string_child = document->getObjectByRepr(new_string_repr);
-
+
// Merge style from the tref
SPStyle *new_tspan_sty = SP_OBJECT_STYLE(new_tspan);
SPStyle const *tref_sty = SP_OBJECT_STYLE(tref);
sp_style_merge_from_dying_parent(new_tspan_sty, tref_sty);
sp_style_merge_from_parent(new_tspan_sty, new_tspan->parent->style);
-
-
+
+
SP_OBJECT(new_tspan)->updateRepr();
-
+
// Hold onto our SPObject and repr for now.
sp_object_ref(SP_OBJECT(tref), NULL);
Inkscape::GC::anchor(tref_repr);
-
+
// Remove ourselves, not propagating delete events to avoid a
// chain-reaction with other elements that might reference us.
SP_OBJECT(tref)->deleteObject(false);
-
+
// Give the copy our old id and let go of our old repr.
new_tspan_repr->setAttribute("id", tref_repr->attribute("id"));
Inkscape::GC::release(tref_repr);
-
+
// Establish the succession and let go of our object.
SP_OBJECT(tref)->setSuccessor(new_tspan);
sp_object_unref(SP_OBJECT(tref), NULL);
while (l) {
SPObject *child = SP_OBJECT (l->data);
l = g_slist_remove (l, child);
-
+
// Note that there may be more than one conversion happening here, so if it's not a
// tref being passed into this function, the returned value can't be specifically known
new_tspan = sp_tref_convert_to_tspan(child);
-
+
sp_object_unref (SP_OBJECT (child), obj);
}
}
-
+
return new_tspan;
}
diff --git a/src/sp-use.cpp b/src/sp-use.cpp
index bc64c5ebc87db9fc097264f86418f3f12c2e78fb..ec37ef3913d6519a454cec3011a8bd143b769485 100644 (file)
--- a/src/sp-use.cpp
+++ b/src/sp-use.cpp
if (flags & SP_OBJECT_STYLE_MODIFIED_FLAG) {
for (SPItemView *v = SP_ITEM(object)->display; v != NULL; v = v->next) {
- nr_arena_group_set_style(NR_ARENA_GROUP(v->arenaitem), SP_OBJECT_STYLE(object));
+ nr_arena_group_set_style(NR_ARENA_GROUP(v->arenaitem), SP_OBJECT_STYLE(object));
}
}
if (flags & SP_OBJECT_STYLE_MODIFIED_FLAG) {
for (SPItemView *v = SP_ITEM(object)->display; v != NULL; v = v->next) {
- nr_arena_group_set_style(NR_ARENA_GROUP(v->arenaitem), SP_OBJECT_STYLE(object));
+ nr_arena_group_set_style(NR_ARENA_GROUP(v->arenaitem), SP_OBJECT_STYLE(object));
}
}
index b76b14e25848b3827f0fb93aac2c84f0798efdf5..25f1237977508568ed7a9d355067334ac627960f 100644 (file)
--- a/src/ui/dialog/input.cpp
+++ b/src/ui/dialog/input.cpp
/* XPM */
-static char * core_xpm[] = {
+static char const * core_xpm[] = {
"16 16 4 1",
" c None",
". c #808080",
" "};
/* XPM */
-static char *eraser[] = {
+static char const *eraser[] = {
/* columns rows colors chars-per-pixel */
"16 16 5 1",
" c black",
};
/* XPM */
-static char *mouse[] = {
+static char const *mouse[] = {
/* columns rows colors chars-per-pixel */
"16 16 3 1",
" c black",
};
/* XPM */
-static char *pen[] = {
+static char const *pen[] = {
/* columns rows colors chars-per-pixel */
"16 16 3 1",
" c black",
};
/* XPM */
-static char *sidebuttons[] = {
+static char const *sidebuttons[] = {
/* columns rows colors chars-per-pixel */
"16 16 4 1",
" c black",
};
/* XPM */
-static char *tablet[] = {
+static char const *tablet[] = {
/* columns rows colors chars-per-pixel */
"16 16 3 1",
" c black",
};
/* XPM */
-static char *tip[] = {
+static char const *tip[] = {
/* columns rows colors chars-per-pixel */
"16 16 5 1",
" c black",
};
/* XPM */
-static char *button_none[] = {
+static char const *button_none[] = {
/* columns rows colors chars-per-pixel */
"8 8 3 1",
" c black",
"XXXXXXXX"
};
/* XPM */
-static char *button_off[] = {
+static char const *button_off[] = {
/* columns rows colors chars-per-pixel */
"8 8 4 1",
" c black",
"oooooooo"
};
/* XPM */
-static char *button_on[] = {
+static char const *button_on[] = {
/* columns rows colors chars-per-pixel */
"8 8 3 1",
" c black",
};
/* XPM */
-static char * axis_none_xpm[] = {
+static char const * axis_none_xpm[] = {
"24 8 3 1",
" c None",
". c #000000",
" .++++++++++++++++++. ",
" "};
/* XPM */
-static char * axis_off_xpm[] = {
+static char const * axis_off_xpm[] = {
"24 8 4 1",
" c None",
". c #808080",
" .++++++++++++++++++. ",
" "};
/* XPM */
-static char * axis_on_xpm[] = {
+static char const * axis_on_xpm[] = {
"24 8 3 1",
" c None",
". c #000000",
index b2d1a2531515f608518709dc9e980a0a744caa76..5057e724aad59b6bd172bed4b4007dc7ce4e5acf 100644 (file)
static GtkCTreeClass * parent_class = NULL;
GtkWidget *
-sp_xmlview_tree_new (Inkscape::XML::Node * repr, void * factory, void * data)
+sp_xmlview_tree_new (Inkscape::XML::Node * repr, void * /*factory*/, void * /*data*/)
{
SPXMLViewTree * tree;
index 14ac51422fff7f7aa9e8e3de9fad0be2853fa7f4..4b60ce812d20ff031bcf8f8b4095fb8f99942d03 100644 (file)
gboolean
-spinbutton_focus_in (GtkWidget *w, GdkEventKey *event, gpointer data)
+spinbutton_focus_in (GtkWidget *w, GdkEventKey */*event*/, gpointer /*data*/)
{
gdouble *ini;