summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2014-09-27 23:44:41 +0200
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2015-01-19 05:08:37 +0200
commit2479ee8e0c03b228ea9affe2fefc99d5484525e4 (patch)
tree639d36c3c1b3dcdf1b30f556da0ef465ab04f9b6
parentba8500663457ad9f18ebfdf405162c2cb5caf88f (diff)
downloadmetacity-2479ee8e0c03b228ea9affe2fefc99d5484525e4.tar.gz
theme: Rename button_rect() to get_button_rect()
Basically it's odd to have "button_rect" be a function with all the foo_rect GdkRectangles around - renaming to get_button_rect() will free the name for the generically named "rect" once buttons are the only movable pieces in the frame. https://bugzilla.gnome.org/show_bug.cgi?id=741917
-rw-r--r--src/ui/theme.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c
index c61ffbeb..64f136f9 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -4461,10 +4461,10 @@ meta_frame_style_validate (MetaFrameStyle *style,
}
static void
-button_rect (MetaButtonType type,
- const MetaFrameGeometry *fgeom,
- int middle_background_offset,
- GdkRectangle *rect)
+get_button_rect (MetaButtonType type,
+ const MetaFrameGeometry *fgeom,
+ int middle_background_offset,
+ GdkRectangle *rect)
{
switch (type)
{
@@ -4739,7 +4739,7 @@ meta_frame_style_draw_with_style (MetaFrameStyle *style,
{
MetaButtonState button_state;
- button_rect (j, fgeom, middle_bg_offset, &rect);
+ get_button_rect (j, fgeom, middle_bg_offset, &rect);
button_state = map_button_state (j, fgeom, middle_bg_offset, button_states);
op_list = get_button (style, j, button_state);