~ubuntu-branches/ubuntu/oneiric/inkscape/oneiric-updates

« back to all changes in this revision

Viewing changes to src/knotholder.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alex Valavanis
  • Date: 2010-09-12 19:44:58 UTC
  • mfrom: (1.1.12 upstream) (45.1.3 maverick)
  • Revision ID: james.westby@ubuntu.com-20100912194458-4sjwmbl7dlsrk5dc
Tags: 0.48.0-1ubuntu1
* Merge with Debian unstable (LP: #628048, LP: #401567, LP: #456248, 
  LP: #463602, LP: #591986)
* debian/control: 
  - Ubuntu maintainers
  - Promote python-lxml, python-numpy, python-uniconvertor to Recommends.
  - Demote pstoedit to Suggests (universe package).
  - Suggests ttf-dejavu instead of ttf-bitstream-vera (LP: #513319)
* debian/rules:
  - Run intltool-update on build (Ubuntu-specific).
  - Add translation domain to .desktop files (Ubuntu-specific).
* debian/dirs:
  - Add usr/share/pixmaps.  Allow inkscape.xpm installation
* drop 50-poppler-API.dpatch (now upstream)
* drop 51-paste-in-unwritable-directory.dpatch (now upstream) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include "sp-pattern.h"
31
31
#include "style.h"
32
32
#include "live_effects/lpeobject.h"
 
33
#include "live_effects/effect.h"
33
34
#include "desktop.h"
34
35
#include "display/sp-canvas.h"
35
36
 
90
91
    }
91
92
}
92
93
 
 
94
/**
 
95
 * \brief Returns true if at least one of the KnotHolderEntities has the mouse hovering above it
 
96
 */
 
97
bool KnotHolder::knot_mouseover()
 
98
{
 
99
    for(std::list<KnotHolderEntity *>::iterator i = entity.begin(); i != entity.end(); ++i) {
 
100
        SPKnot *knot = (*i)->knot;
 
101
        if (knot && (knot->flags & SP_KNOT_MOUSEOVER)) {
 
102
            return true;
 
103
        }
 
104
    }
 
105
 
 
106
    return false;
 
107
}
 
108
 
93
109
void
94
110
KnotHolder::knot_clicked_handler(SPKnot *knot, guint state)
95
111
{