summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Lindqvist <bjourne@gmail.com>2006-05-18 08:32:16 +0000
committerBjörn Lindqvist <bjornl@src.gnome.org>2006-05-18 08:32:16 +0000
commit23a5f5bb587592bfa23e80a5e495c3cd2fc4465b (patch)
treecbdf799989609c261b4e8352c1f78daad9df3487
parent78826fd35c9bc4cc0b6e2656d71e428b0e1d61be (diff)
downloadmetacity-23a5f5bb587592bfa23e80a5e495c3cd2fc4465b.tar.gz
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.
-rw-r--r--ChangeLog8
-rw-r--r--src/resizepopup.c30
-rw-r--r--src/resizepopup.h9
-rw-r--r--src/window.c24
4 files changed, 11 insertions, 60 deletions
diff --git a/ChangeLog b/ChangeLog
index da740767..ee9ec5bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/src/resizepopup.c b/src/resizepopup.c
index 28303c38..b2e95528 100644
--- a/src/resizepopup.c
+++ b/src/resizepopup.c
@@ -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;
diff --git a/src/resizepopup.h b/src/resizepopup.h
index 97c35ab9..a7206798 100644
--- a/src/resizepopup.h
+++ b/src/resizepopup.h
@@ -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);
diff --git a/src/window.c b/src/window.c
index 368734ca..ba6981a3 100644
--- a/src/window.c
+++ b/src/window.c
@@ -7227,23 +7227,8 @@ 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)
{
rect = window->display->grab_wireframe_rect;
@@ -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);