Commit b1474c40 authored by Hans Breuer's avatar Hans Breuer Committed by Hans Breuer
Browse files

mouse position and bounding box on statusbar when resizing objects

2008-07-13  Hans Breuer  <hans@breuer.org>

	* app/modify_tool.c : mouse position and bounding box on statusbar
	when resizing objects

	* NEWS : mention wmf plug-in and libEMF


svn path=/trunk/; revision=4088
parent 0f6bde9c
2008-07-13 Hans Breuer <hans@breuer.org>
 
* app/modify_tool.c : mouse position and bounding box on statusbar
when resizing objects
* NEWS : mention wmf plug-in and libEMF
* shapes/Cybernetics/*.png shapes/Gane_and_Sarson/*.png
shapes/Logic/*.png shapes/Map/Isometric/*.png
shapes/Misc/*.png shapes/MSE/*.png : some icons were smaller than
......
......@@ -20,6 +20,8 @@
* overhaul of the DXF plug-in (import and export)
* with the help of libEMF dia now can write EMF on Linux(x86), too.
* new database table relation shapes
* a huge step forward regarding properties of grouped objects
......
......@@ -540,7 +540,13 @@ modify_motion(ModifyTool *tool, GdkEventMotion *event,
GtkStatusbar *statusbar = GTK_STATUSBAR (ddisp->modified_status);
guint context_id = gtk_statusbar_get_context_id (statusbar, "ObjectPos");
postext = g_strdup_printf("%.3f, %.3f", to.x, to.y);
if (tool->object) { /* play safe */
real w = tool->object->bounding_box.right - tool->object->bounding_box.left;
real h = tool->object->bounding_box.bottom - tool->object->bounding_box.top;
postext = g_strdup_printf("%.3f, %.3f (%.3fx%.3f)", to.x, to.y, w, h);
} else {
postext = g_strdup_printf("%.3f, %.3f", to.x, to.y);
}
gtk_statusbar_pop (statusbar, context_id);
gtk_statusbar_push (statusbar, context_id, postext);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment