diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-06-29 20:15:48 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-06-29 20:15:48 +0000 |
| commit | ef0a7b603c667abc8599c3abf88c4408acb05228 (patch) | |
| tree | 7ddfd39557009044f41538d865cf3365e0ffe3fd /src/dialogs/stroke-style.cpp | |
| parent | Small bugfixes. (diff) | |
| download | inkscape-ef0a7b603c667abc8599c3abf88c4408acb05228.tar.gz inkscape-ef0a7b603c667abc8599c3abf88c4408acb05228.zip | |
patch from Gustav Broberg: undo annotations and history dialog
(bzr r1315)
Diffstat (limited to 'src/dialogs/stroke-style.cpp')
| -rw-r--r-- | src/dialogs/stroke-style.cpp | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/dialogs/stroke-style.cpp b/src/dialogs/stroke-style.cpp index 8f345d837..80099eb82 100644 --- a/src/dialogs/stroke-style.cpp +++ b/src/dialogs/stroke-style.cpp @@ -261,7 +261,8 @@ sp_stroke_style_paint_dragged(SPPaintSelector *psel, SPWidget *spw) case SP_PAINT_SELECTOR_MODE_COLOR_CMYK: { sp_paint_selector_set_flat_color (psel, SP_ACTIVE_DESKTOP, "stroke", "stroke-opacity"); - sp_document_maybe_done (sp_desktop_document(SP_ACTIVE_DESKTOP), undo_label); + sp_document_maybe_done (sp_desktop_document(SP_ACTIVE_DESKTOP), undo_label, SP_VERB_NONE, + /* TODO: annotate */ "stroke-style.cpp:265"); break; } @@ -306,7 +307,8 @@ sp_stroke_style_paint_changed(SPPaintSelector *psel, SPWidget *spw) sp_repr_css_attr_unref(css); - sp_document_done(document); + sp_document_done(document, SP_VERB_DIALOG_FILL_STROKE, + /* TODO: annotate */ "stroke-style.cpp:311"); break; } @@ -314,7 +316,8 @@ sp_stroke_style_paint_changed(SPPaintSelector *psel, SPWidget *spw) case SP_PAINT_SELECTOR_MODE_COLOR_CMYK: { sp_paint_selector_set_flat_color (psel, desktop, "stroke", "stroke-opacity"); - sp_document_maybe_done (sp_desktop_document(desktop), undo_label); + sp_document_maybe_done (sp_desktop_document(desktop), undo_label, SP_VERB_DIALOG_FILL_STROKE, + /* TODO: annotate */ "stroke-style.cpp:320"); // on release, toggle undo_label so that the next drag will not be lumped with this one if (undo_label == undo_label_1) @@ -365,7 +368,8 @@ sp_stroke_style_paint_changed(SPPaintSelector *psel, SPWidget *spw) } } - sp_document_done(document); + sp_document_done(document, SP_VERB_DIALOG_FILL_STROKE, + /* TODO: annotate */ "stroke-style.cpp:372"); } break; @@ -408,7 +412,8 @@ sp_stroke_style_paint_changed(SPPaintSelector *psel, SPWidget *spw) } // end if - sp_document_done (document); + sp_document_done (document, SP_VERB_DIALOG_FILL_STROKE, + /* TODO: annotate */ "stroke-style.cpp:416"); } // end if break; @@ -421,7 +426,8 @@ sp_stroke_style_paint_changed(SPPaintSelector *psel, SPWidget *spw) sp_desktop_set_style (desktop, css); sp_repr_css_attr_unref (css); - sp_document_done (document); + sp_document_done (document, SP_VERB_DIALOG_FILL_STROKE, + /* TODO: annotate */ "stroke-style.cpp:430"); } break; @@ -879,7 +885,8 @@ sp_marker_select(GtkOptionMenu *mnu, GtkWidget *spw) sp_repr_css_attr_unref(css); - sp_document_done(document); + sp_document_done(document, SP_VERB_DIALOG_FILL_STROKE, + /* TODO: annotate */ "stroke-style.cpp:889"); } static gboolean stroke_width_set_unit(SPUnitSelector *, @@ -1451,7 +1458,8 @@ sp_stroke_style_scale_line(SPWidget *spw) sp_repr_css_attr_unref(css); - sp_document_done(document); + sp_document_done(document, SP_VERB_DIALOG_FILL_STROKE, + /* TODO: annotate */ "stroke-style.cpp:1462"); gtk_object_set_data(GTK_OBJECT(spw), "update", GINT_TO_POINTER(FALSE)); } @@ -1537,7 +1545,8 @@ sp_stroke_style_any_toggled(GtkToggleButton *tb, SPWidget *spw) sp_repr_css_attr_unref(css); - sp_document_done(sp_desktop_document(desktop)); + sp_document_done(sp_desktop_document(desktop), SP_VERB_DIALOG_FILL_STROKE, + /* TODO: annotate */ "stroke-style.cpp:1549"); } } |
