summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 195bd1f)
raw | patch | inline | side by side (parent: 195bd1f)
author | Jon A. Cruz <jon@joncruz.org> | |
Wed, 15 Dec 2010 06:52:32 +0000 (22:52 -0800) | ||
committer | Jon A. Cruz <jon@joncruz.org> | |
Wed, 15 Dec 2010 06:52:32 +0000 (22:52 -0800) |
diff --git a/src/extension/internal/emf-win32-inout.cpp b/src/extension/internal/emf-win32-inout.cpp
index 7d379477b37169fbc0278cdd3cb3562ac4e86e72..293e9b7d8ef9c68ae18682826697c8890b9f8879 100644 (file)
mod->base = SP_ITEM(doc->getRoot());
mod->arena = NRArena::create();
mod->dkey = sp_item_display_key_new(1);
- mod->root = sp_item_invoke_show(mod->base, mod->arena, mod->dkey, SP_ITEM_SHOW_DISPLAY);
+ mod->root = mod->base->invoke_show(mod->arena, mod->dkey, SP_ITEM_SHOW_DISPLAY);
/* Print document */
ret = mod->begin(doc);
if (ret) {
g_free(oldoutput);
throw Inkscape::Extension::Output::save_failed();
}
- sp_item_invoke_print(mod->base, &context);
+ mod->base->invoke_print(&context);
ret = mod->finish();
/* Release arena */
- sp_item_invoke_hide(mod->base, mod->dkey);
+ mod->base->invoke_hide(mod->dkey);
mod->base = NULL;
mod->root = NULL;
nr_object_unref((NRObject *) mod->arena);
diff --git a/src/extension/internal/emf-win32-print.cpp b/src/extension/internal/emf-win32-print.cpp
index 58249620b6dc7918e43a300a652791117a456ac0..6be48e44ccb73692cf6ee5a40a61f7c756001ae0 100644 (file)
d.y1 = _height;
} else {
SPItem* doc_item = SP_ITEM(doc->getRoot());
- sp_item_invoke_bbox(doc_item, &d, doc_item->i2d_affine(), TRUE);
+ doc_item->invoke_bbox(&d, doc_item->i2d_affine(), TRUE);
}
d.x0 *= IN_PER_PX;
diff --git a/src/jabber_whiteboard/dialog/choose-desktop.cpp b/src/jabber_whiteboard/dialog/choose-desktop.cpp
index d46fd0161ebbe8bdc12163ea64b2a03cbb9807f7..bdcabd17f31ea0b6bbbf43679f3a5ab0c94eefed 100644 (file)
}
void ChooseDesktop::doubleClickCallback(
- const Gtk::TreeModel::Path &path,
- Gtk::TreeViewColumn *col)
+ const Gtk::TreeModel::Path & /*path*/,
+ Gtk::TreeViewColumn * /*col*/)
{
response(Gtk::RESPONSE_OK);
hide();
SPDesktop *desktop = (SPDesktop *)*p;
Gtk::TreeModel::Row row = *(desktopListStore->append());
- row[desktopColumns.nameColumn] = (desktop->doc())->name;
+ row[desktopColumns.nameColumn] = desktop->doc()->getName();
row[desktopColumns.desktopColumn] = (SPDesktop *)*p;
p++;
}
index 65bb49f1376bca4febbe1a342b7fd64278aae886..ca3a995616d6cdba73480d79e0f16899569fc76b 100644 (file)
// write object bbox to area
Geom::OptRect maybeArea(area);
- svgDoc->ensureUpToDate ();
- static_cast<(SPItem *)>(svgDoc->root)->invoke_bbox( maybeArea,
- static_cast<(SPItem *)>(svgDoc->root)->i2d_affine(), TRUE);
+ svgDoc->ensureUpToDate();
+ static_cast<SPItem *>(svgDoc->root)->invoke_bbox( maybeArea,
+ static_cast<SPItem *>(svgDoc->root)->i2d_affine(), TRUE);
NRArena *const arena = NRArena::create();
- unsigned const key = sp_item_display_key_new(1);
+ unsigned const key = SPItem::display_key_new(1);
- NRArenaItem *root = sp_item_invoke_show((SPItem*)(svgDoc->root),
+ NRArenaItem *root = static_cast<SPItem*>(svgDoc->root)->invoke_show(
arena, key, SP_ITEM_SHOW_DISPLAY);
NRGC gc(NULL);
// Tidy up
svgDoc->doUnref();
- sp_item_invoke_hide((SPItem*)(svgDoc->root), key);
+ static_cast<SPItem*>(svgDoc->root)->invoke_hide(key);
nr_object_unref((NRObject *) arena);
// Create the GDK pixbuf