Remove the unused attributes resize_gravity, width_inc, height_inc,

2006-05-18  Björn Lindqvist  <bjourne@gmail.com>

	* resizepopup.c: Remove the unused attributes resize_gravity,
	width_inc, height_inc, min_width, min_height, frame_left,
	frame_right, frame_top, frame_bottom, tick_origin_x, tick_origin_y
	from the MetaResizePopup struct. Delete all code that references
	those attributes.
This commit is contained in:
Björn Lindqvist 2006-05-18 08:32:16 +00:00 committed by Björn Lindqvist
parent 78826fd35c
commit 23a5f5bb58
4 changed files with 11 additions and 60 deletions

View File

@ -1,3 +1,11 @@
2006-05-18 Björn Lindqvist <bjourne@gmail.com>
* resizepopup.c: Remove the unused attributes resize_gravity,
width_inc, height_inc, min_width, min_height, frame_left,
frame_right, frame_top, frame_bottom, tick_origin_x, tick_origin_y
from the MetaResizePopup struct. Delete all code that references
those attributes.
2006-05-15 Elijah Newren <newren gmail com>
* configure.in: post-release version bump to 2.15.5

View File

@ -40,18 +40,7 @@ struct _MetaResizePopup
gboolean showing;
int resize_gravity;
MetaRectangle rect;
int width_inc;
int height_inc;
int min_width;
int min_height;
int frame_left;
int frame_right;
int frame_top;
int frame_bottom;
int tick_origin_x;
int tick_origin_y;
};
MetaResizePopup*
@ -62,7 +51,6 @@ meta_ui_resize_popup_new (Display *display,
popup = g_new0 (MetaResizePopup, 1);
popup->resize_gravity = -1;
popup->display = display;
popup->screen_number = screen_number;
@ -167,18 +155,11 @@ sync_showing (MetaResizePopup *popup)
void
meta_ui_resize_popup_set (MetaResizePopup *popup,
int resize_gravity,
MetaRectangle rect,
int base_width,
int base_height,
int min_width,
int min_height,
int width_inc,
int height_inc,
int frame_left,
int frame_right,
int frame_top,
int frame_bottom)
int height_inc)
{
gboolean need_update_size;
int display_w, display_h;
@ -200,16 +181,7 @@ meta_ui_resize_popup_set (MetaResizePopup *popup,
display_h != popup->vertical_size)
need_update_size = TRUE;
popup->resize_gravity = resize_gravity;
popup->rect = rect;
popup->min_width = min_width;
popup->min_height = min_height;
popup->width_inc = width_inc;
popup->height_inc = height_inc;
popup->frame_left = frame_left;
popup->frame_right = frame_right;
popup->frame_top = frame_top;
popup->frame_bottom = frame_bottom;
popup->vertical_size = display_h;
popup->horizontal_size = display_w;

View File

@ -33,18 +33,11 @@ MetaResizePopup* meta_ui_resize_popup_new (Display *display,
int screen_number);
void meta_ui_resize_popup_free (MetaResizePopup *popup);
void meta_ui_resize_popup_set (MetaResizePopup *popup,
int resize_gravity,
MetaRectangle rect,
int base_width,
int base_height,
int min_width,
int min_height,
int width_inc,
int height_inc,
int frame_left,
int frame_right,
int frame_top,
int frame_bottom);
int height_inc);
void meta_ui_resize_popup_set_showing (MetaResizePopup *popup,
gboolean showing);

View File

@ -7227,22 +7227,7 @@ meta_window_refresh_resize_popup (MetaWindow *window)
if (window->display->grab_resize_popup != NULL)
{
int gravity;
MetaRectangle rect;
MetaFrameGeometry fgeom;
if (window->frame)
meta_frame_calc_geometry (window->frame, &fgeom);
else
{
fgeom.left_width = 0;
fgeom.right_width = 0;
fgeom.top_height = 0;
fgeom.bottom_height = 0;
}
gravity = meta_resize_gravity_from_grab_op (window->display->grab_op);
g_assert (gravity >= 0);
if (window->display->grab_wireframe_active)
{
@ -7256,18 +7241,11 @@ meta_window_refresh_resize_popup (MetaWindow *window)
}
meta_ui_resize_popup_set (window->display->grab_resize_popup,
gravity,
rect,
window->size_hints.base_width,
window->size_hints.base_height,
window->size_hints.min_width,
window->size_hints.min_height,
window->size_hints.width_inc,
window->size_hints.height_inc,
fgeom.left_width,
fgeom.right_width,
fgeom.top_height,
fgeom.bottom_height);
window->size_hints.height_inc);
meta_ui_resize_popup_set_showing (window->display->grab_resize_popup,
TRUE);