mirror of
https://github.com/labwc/labwc.git
synced 2026-03-17 05:33:47 -04:00
view: make view_move_to_cursor() static
This commit is contained in:
parent
3131c71acd
commit
d4ca1dfb69
3 changed files with 3 additions and 3 deletions
|
|
@ -486,7 +486,6 @@ void view_resize_relative(struct view *view,
|
|||
int left, int right, int top, int bottom);
|
||||
void view_move_relative(struct view *view, int x, int y);
|
||||
void view_move(struct view *view, int x, int y);
|
||||
void view_move_to_cursor(struct view *view);
|
||||
void view_moved(struct view *view);
|
||||
void view_minimize(struct view *view, bool minimized);
|
||||
bool view_compute_centered_position(struct view *view,
|
||||
|
|
|
|||
|
|
@ -1354,7 +1354,8 @@ run_action(struct view *view, struct server *server, struct action *action,
|
|||
"Action MoveToCursor is deprecated. To ensure your config works in future labwc "
|
||||
"releases, please use <action name=\"AutoPlace\" policy=\"cursor\">");
|
||||
if (view) {
|
||||
view_move_to_cursor(view);
|
||||
view_place_by_policy(view, /* allow_cursor */ true,
|
||||
LAB_PLACE_CURSOR);
|
||||
}
|
||||
break;
|
||||
case ACTION_TYPE_SEND_TO_DESKTOP:
|
||||
|
|
|
|||
|
|
@ -625,7 +625,7 @@ view_move_relative(struct view *view, int x, int y)
|
|||
view_move(view, view->pending.x + x, view->pending.y + y);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
view_move_to_cursor(struct view *view)
|
||||
{
|
||||
assert(view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue