summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 394b186)
raw | patch | inline | side by side (parent: 394b186)
author | joncruz <joncruz@users.sourceforge.net> | |
Sun, 14 Sep 2008 06:54:02 +0000 (06:54 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sun, 14 Sep 2008 06:54:02 +0000 (06:54 +0000) |
src/ui/widget/preferences-widget.cpp | patch | blob | history | |
src/widgets/toolbox.cpp | patch | blob | history |
index d4164864b63a0e412b1421c8b935d0a827960dfd..a46bf39bf5f43ec1acc74624c5c6a2d940a96a3b 100644 (file)
}
bool
-ZoomCorrRuler::on_expose_event(GdkEventExpose *event) {
+ZoomCorrRuler::on_expose_event(GdkEventExpose */*event*/) {
this->redraw();
return true;
}
index b78af389bed6845f898f3ceb431b92e98bb6b8d4..fc3a9e66fbf421a4b2f42a201192b71bc13017c4 100644 (file)
--- a/src/widgets/toolbox.cpp
+++ b/src/widgets/toolbox.cpp
bool match = true;
for ( Inkscape::Util::List<Inkscape::XML::AttributeRecord const> iter = preset_repr->attributeList();
- iter;
+ iter;
++iter ) {
const gchar *attr_name = g_quark_to_string(iter->key);
if (!strcmp(attr_name, "id") || !strcmp(attr_name, "name"))
match = false;
break;
}
- }
- }
+ }
+ }
}
if (match) {
- // newly added item is at the same index as the
+ // newly added item is at the same index as the
// save command, so we need to change twice for it to take effect
ege_select_one_action_set_active(sel, 0);
ege_select_one_action_set_active(sel, i);
};
-static void sp_dcc_build_presets_list(GObject *tbl)
+static void sp_dcc_build_presets_list(GObject *tbl)
{
g_object_set_data(tbl, "presets_blocked", GINT_TO_POINTER(TRUE));
SPDesktop *desktop = (SPDesktop *) g_object_get_data(tbl, "desktop" );
if (! desktop) return;
- if (g_object_get_data(tbl, "presets_blocked"))
+ if (g_object_get_data(tbl, "presets_blocked"))
return;
Inkscape::UI::Dialogs::CalligraphicProfileDialog::show(desktop);
}
if (new_index == -1) {
- // no preset with this name, create
+ // no preset with this name, create
new_index = total_prefs + 1;
gchar *profile_id = g_strdup_printf("dcc%d", new_index);
pref_path = create_pref("tools.calligraphic.preset", profile_id);
return;
}
- if (g_object_get_data(tbl, "presets_blocked"))
+ if (g_object_get_data(tbl, "presets_blocked"))
return;
gchar *const preset_path = get_pref_nth_child("tools.calligraphic.preset", preset_index);
Inkscape::XML::Node *preset_repr = inkscape_get_repr(INKSCAPE, preset_path);
for ( Inkscape::Util::List<Inkscape::XML::AttributeRecord const> iter = preset_repr->attributeList();
- iter;
+ iter;
++iter ) {
const gchar *attr_name = g_quark_to_string(iter->key);
if (!strcmp(attr_name, "id") || !strcmp(attr_name, "name"))
}
}
-void
-sp_lpetool_toolbox_sel_modified(Inkscape::Selection *selection, guint /*flags*/, GObject *tbl)
+void sp_lpetool_toolbox_sel_modified(Inkscape::Selection *selection, guint /*flags*/, GObject */*tbl*/)
{
SPEventContext *ec = selection->desktop()->event_context;
if (!SP_IS_LPETOOL_CONTEXT(ec))
}
}
-static void
-lpetool_unit_changed(GtkAction* act, GObject* tbl) {
+static void lpetool_unit_changed(GtkAction* /*act*/, GObject* tbl) {
UnitTracker* tracker = reinterpret_cast<UnitTracker*>(g_object_get_data(tbl, "tracker"));
SPUnit const *unit = tracker->getActiveUnit();
prefs_set_int_attribute("tools.lpetool", "unitid", unit->unit_id);
}
static void
-sp_line_segment_build_list(GObject *tbl)
+sp_line_segment_build_list(GObject *tbl)
{
g_object_set_data(tbl, "line_segment_list_blocked", GINT_TO_POINTER(TRUE));
@@ -5286,7 +5284,7 @@ sp_text_toolbox_selection_changed (Inkscape::Selection */*selection*/, GObject *
// If querying returned nothing, read the style from the text tool prefs (default style for new texts)
if (result_family == QUERY_STYLE_NOTHING || result_style == QUERY_STYLE_NOTHING || result_numbers == QUERY_STYLE_NOTHING) {
// there are no texts in selection, read from prefs
-
+
Inkscape::XML::Node *repr = inkscape_get_repr (INKSCAPE, "tools.text");
if (repr) {
sp_style_read_from_repr (query, repr);