summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a45fd54)
raw | patch | inline | side by side (parent: a45fd54)
author | joncruz <joncruz@users.sourceforge.net> | |
Fri, 2 Nov 2007 08:00:40 +0000 (08:00 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Fri, 2 Nov 2007 08:00:40 +0000 (08:00 +0000) |
27 files changed:
index 56984dcbb99095d85b1c65e4ecf0221bffe198ba..8f9638f82f40555caad580524ee5d711893be7a1 100644 (file)
return _instance;
}
-Editor::Editor (gint argc, char **argv)
+Editor::Editor (gint /*argc*/, char **argv)
: _documents (0),
_desktops (0),
_argv0 (argv[0]),
diff --git a/src/box3d-context.cpp b/src/box3d-context.cpp
index db1eef3110dd1a9069fce0fb5407ca8329a6a3b5..7ceed0acab2eb8a35fe9731a699469e7622aa833 100644 (file)
--- a/src/box3d-context.cpp
+++ b/src/box3d-context.cpp
bc->_message_context = new Inkscape::MessageContext((ec->desktop)->messageStack());
}
-static void sp_3dbox_context_set(SPEventContext *ec, gchar const *key, gchar const *val)
+static void sp_3dbox_context_set(SPEventContext */*ec*/, gchar const */*key*/, gchar const */*val*/)
{
//SP3DBoxContext *bc = SP_3DBOX_CONTEXT(ec);
diff --git a/src/conditions.cpp b/src/conditions.cpp
index 936346f25e49f1f710db9945884ccf00d9d47c29..9a46f27d13f536caed9b4aa3c0c4734cd4e50080 100644 (file)
--- a/src/conditions.cpp
+++ b/src/conditions.cpp
return false;
}
-static bool evaluateRequiredFeatures(SPItem const *item, gchar const *value) {
+static bool evaluateRequiredFeatures(SPItem const */*item*/, gchar const *value) {
if ( NULL == value )
return true;
return true;
}
-static bool evaluateRequiredExtensions(SPItem const *item, gchar const *value) {
+static bool evaluateRequiredExtensions(SPItem const */*item*/, gchar const *value) {
if ( NULL == value )
return true;
return false;
diff --git a/src/conn-avoid-ref.cpp b/src/conn-avoid-ref.cpp
index 67538fb7728e0618384aa0f39732966f336cc007..0bbefa3c015d194af8f777d7ad72c255e037f0c1 100644 (file)
--- a/src/conn-avoid-ref.cpp
+++ b/src/conn-avoid-ref.cpp
}
-void avoid_item_move(NR::Matrix const *mp, SPItem *moved_item)
+void avoid_item_move(NR::Matrix const */*mp*/, SPItem *moved_item)
{
Avoid::ShapeRef *shapeRef = moved_item->avoidRef->shapeRef;
g_assert(shapeRef);
index a072afeda2b0f64a4b45815fa9590ed430ceea64..3e04883b7853a9a335007261d9afc69e05d42626 100644 (file)
static void
-spcc_connector_finish_segment(SPConnectorContext *const cc, NR::Point const p)
+spcc_connector_finish_segment(SPConnectorContext *const cc, NR::Point const /*p*/)
{
if (!sp_curve_empty(cc->red_curve)) {
sp_curve_append_continuous(cc->green_curve, cc->red_curve, 0.0625);
static gboolean
-endpt_handler(SPKnot *knot, GdkEvent *event, SPConnectorContext *cc)
+endpt_handler(SPKnot */*knot*/, GdkEvent *event, SPConnectorContext *cc)
{
g_assert( SP_IS_CONNECTOR_CONTEXT(cc) );
static void
-shape_event_attr_deleted(Inkscape::XML::Node *repr, Inkscape::XML::Node *child,
- Inkscape::XML::Node *ref, gpointer data)
+shape_event_attr_deleted(Inkscape::XML::Node */*repr*/, Inkscape::XML::Node *child,
+ Inkscape::XML::Node */*ref*/, gpointer data)
{
g_assert(data);
SPConnectorContext *cc = SP_CONNECTOR_CONTEXT(data);
@@ -1363,8 +1363,8 @@ shape_event_attr_deleted(Inkscape::XML::Node *repr, Inkscape::XML::Node *child,
static void
shape_event_attr_changed(Inkscape::XML::Node *repr, gchar const *name,
- gchar const *old_value, gchar const *new_value,
- bool is_interactive, gpointer data)
+ gchar const */*old_value*/, gchar const */*new_value*/,
+ bool /*is_interactive*/, gpointer data)
{
g_assert(data);
SPConnectorContext *cc = SP_CONNECTOR_CONTEXT(data);
index 98e6c69a66206b98beb0e1205b050bc47e54de92..84d8af3a8534d30dfde3e12a939c175384e2a631 100644 (file)
namespace Inkscape {
void
-ConsoleOutputUndoObserver::notifyUndoEvent(Event* log)
+ConsoleOutputUndoObserver::notifyUndoEvent(Event* /*log*/)
{
// g_message("notifyUndoEvent (sp_document_undo) called; log=%p\n", log->event);
}
void
-ConsoleOutputUndoObserver::notifyRedoEvent(Event* log)
+ConsoleOutputUndoObserver::notifyRedoEvent(Event* /*log*/)
{
// g_message("notifyRedoEvent (sp_document_redo) called; log=%p\n", log->event);
}
void
-ConsoleOutputUndoObserver::notifyUndoCommitEvent(Event* log)
+ConsoleOutputUndoObserver::notifyUndoCommitEvent(Event* /*log*/)
{
//g_message("notifyUndoCommitEvent (sp_document_maybe_done) called; log=%p\n", log->event);
}
diff --git a/src/desktop-events.cpp b/src/desktop-events.cpp
index b71cc155c2e12f487b2db92966a3c9b97d63eeb0..98e96c38c166205d3686cdef20d6e7f46d4f0726 100644 (file)
--- a/src/desktop-events.cpp
+++ b/src/desktop-events.cpp
/* Root item handler */
-int sp_desktop_root_handler(SPCanvasItem *item, GdkEvent *event, SPDesktop *desktop)
+int sp_desktop_root_handler(SPCanvasItem */*item*/, GdkEvent *event, SPDesktop *desktop)
{
return sp_event_context_root_handler(desktop->event_context, event);
}
diff --git a/src/document-undo.cpp b/src/document-undo.cpp
index 81125833110313c50b78793bbadecf8b6ee35dde..53c272566af1e33faa0ae0d272eb3a4c070f8eb3 100644 (file)
--- a/src/document-undo.cpp
+++ b/src/document-undo.cpp
}
void
-sp_document_reset_key (Inkscape::Application *inkscape, SPDesktop *desktop, GtkObject *base)
+sp_document_reset_key (Inkscape::Application */*inkscape*/, SPDesktop *desktop, GtkObject *base)
{
SPDocument *doc = (SPDocument *) base;
doc->actionkey = NULL;
diff --git a/src/draw-context.cpp b/src/draw-context.cpp
index 43e028aa5655032071f821e2c089a40e58b623e8..649f135728c4f913dd1a935d92bebc2fac84dbd3 100644 (file)
--- a/src/draw-context.cpp
+++ b/src/draw-context.cpp
}
static void
-sp_draw_context_set(SPEventContext *ec, const gchar *key, const gchar *value)
+sp_draw_context_set(SPEventContext */*ec*/, const gchar */*key*/, const gchar */*value*/)
{
}
/* fixme: We have to ensure this is not delayed (Lauris) */
static void
-spdc_selection_modified(Inkscape::Selection *sel, guint flags, SPDrawContext *dc)
+spdc_selection_modified(Inkscape::Selection *sel, guint /*flags*/, SPDrawContext *dc)
{
if (dc->attach) {
spdc_attach_selection(dc, sel);
@@ -264,7 +264,7 @@ spdc_selection_modified(Inkscape::Selection *sel, guint flags, SPDrawContext *dc
}
static void
-spdc_attach_selection(SPDrawContext *dc, Inkscape::Selection *sel)
+spdc_attach_selection(SPDrawContext *dc, Inkscape::Selection */*sel*/)
{
/* We reset white and forget white/start/end anchors */
spdc_reset_white(dc);
diff --git a/src/event-context.cpp b/src/event-context.cpp
index 7e14d5a492f4106dcdc7f2c97dd37a8487883b23..1bf273b31edf5b63c17a617bc4a87c4892c04040 100644 (file)
--- a/src/event-context.cpp
+++ b/src/event-context.cpp
* Calculates and keeps track of scroll acceleration.
* Subroutine of sp_event_context_private_root_handler().
*/
-static gdouble accelerate_scroll(GdkEvent *event, gdouble acceleration, SPCanvas *canvas)
+static gdouble accelerate_scroll(GdkEvent *event, gdouble acceleration, SPCanvas */*canvas*/)
{
guint32 time_diff = ((GdkEventKey *) event)->time - scroll_event_time;
@@ -685,8 +685,8 @@ sp_event_context_private_item_handler(SPEventContext *ec, SPItem *item, GdkEvent
* Gets called when attribute changes value.
*/
static void
-sp_ec_repr_attr_changed(Inkscape::XML::Node *prefs_repr, gchar const *key, gchar const *oldval, gchar const *newval,
- bool is_interactive, gpointer data)
+sp_ec_repr_attr_changed(Inkscape::XML::Node */*prefs_repr*/, gchar const *key, gchar const */*oldval*/, gchar const *newval,
+ bool /*is_interactive*/, gpointer data)
{
SPEventContext *ec;
@@ -1003,9 +1003,9 @@ sp_event_context_over_item (SPDesktop *desktop, SPItem *item, NR::Point const p)
* Called when SPEventContext subclass node attribute changed.
*/
void
-ec_shape_event_attr_changed(Inkscape::XML::Node *shape_repr, gchar const *name,
- gchar const *old_value, gchar const *new_value,
- bool const is_interactive, gpointer const data)
+ec_shape_event_attr_changed(Inkscape::XML::Node */*shape_repr*/, gchar const *name,
+ gchar const */*old_value*/, gchar const */*new_value*/,
+ bool const /*is_interactive*/, gpointer const data)
{
if (!name
|| !strcmp(name, "style")
diff --git a/src/file.cpp b/src/file.cpp
index abb00be4cf81af4567427c4d5136140bdb45f3ad..8cffa6b7a27f0aff10b6cd52cc22397635ca574b 100644 (file)
--- a/src/file.cpp
+++ b/src/file.cpp
* Can select single or multiple files for opening.
*/
void
-sp_file_open_dialog(Gtk::Window &parentWindow, gpointer object, gpointer data)
+sp_file_open_dialog(Gtk::Window &parentWindow, gpointer /*object*/, gpointer /*data*/)
{
//# Get the current directory for finding files
* Used only for remote saving using VFS and a specific uri. Gets the file at the /tmp.
*/
bool
-file_save_remote(SPDocument *doc, const Glib::ustring &uri,
- Inkscape::Extension::Extension *key, bool saveas, bool official)
+file_save_remote(SPDocument */*doc*/, const Glib::ustring &uri,
+ Inkscape::Extension::Extension */*key*/, bool /*saveas*/, bool official)
{
#ifdef WITH_GNOME_VFS
* Save a document.
*/
bool
-sp_file_save(Gtk::Window &parentWindow, gpointer object, gpointer data)
+sp_file_save(Gtk::Window &parentWindow, gpointer /*object*/, gpointer /*data*/)
{
if (!SP_ACTIVE_DOCUMENT)
return false;
* Save a document, always displaying the SaveAs dialog.
*/
bool
-sp_file_save_as(Gtk::Window &parentWindow, gpointer object, gpointer data)
+sp_file_save_as(Gtk::Window &parentWindow, gpointer /*object*/, gpointer /*data*/)
{
if (!SP_ACTIVE_DOCUMENT)
return false;
* Save a copy of a document, always displaying a sort of SaveAs dialog.
*/
bool
-sp_file_save_a_copy(Gtk::Window &parentWindow, gpointer object, gpointer data)
+sp_file_save_a_copy(Gtk::Window &parentWindow, gpointer /*object*/, gpointer /*data*/)
{
if (!SP_ACTIVE_DOCUMENT)
return false;
*
*/
bool
-sp_file_export_dialog(void *widget)
+sp_file_export_dialog(void */*widget*/)
{
sp_export_dialog();
return true;
* printed.
*/
void
-sp_file_print_preview(gpointer object, gpointer data)
+sp_file_print_preview(gpointer /*object*/, gpointer /*data*/)
{
SPDocument *doc = SP_ACTIVE_DOCUMENT;
index 8548113351449b07be052ac1c83b84d7df8af191..5424b7a3d7289280e659e177749b48855ffbd68b 100644 (file)
--- a/src/gradient-context.cpp
+++ b/src/gradient-context.cpp
static void
-sp_gradient_context_add_stop_near_point (SPGradientContext *rc, SPItem *item, NR::Point mouse_p, guint32 etime)
+sp_gradient_context_add_stop_near_point (SPGradientContext *rc, SPItem *item, NR::Point mouse_p, guint32 /*etime*/)
{
// item is the selected item. mouse_p the location in doc coordinates of where to add the stop
@@ -827,7 +827,7 @@ sp_gradient_context_root_handler(SPEventContext *event_context, GdkEvent *event)
return ret;
}
-static void sp_gradient_drag(SPGradientContext &rc, NR::Point const pt, guint state, guint32 etime)
+static void sp_gradient_drag(SPGradientContext &rc, NR::Point const pt, guint /*state*/, guint32 etime)
{
SPDesktop *desktop = SP_EVENT_CONTEXT(&rc)->desktop;
Inkscape::Selection *selection = sp_desktop_selection(desktop);
diff --git a/src/interface.cpp b/src/interface.cpp
index 775f53b35e83b4c0ec6830cf9bd9a5c4090d92cd..114f9b34ac95d211d0bd5d9e200bf6f80bb09ea6 100644 (file)
--- a/src/interface.cpp
+++ b/src/interface.cpp
* \param widget unused
*/
void
-sp_ui_close_view(GtkWidget *widget)
+sp_ui_close_view(GtkWidget */*widget*/)
{
if (SP_ACTIVE_DESKTOP == NULL) {
return;
* investigate when they're called.
*/
static void
-sp_ui_menu_activate(void *object, SPAction *action)
+sp_ui_menu_activate(void */*object*/, SPAction *action)
{
sp_action_perform(action, NULL);
}
static void
-sp_ui_menu_select_action(void *object, SPAction *action)
+sp_ui_menu_select_action(void */*object*/, SPAction *action)
{
action->view->tipsMessageContext()->set(Inkscape::NORMAL_MESSAGE, action->tip);
}
static void
-sp_ui_menu_deselect_action(void *object, SPAction *action)
+sp_ui_menu_deselect_action(void */*object*/, SPAction *action)
{
action->view->tipsMessageContext()->clear();
}
}
static gboolean
-checkitem_update(GtkWidget *widget, GdkEventExpose *event, gpointer user_data)
+checkitem_update(GtkWidget *widget, GdkEventExpose */*event*/, gpointer user_data)
{
GtkCheckMenuItem *menuitem=GTK_CHECK_MENU_ITEM(widget);
@@ -730,13 +730,13 @@ sp_ui_menu_append_check_item_from_verb(GtkMenu *menu, Inkscape::UI::View::View *
}
static void
-sp_recent_open(GtkWidget *widget, gchar const *uri)
+sp_recent_open(GtkWidget */*widget*/, gchar const *uri)
{
sp_file_open(uri, NULL);
}
static void
-sp_file_new_from_template(GtkWidget *widget, gchar const *uri)
+sp_file_new_from_template(GtkWidget */*widget*/, gchar const *uri)
{
sp_file_new(uri);
}
gint x, gint y,
GtkSelectionData *data,
guint info,
- guint event_time,
- gpointer user_data)
+ guint /*event_time*/,
+ gpointer /*user_data*/)
{
SPDocument *doc = SP_ACTIVE_DOCUMENT;
SPDesktop *desktop = SP_ACTIVE_DESKTOP;
#include "gradient-context.h"
-void sp_ui_drag_motion( GtkWidget *widget,
- GdkDragContext *drag_context,
- gint x, gint y,
- GtkSelectionData *data,
- guint info,
- guint event_time,
- gpointer user_data)
+void sp_ui_drag_motion( GtkWidget */*widget*/,
+ GdkDragContext */*drag_context*/,
+ gint /*x*/, gint /*y*/,
+ GtkSelectionData */*data*/,
+ guint /*info*/,
+ guint /*event_time*/,
+ gpointer /*user_data*/)
{
- SPDocument *doc = SP_ACTIVE_DOCUMENT;
- SPDesktop *desktop = SP_ACTIVE_DESKTOP;
+// SPDocument *doc = SP_ACTIVE_DOCUMENT;
+// SPDesktop *desktop = SP_ACTIVE_DESKTOP;
// g_message("drag-n-drop motion (%4d, %4d) at %d", x, y, event_time);
}
-static void sp_ui_drag_leave( GtkWidget *widget,
- GdkDragContext *drag_context,
- guint event_time,
- gpointer user_data )
+static void sp_ui_drag_leave( GtkWidget */*widget*/,
+ GdkDragContext */*drag_context*/,
+ guint /*event_time*/,
+ gpointer /*user_data*/ )
{
// g_message("drag-n-drop leave at %d", event_time);
}
}
static void
-sp_ui_import_one_file_with_check(gpointer filename, gpointer unused)
+sp_ui_import_one_file_with_check(gpointer filename, gpointer /*unused*/)
{
if (filename) {
if (strlen((char const *)filename) > 2)
}
static void
-sp_ui_menu_item_set_sensitive(SPAction *action, unsigned int sensitive, void *data)
+sp_ui_menu_item_set_sensitive(SPAction */*action*/, unsigned int sensitive, void *data)
{
return gtk_widget_set_sensitive(GTK_WIDGET(data), sensitive);
}
static void
-sp_ui_menu_item_set_name(SPAction *action, Glib::ustring name, void *data)
+sp_ui_menu_item_set_name(SPAction */*action*/, Glib::ustring name, void *data)
{
void *child = GTK_BIN (data)->child;
//child is either
diff --git a/src/io/simple-sax.cpp b/src/io/simple-sax.cpp
index 2dd78b451dbfb0d0e15601c7ef7bf01f3cba6931..2ba103cd3435f4206225c3fedbc1ed8a9a03477e 100644 (file)
--- a/src/io/simple-sax.cpp
+++ b/src/io/simple-sax.cpp
{
}
-void FlatSaxHandler::_startElement(const xmlChar *name, const xmlChar **attrs)
+void FlatSaxHandler::_startElement(const xmlChar */*name*/, const xmlChar **/*attrs*/)
{
data.clear();
}
-void FlatSaxHandler::_endElement(const xmlChar *name)
+void FlatSaxHandler::_endElement(const xmlChar */*name*/)
{
//g_message("<%s>%s</%s>", name, data.c_str(), name);
data.clear();
diff --git a/src/io/simple-sax.h b/src/io/simple-sax.h
index 7de816a14e13424a58a92846e94327710663c258..17c571e196f00738d0eb30b48dd1749148fd4685 100644 (file)
--- a/src/io/simple-sax.h
+++ b/src/io/simple-sax.h
protected:
virtual void _startDocument() {}
virtual void _endDocument() {}
- virtual void _startElement(const xmlChar *name, const xmlChar **attrs) {}
- virtual void _endElement(const xmlChar *name) {}
- virtual void _characters(const xmlChar *ch, int len) {}
+ virtual void _startElement(const xmlChar */*name*/, const xmlChar **/*attrs*/) {}
+ virtual void _endElement(const xmlChar */*name*/) {}
+ virtual void _characters(const xmlChar */*ch*/, int /*len*/) {}
private:
static void startDocument(void *user_data);
diff --git a/src/knotholder.cpp b/src/knotholder.cpp
index d8776cca7219db5a91f417fbdd32f7c55bd28c9d..3c61e980be70222842975495220a309ccde7424d 100644 (file)
--- a/src/knotholder.cpp
+++ b/src/knotholder.cpp
@@ -281,7 +281,7 @@ static void knot_moved_handler(SPKnot *knot, NR::Point const *p, guint state, gp
knotholder_update_knots(knot_holder, item);
}
-static void knot_ungrabbed_handler(SPKnot *knot, unsigned int state, SPKnotHolder *kh)
+static void knot_ungrabbed_handler(SPKnot */*knot*/, unsigned int /*state*/, SPKnotHolder *kh)
{
if (kh->released) {
kh->released(kh->item);
diff --git a/src/layer-manager.cpp b/src/layer-manager.cpp
index e6a34852d9dc6c2baf7bda49d03fe96b96eee526..34a909a796aef25edb2f10746a98f5b29b5133eb 100644 (file)
--- a/src/layer-manager.cpp
+++ b/src/layer-manager.cpp
_labelAttr(g_quark_from_string("inkscape:label"))
{}
- virtual void notifyChildAdded( Node &node, Node &child, Node *prev ) {}
- virtual void notifyChildRemoved( Node &node, Node &child, Node *prev ) {}
- virtual void notifyChildOrderChanged( Node &node, Node &child, Node *old_prev, Node *new_prev ) {}
- virtual void notifyContentChanged( Node &node, Util::ptr_shared<char> old_content, Util::ptr_shared<char> new_content ) {}
- virtual void notifyAttributeChanged( Node &node, GQuark name, Util::ptr_shared<char> old_value, Util::ptr_shared<char> new_value ) {
+ virtual void notifyChildAdded( Node &/*node*/, Node &/*child*/, Node */*prev*/ ) {}
+ virtual void notifyChildRemoved( Node &/*node*/, Node &/*child*/, Node */*prev*/ ) {}
+ virtual void notifyChildOrderChanged( Node &/*node*/, Node &/*child*/, Node */*old_prev*/, Node */*new_prev*/ ) {}
+ virtual void notifyContentChanged( Node &/*node*/, Util::ptr_shared<char> /*old_content*/, Util::ptr_shared<char> /*new_content*/ ) {}
+ virtual void notifyAttributeChanged( Node &/*node*/, GQuark name, Util::ptr_shared<char> /*old_value*/, Util::ptr_shared<char> /*new_value*/ ) {
if ( name == _lockedAttr || name == _labelAttr ) {
if ( _mgr && _obj ) {
_mgr->_objectModified( _obj, 0 );
_rebuild();
}
-void LayerManager::_objectModified( SPObject* obj, guint flags )
+void LayerManager::_objectModified( SPObject* obj, guint /*flags*/ )
{
_details_changed_signal.emit( obj );
}
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp
index 2d5aa9e8344f9a7835e787d029bd32a21701db25..b09d63ec067661fbf3957dc8ecba64c9ebad7253 100644 (file)
--- a/src/path-chemistry.cpp
+++ b/src/path-chemistry.cpp
}
static void
-sp_selected_path_to_curves0(gboolean interactive, guint32 text_grouping_policy)
+sp_selected_path_to_curves0(gboolean interactive, guint32 /*text_grouping_policy*/)
{
SPDesktop *desktop = SP_ACTIVE_DESKTOP;
}
Inkscape::XML::Node *
-sp_selected_item_to_curved_repr(SPItem *item, guint32 text_grouping_policy)
+sp_selected_item_to_curved_repr(SPItem *item, guint32 /*text_grouping_policy*/)
{
if (!item)
return NULL;
diff --git a/src/pen-context.cpp b/src/pen-context.cpp
index 76fc3a61b983e58c70467fff9df5f06d75268c32..3267912752bb8378c1b0895e6f8d40173d8103a9 100644 (file)
--- a/src/pen-context.cpp
+++ b/src/pen-context.cpp
@@ -1162,7 +1162,7 @@ spdc_pen_set_ctrl(SPPenContext *const pc, NR::Point const p, guint const state)
}
static void
-spdc_pen_finish_segment(SPPenContext *const pc, NR::Point const p, guint const state)
+spdc_pen_finish_segment(SPPenContext *const pc, NR::Point const /*p*/, guint const /*state*/)
{
if (!sp_curve_empty(pc->red_curve)) {
sp_curve_append_continuous(pc->green_curve, pc->red_curve, 0.0625);
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp
index cdadd0c713d53d04c3d31386125dd8e651ca0601..32ea8aafa36adb200e7198c0884d890589d832d5 100644 (file)
--- a/src/pencil-context.cpp
+++ b/src/pencil-context.cpp
}
static void
-spdc_add_freehand_point(SPPencilContext *pc, NR::Point p, guint state)
+spdc_add_freehand_point(SPPencilContext *pc, NR::Point p, guint /*state*/)
{
g_assert( pc->npoints > 0 );
g_return_if_fail(unsigned(pc->npoints) < G_N_ELEMENTS(pc->p));
index 7c6925ad21084368f9bbed4b370a9a6d5fbaaf38..783a09cf667f4bc737b3b3bc62e135b3027a1ff2 100644 (file)
--- a/src/svg-view-widget.cpp
+++ b/src/svg-view-widget.cpp
* Callback connected with view_resized signal.
*/
static void
-sp_svg_view_widget_view_resized (SPViewWidget *vw, Inkscape::UI::View::View *view, gdouble width, gdouble height)
+sp_svg_view_widget_view_resized (SPViewWidget *vw, Inkscape::UI::View::View */*view*/, gdouble width, gdouble height)
{
SPSVGSPViewWidget *svgvw = SP_SVG_VIEW_WIDGET (vw);
diff --git a/src/svg-view.cpp b/src/svg-view.cpp
index 22d9dd120e81d0cd4e477add44a77bf36066ac95..1ca269d7043367a985397c6dfe893fef2489fe2a 100644 (file)
--- a/src/svg-view.cpp
+++ b/src/svg-view.cpp
*/
/// \todo fixme.
static gint
-arena_handler (SPCanvasArena *arena, NRArenaItem *ai, GdkEvent *event, SPSVGView *svgview)
+arena_handler (SPCanvasArena */*arena*/, NRArenaItem *ai, GdkEvent *event, SPSVGView *svgview)
{
static gdouble x, y;
static gboolean active = FALSE;
diff --git a/src/svg-view.h b/src/svg-view.h
index 4494945d51a0ace0475dd5ca67d759615c441531..838a95b03eb6c7677db2199a3786089af4c8e2a3 100644 (file)
--- a/src/svg-view.h
+++ b/src/svg-view.h
virtual void onPositionSet (double, double) {}
virtual void onResized (double, double) {}
virtual void onRedrawRequested() {}
- virtual void onStatusMessage (Inkscape::MessageType type, gchar const *message) {}
- virtual void onDocumentURISet (gchar const* uri) {}
+ virtual void onStatusMessage (Inkscape::MessageType /*type*/, gchar const */*message*/) {}
+ virtual void onDocumentURISet (gchar const* /*uri*/) {}
virtual void onDocumentResized (double, double);
};
diff --git a/src/trace/trace.h b/src/trace/trace.h
index 1341e3d464871883b69015e13af1171acbddf4db..2c9922e1069ec7b4841d0b063bf8908ddf5c696d 100644 (file)
--- a/src/trace/trace.h
+++ b/src/trace/trace.h
* of an SVG <path> element.
*/
virtual std::vector<TracingEngineResult> trace(
- Glib::RefPtr<Gdk::Pixbuf> pixbuf)
+ Glib::RefPtr<Gdk::Pixbuf> /*pixbuf*/)
{ std::vector<TracingEngineResult> dummy; return dummy; }
index 066d4d0ba2a68fd6334845f29072a0e92ac82c9e..f99658f97d942ae2240895a2e986d24f2d8ad462 100644 (file)
}
bool
-EditWidget::onEntryFocusIn (GdkEventFocus* ev)
+EditWidget::onEntryFocusIn (GdkEventFocus* /*ev*/)
{
Gdk::ModifierType m = static_cast<Gdk::ModifierType>(0);
Gtk::AccelMap::change_entry ("<Actions>//Zoom100", 0, m, false);
}
bool
-EditWidget::onEntryFocusOut (GdkEventFocus* ev)
+EditWidget::onEntryFocusOut (GdkEventFocus* /*ev*/)
{
Gdk::ModifierType m = static_cast<Gdk::ModifierType>(0);
Gtk::AccelMap::change_entry ("<Actions>//Zoom100", '1', m, false);
}
void
-EditWidget::setMessage (Inkscape::MessageType type, gchar const* msg)
+EditWidget::setMessage (Inkscape::MessageType /*type*/, gchar const* msg)
{
_select_status.set_markup (msg? msg : "");
}
index 65f3c598cf0c561bdac9e0e161235ae4b54268ca..79a6daa5b0bfa0bace666dc970ccfde14a1fb24d 100644 (file)
class Rotateable: public Gtk::EventBox
{
public:
- Rotateable();
+ Rotateable();
- ~Rotateable();
+ ~Rotateable();
- bool on_click(GdkEventButton *event);
- bool on_motion(GdkEventMotion *event);
- bool on_release(GdkEventButton *event);
+ bool on_click(GdkEventButton *event);
+ bool on_motion(GdkEventMotion *event);
+ bool on_release(GdkEventButton *event);
- double axis;
- double current_axis;
- double maxdecl;
+ double axis;
+ double current_axis;
+ double maxdecl;
private:
- double drag_started_x;
- double drag_started_y;
- guint modifier;
- bool dragging;
- bool working;
+ double drag_started_x;
+ double drag_started_y;
+ guint modifier;
+ bool dragging;
+ bool working;
guint get_single_modifier(guint old, guint state);
- virtual void do_motion (double by, guint state) {}
- virtual void do_release (double by, guint state) {}
+ virtual void do_motion (double /*by*/, guint /*state*/) {}
+ virtual void do_release (double /*by*/, guint /*state*/) {}
};
} // namespace Widget
#endif // INKSCAPE_UI_ROTATEABLE_H
-/*
+/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
index 554752941fbca4c34fc735a66cfb54a2996a02ea..d38e14b3f8af93a8b58c0d61fcd589d26c2d4840 100644 (file)
--- a/src/xml/simple-node.cpp
+++ b/src/xml/simple-node.cpp
}
void
-SimpleNode::setAttribute(gchar const *name, gchar const *value, bool const is_interactive)
+SimpleNode::setAttribute(gchar const *name, gchar const *value, bool const /*is_interactive*/)
{
g_return_if_fail(name && *name);
@@ -523,7 +523,7 @@ void content_changed(Node *node, gchar const *old_content, gchar const *new_cont
reinterpret_cast<NodeObserver *>(data)->notifyContentChanged(*node, Util::share_unsafe((const char *)old_content), Util::share_unsafe((const char *)new_content));
}
-void attr_changed(Node *node, gchar const *name, gchar const *old_value, gchar const *new_value, bool is_interactive, void *data) {
+void attr_changed(Node *node, gchar const *name, gchar const *old_value, gchar const *new_value, bool /*is_interactive*/, void *data) {
reinterpret_cast<NodeObserver *>(data)->notifyAttributeChanged(*node, g_quark_from_string(name), Util::share_unsafe((const char *)old_value), Util::share_unsafe((const char *)new_value));
}