mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
reorder declarations so we don't break C89 compilers. Closes #518917.
2008-02-26 Jens Granseuer <jensgr@gmx.net> * src/core/constraints.c (constrain_aspect_ratio, constrain_size_limits, constrain_size_increments): reorder declarations so we don't break C89 compilers. Closes #518917. svn path=/trunk/; revision=3605
This commit is contained in:
parent
3d4adc8be9
commit
401b716cf5
@ -1,3 +1,10 @@
|
|||||||
|
2008-02-26 Jens Granseuer <jensgr@gmx.net>
|
||||||
|
|
||||||
|
* src/core/constraints.c (constrain_aspect_ratio,
|
||||||
|
constrain_size_limits, constrain_size_increments):
|
||||||
|
reorder declarations so we don't break C89 compilers.
|
||||||
|
Closes #518917.
|
||||||
|
|
||||||
2008-02-26 Thomas Thurman <tthurman@gnome.org>
|
2008-02-26 Thomas Thurman <tthurman@gnome.org>
|
||||||
|
|
||||||
* configure.in: Post-release bump to 2.23.1.
|
* configure.in: Post-release bump to 2.23.1.
|
||||||
|
@ -811,6 +811,7 @@ constrain_size_increments (MetaWindow *window,
|
|||||||
int bh, hi, bw, wi, extra_height, extra_width;
|
int bh, hi, bw, wi, extra_height, extra_width;
|
||||||
int new_width, new_height;
|
int new_width, new_height;
|
||||||
gboolean constraint_already_satisfied;
|
gboolean constraint_already_satisfied;
|
||||||
|
MetaRectangle *start_rect;
|
||||||
|
|
||||||
if (priority > PRIORITY_SIZE_HINTS_INCREMENTS)
|
if (priority > PRIORITY_SIZE_HINTS_INCREMENTS)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@ -855,7 +856,6 @@ constrain_size_increments (MetaWindow *window,
|
|||||||
/* Figure out what original rect to pass to meta_rectangle_resize_with_gravity
|
/* Figure out what original rect to pass to meta_rectangle_resize_with_gravity
|
||||||
* See bug 448183
|
* See bug 448183
|
||||||
*/
|
*/
|
||||||
MetaRectangle *start_rect;
|
|
||||||
if (info->action_type == ACTION_MOVE_AND_RESIZE)
|
if (info->action_type == ACTION_MOVE_AND_RESIZE)
|
||||||
start_rect = &info->current;
|
start_rect = &info->current;
|
||||||
else
|
else
|
||||||
@ -879,6 +879,7 @@ constrain_size_limits (MetaWindow *window,
|
|||||||
MetaRectangle min_size, max_size;
|
MetaRectangle min_size, max_size;
|
||||||
gboolean too_big, too_small, constraint_already_satisfied;
|
gboolean too_big, too_small, constraint_already_satisfied;
|
||||||
int new_width, new_height;
|
int new_width, new_height;
|
||||||
|
MetaRectangle *start_rect;
|
||||||
|
|
||||||
if (priority > PRIORITY_SIZE_HINTS_LIMITS)
|
if (priority > PRIORITY_SIZE_HINTS_LIMITS)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@ -911,7 +912,6 @@ constrain_size_limits (MetaWindow *window,
|
|||||||
/* Figure out what original rect to pass to meta_rectangle_resize_with_gravity
|
/* Figure out what original rect to pass to meta_rectangle_resize_with_gravity
|
||||||
* See bug 448183
|
* See bug 448183
|
||||||
*/
|
*/
|
||||||
MetaRectangle *start_rect;
|
|
||||||
if (info->action_type == ACTION_MOVE_AND_RESIZE)
|
if (info->action_type == ACTION_MOVE_AND_RESIZE)
|
||||||
start_rect = &info->current;
|
start_rect = &info->current;
|
||||||
else
|
else
|
||||||
@ -936,6 +936,7 @@ constrain_aspect_ratio (MetaWindow *window,
|
|||||||
int fudge, new_width, new_height;
|
int fudge, new_width, new_height;
|
||||||
double best_width, best_height;
|
double best_width, best_height;
|
||||||
double alt_width, alt_height;
|
double alt_width, alt_height;
|
||||||
|
MetaRectangle *start_rect;
|
||||||
|
|
||||||
if (priority > PRIORITY_ASPECT_RATIO)
|
if (priority > PRIORITY_ASPECT_RATIO)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@ -1044,7 +1045,6 @@ constrain_aspect_ratio (MetaWindow *window,
|
|||||||
/* Figure out what original rect to pass to meta_rectangle_resize_with_gravity
|
/* Figure out what original rect to pass to meta_rectangle_resize_with_gravity
|
||||||
* See bug 448183
|
* See bug 448183
|
||||||
*/
|
*/
|
||||||
MetaRectangle *start_rect;
|
|
||||||
if (info->action_type == ACTION_MOVE_AND_RESIZE)
|
if (info->action_type == ACTION_MOVE_AND_RESIZE)
|
||||||
start_rect = &info->current;
|
start_rect = &info->current;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user