mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
window: Remove meta_window_resize
It's unused, and it's a poor API. resize_with_gravity and resize_frame are better.
This commit is contained in:
parent
92e9f3d467
commit
6c37f6e601
@ -550,10 +550,6 @@ void meta_window_move (MetaWindow *window,
|
|||||||
gboolean user_op,
|
gboolean user_op,
|
||||||
int root_x_nw,
|
int root_x_nw,
|
||||||
int root_y_nw);
|
int root_y_nw);
|
||||||
void meta_window_resize (MetaWindow *window,
|
|
||||||
gboolean user_op,
|
|
||||||
int w,
|
|
||||||
int h);
|
|
||||||
void meta_window_move_resize (MetaWindow *window,
|
void meta_window_move_resize (MetaWindow *window,
|
||||||
gboolean user_op,
|
gboolean user_op,
|
||||||
int root_x_nw,
|
int root_x_nw,
|
||||||
|
@ -3748,34 +3748,6 @@ meta_window_move_resize_internal (MetaWindow *window,
|
|||||||
window->screen->active_workspace);
|
window->screen->active_workspace);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* meta_window_resize:
|
|
||||||
* @window: a #MetaWindow
|
|
||||||
* @user_op: bool to indicate whether or not this is a user operation
|
|
||||||
* @w: desired width
|
|
||||||
* @h: desired height
|
|
||||||
*
|
|
||||||
* Resize the window to the desired size.
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
meta_window_resize (MetaWindow *window,
|
|
||||||
gboolean user_op,
|
|
||||||
int w,
|
|
||||||
int h)
|
|
||||||
{
|
|
||||||
MetaMoveResizeFlags flags;
|
|
||||||
MetaRectangle rect;
|
|
||||||
|
|
||||||
g_return_if_fail (!window->override_redirect);
|
|
||||||
|
|
||||||
flags = (user_op ? META_IS_USER_ACTION : 0) | META_IS_RESIZE_ACTION;
|
|
||||||
|
|
||||||
rect.width = w;
|
|
||||||
rect.height = h;
|
|
||||||
|
|
||||||
meta_window_move_resize_internal (window, flags, NorthWestGravity, rect);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* meta_window_move:
|
* meta_window_move:
|
||||||
* @window: a #MetaWindow
|
* @window: a #MetaWindow
|
||||||
|
@ -151,7 +151,6 @@ void meta_window_move(MetaWindow *window, gboolean user_op, int root_x_nw, int r
|
|||||||
void meta_window_move_frame(MetaWindow *window, gboolean user_op, int root_x_nw, int root_y_nw);
|
void meta_window_move_frame(MetaWindow *window, gboolean user_op, int root_x_nw, int root_y_nw);
|
||||||
void meta_window_move_resize_frame (MetaWindow *window, gboolean user_op, int root_x_nw, int root_y_nw, int w, int h);
|
void meta_window_move_resize_frame (MetaWindow *window, gboolean user_op, int root_x_nw, int root_y_nw, int w, int h);
|
||||||
void meta_window_move_to_monitor (MetaWindow *window, int monitor);
|
void meta_window_move_to_monitor (MetaWindow *window, int monitor);
|
||||||
void meta_window_resize(MetaWindow *window, gboolean user_op, int w, int h);
|
|
||||||
|
|
||||||
void meta_window_set_demands_attention (MetaWindow *window);
|
void meta_window_set_demands_attention (MetaWindow *window);
|
||||||
void meta_window_unset_demands_attention (MetaWindow *window);
|
void meta_window_unset_demands_attention (MetaWindow *window);
|
||||||
|
Loading…
Reference in New Issue
Block a user