~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/document.cpp

  • Committer: kidproto
  • Date: 2006-08-25 07:03:19 UTC
  • Revision ID: kidproto@users.sourceforge.net-20060825070319-49nso3fdlwuveifv
peeled back the gboolean code as it hit on some complexity theory principles...
need to rethink and incrementally change gbooleans to bools

Show diffs side-by-side

added added

removed removed

Lines of Context:
549
549
    // Update saveable repr attributes.
550
550
    Inkscape::XML::Node *repr = sp_document_repr_root(document);
551
551
    // changing uri in the document repr must not be not undoable
552
 
    bool saved = sp_document_get_undo_sensitive(document);
 
552
    gboolean saved = sp_document_get_undo_sensitive(document);
553
553
    sp_document_set_undo_sensitive(document, FALSE);
554
554
    if (document->base)
555
555
        repr->setAttribute("sodipodi:docbase", document->base);
914
914
guaranteed to be lower than upto).
915
915
 */
916
916
SPItem*
917
 
find_item_at_point(unsigned int dkey, SPGroup *group, NR::Point const p, bool into_groups, bool take_insensitive = false, SPItem *upto = NULL)
 
917
find_item_at_point(unsigned int dkey, SPGroup *group, NR::Point const p, gboolean into_groups, bool take_insensitive = false, SPItem *upto = NULL)
918
918
{
919
919
    SPItem *seen = NULL, *newseen = NULL;
920
920
 
1015
1015
 
1016
1016
SPItem *
1017
1017
sp_document_item_at_point(SPDocument *document, unsigned const key, NR::Point const p,
1018
 
                          bool const into_groups, SPItem *upto)
 
1018
                          gboolean const into_groups, SPItem *upto)
1019
1019
{
1020
1020
    g_return_val_if_fail(document != NULL, NULL);
1021
1021
    g_return_val_if_fail(document->priv != NULL, NULL);
1035
1035
 
1036
1036
/* Resource management */
1037
1037
 
1038
 
bool
 
1038
gboolean
1039
1039
sp_document_add_resource(SPDocument *document, gchar const *key, SPObject *object)
1040
1040
{
1041
1041
    GSList *rlist;
1060
1060
    return TRUE;
1061
1061
}
1062
1062
 
1063
 
bool
 
1063
gboolean
1064
1064
sp_document_remove_resource(SPDocument *document, gchar const *key, SPObject *object)
1065
1065
{
1066
1066
    GSList *rlist;