예제 #1
0
파일: textobj.c 프로젝트: GNOME/dia
static ObjectChange*
textobj_move_handle(Textobj *textobj, Handle *handle,
		    Point *to, ConnectionPoint *cp,
		    HandleMoveReason reason, ModifierKeys modifiers)
{
  assert(textobj!=NULL);
  assert(handle!=NULL);
  assert(to!=NULL);

  if (handle->id == HANDLE_TEXT) {
    textobj_move(textobj, to);
  }

  return NULL;
}
예제 #2
0
파일: textobj.c 프로젝트: jbohren-forks/dia
static ObjectChange*
textobj_move_handle(Textobj *textobj, Handle *handle,
		    Point *to, ConnectionPoint *cp,
		    HandleMoveReason reason, ModifierKeys modifiers)
{
  assert(textobj!=NULL);
  assert(handle!=NULL);
  assert(to!=NULL);

  if (handle->id == HANDLE_TEXT) {
          /*Point to2 = *to;
          point_add(&to2,&textobj->text->position);
          point_sub(&to2,&textobj->text_handle.pos);
          textobj_move(textobj, &to2);*/
          textobj_move(textobj, to);
          
  }

  return NULL;
}