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/item-properties.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/item-properties.cpp')
| -rw-r--r-- | src/dialogs/item-properties.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/dialogs/item-properties.cpp b/src/dialogs/item-properties.cpp index 51b0abd61..6f12a48f1 100644 --- a/src/dialogs/item-properties.cpp +++ b/src/dialogs/item-properties.cpp @@ -345,7 +345,8 @@ sp_item_widget_sensitivity_toggled (GtkWidget *widget, SPWidget *spw) item->setLocked(gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget))); - sp_document_maybe_done (SP_ACTIVE_DOCUMENT, "ItemDialog:insensitive"); + sp_document_maybe_done (SP_ACTIVE_DOCUMENT, "ItemDialog:insensitive", SP_VERB_NONE, + /* TODO: annotate */ "item-properties.cpp:349"); gtk_object_set_data (GTK_OBJECT (spw), "blocked", GUINT_TO_POINTER (FALSE)); } @@ -363,7 +364,8 @@ sp_item_widget_hidden_toggled(GtkWidget *widget, SPWidget *spw) item->setExplicitlyHidden(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))); - sp_document_maybe_done (SP_ACTIVE_DOCUMENT, "ItemDialog:visiblity"); + sp_document_maybe_done (SP_ACTIVE_DOCUMENT, "ItemDialog:visiblity", SP_VERB_NONE, + /* TODO: annotate */ "item-properties.cpp:368"); gtk_object_set_data (GTK_OBJECT (spw), "blocked", GUINT_TO_POINTER (FALSE)); } @@ -395,7 +397,8 @@ sp_item_widget_label_changed (GtkWidget *widget, SPWidget *spw) gtk_label_set_markup_with_mnemonic (GTK_LABEL (id_label), _("_Id")); SP_EXCEPTION_INIT (&ex); sp_object_setAttribute (SP_OBJECT (item), "id", id, &ex); - sp_document_maybe_done (SP_ACTIVE_DOCUMENT, "ItemDialog:id"); + sp_document_maybe_done (SP_ACTIVE_DOCUMENT, "ItemDialog:id", SP_VERB_NONE, + /* TODO: annotate */ "item-properties.cpp:401"); } /* Retrieve the label widget for the object's label */ @@ -409,7 +412,8 @@ sp_item_widget_label_changed (GtkWidget *widget, SPWidget *spw) SPObject *obj = (SPObject*)item; if (strcmp (label, obj->defaultLabel())) { obj->setLabel(label); - sp_document_maybe_done (SP_ACTIVE_DOCUMENT, "inkscape:label"); + sp_document_maybe_done (SP_ACTIVE_DOCUMENT, "inkscape:label", SP_VERB_NONE, + /* TODO: annotate */ "item-properties.cpp:416"); } /* Retrieve the title */ @@ -417,14 +421,16 @@ sp_item_widget_label_changed (GtkWidget *widget, SPWidget *spw) gchar *title = (gchar *)gtk_entry_get_text (GTK_ENTRY (w)); if (title != NULL) { obj->setTitle(title); - sp_document_maybe_done (SP_ACTIVE_DOCUMENT, "title"); + sp_document_maybe_done (SP_ACTIVE_DOCUMENT, "title", SP_VERB_NONE, + /* TODO: annotate */ "item-properties.cpp:425"); } /* Retrieve the description */ gchar *desc = NULL; /* TODO: get text from text buffer */ if (desc != NULL) { obj->setDesc(desc); - sp_document_maybe_done (SP_ACTIVE_DOCUMENT, "desc"); + sp_document_maybe_done (SP_ACTIVE_DOCUMENT, "desc", SP_VERB_NONE, + /* TODO: annotate */ "item-properties.cpp:433"); } gtk_object_set_data (GTK_OBJECT (spw), "blocked", GUINT_TO_POINTER (FALSE)); |
