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

« back to all changes in this revision

Viewing changes to src/sp-use-reference.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:
7
7
 * Released under GNU GPL, read the file 'COPYING' for more information.
8
8
 */
9
9
 
 
10
#include <cstring>
 
11
#include <string>
 
12
#include <string.h>
 
13
 
10
14
#include "enums.h"
11
15
#include "sp-use-reference.h"
12
16
 
49
53
    sourceHref = NULL;
50
54
    sourceRepr = NULL;
51
55
    sourceObject = NULL;
52
 
    new (&_modified_connection) sigc::connection();
53
 
    new (&_delete_connection) sigc::connection();
54
 
    new (&_changed_connection) sigc::connection();
55
 
    new (&_transformed_connection) sigc::connection();
56
56
    _changed_connection = changedSignal().connect(sigc::bind(sigc::ptr_fun(sp_usepath_href_changed), this)); // listening to myself, this should be virtual instead
57
57
 
58
58
    user_unlink = NULL;
67
67
 
68
68
    quit_listening();
69
69
    unlink();
70
 
 
71
 
    _modified_connection.~connection();
72
 
    _delete_connection.~connection();
73
 
    _changed_connection.~connection();
74
 
    _transformed_connection.~connection();
75
70
}
76
71
 
77
72
void
152
147
    }
153
148
    SPItem *item = SP_ITEM(self->owner);
154
149
 
 
150
// TODO kill naughty naughty #if 0
155
151
#if 0
156
152
    NR::Matrix m(*mp);
157
153
    if (!(m.is_translation())) {
175
171
    // Commit the compensation.
176
172
    item->transform *= clone_move;
177
173
    sp_item_write_transform(item, SP_OBJECT_REPR(item), item->transform, &advertized_move);
 
174
#else
 
175
    (void)mp;
 
176
    (void)original;
178
177
#endif
179
178
 
180
179
    self->sourceDirty = true;
198
197
}
199
198
 
200
199
static void
201
 
sp_usepath_source_modified(SPObject *iSource, guint flags, SPUsePath *offset)
 
200
sp_usepath_source_modified(SPObject */*iSource*/, guint /*flags*/, SPUsePath *offset)
202
201
{
203
202
    offset->sourceDirty = true;
204
203
    offset->owner->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);