mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
Patch from Maik Beckmann to remove compilation warnings. Fixes #355876.
2006-09-18 Elijah Newren <newren gmail com> * src/spring-model.c (on_end_move, model_is_calm): Patch from Maik Beckmann to remove compilation warnings. Fixes #355876.
This commit is contained in:
parent
def5a12ff0
commit
87100b64d9
@ -1,3 +1,8 @@
|
||||
2006-09-18 Elijah Newren <newren gmail com>
|
||||
|
||||
* src/spring-model.c (on_end_move, model_is_calm): Patch from Maik
|
||||
Beckmann to remove compilation warnings. Fixes #355876.
|
||||
|
||||
2006-09-18 Elijah Newren <newren gmail com>
|
||||
|
||||
* configure.in: Make detection of stable vs. unstable automatic
|
||||
|
@ -362,23 +362,12 @@ model_update_move (Model *model, int x, int y)
|
||||
model->anchor_object->position.y = y - model->anchor_offset.y;
|
||||
}
|
||||
|
||||
static void
|
||||
on_end_move (Model *model)
|
||||
{
|
||||
if (model->anchor_object)
|
||||
{
|
||||
model->anchor_object->immobile = 0;
|
||||
model->anchor_object = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
#define EPSILON 0.02
|
||||
|
||||
gboolean
|
||||
model_is_calm (Model *model)
|
||||
{
|
||||
int i, j;
|
||||
gboolean calm = TRUE;
|
||||
int i;
|
||||
|
||||
for (i = 0; i < model->num_objects; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user