app: Clarify corner case uses of gimp_object_name_changed()

This commit is contained in:
Martin Nordholts 2009-08-29 12:11:28 +02:00
parent 585a3fa6e4
commit cb94993f40
3 changed files with 9 additions and 0 deletions

View File

@ -355,6 +355,7 @@ gimp_data_real_dirty (GimpData *data)
gimp_viewable_invalidate_preview (GIMP_VIEWABLE (data));
/* Emit the "name-changed" to signal general dirtiness */
gimp_object_name_changed (GIMP_OBJECT (data));
}

View File

@ -122,6 +122,10 @@ gimp_floating_sel_undo_pop (GimpUndo *undo,
gimp_layer_set_floating_sel_drawable (floating_layer, NULL);
}
/* When the floating selection is converted to/from a normal
* layer it does something resembling a name, so emit the
* "name-changed" signal
*/
gimp_object_name_changed (GIMP_OBJECT (floating_layer));
gimp_drawable_update (GIMP_DRAWABLE (floating_layer),

View File

@ -149,6 +149,10 @@ floating_sel_to_layer (GimpLayer *layer,
gimp_image_undo_group_end (image);
/* When the floating selection is converted to/from a normal layer
* it does something resembling a name, so emit the "name-changed"
* signal
*/
gimp_object_name_changed (GIMP_OBJECT (layer));
gimp_drawable_update (GIMP_DRAWABLE (layer),