summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d76e1a8)
raw | patch | inline | side by side (parent: d76e1a8)
author | speleo3 <speleo3@users.sourceforge.net> | |
Wed, 25 Feb 2009 19:05:55 +0000 (19:05 +0000) | ||
committer | speleo3 <speleo3@users.sourceforge.net> | |
Wed, 25 Feb 2009 19:05:55 +0000 (19:05 +0000) |
src/display/snap-indicator.cpp | patch | blob | history |
index 0ba4d7786f8dd65fc105c1b9695cc1540a888ad2..b9f7ee1d420632d38cb1acb122f9d07216404068 100644 (file)
_snaptarget = _desktop->add_temporary_canvasitem(canvasitem, timeout_val);
gchar *tooltip_str = g_strconcat(source_name, _(" to "), target_name, NULL);
+ Geom::Point tooltip_pos = p.getPoint() + _desktop->w2d(Geom::Point(15, -15));
- SPCanvasItem *canvas_tooltip = sp_canvastext_new(sp_desktop_tempgroup(_desktop), _desktop, p.getPoint() + Geom::Point(15, -15), tooltip_str);
+ SPCanvasItem *canvas_tooltip = sp_canvastext_new(sp_desktop_tempgroup(_desktop), _desktop, tooltip_pos, tooltip_str);
g_free(tooltip_str);
sp_canvastext_set_anchor((SPCanvasText* )canvas_tooltip, -1, 1);
fill-column:99
End:
*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 :