Draw the buttons right before the "overlay" piece.
2002-06-12 Havoc Pennington <hp@redhat.com> * src/theme.c (meta_frame_style_draw): Draw the buttons right before the "overlay" piece.
This commit is contained in:
parent
e0e6dab50f
commit
d7cac40332
@ -1,3 +1,8 @@
|
|||||||
|
2002-06-12 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* src/theme.c (meta_frame_style_draw): Draw the buttons right
|
||||||
|
before the "overlay" piece.
|
||||||
|
|
||||||
2002-06-12 Jayaraj Rajappan <jayaraj.rajappan@wipro.com>
|
2002-06-12 Jayaraj Rajappan <jayaraj.rajappan@wipro.com>
|
||||||
|
|
||||||
* src/tools/metacity-properties.glade: accessibility work for
|
* src/tools/metacity-properties.glade: accessibility work for
|
||||||
|
23
src/theme.c
23
src/theme.c
@ -3621,7 +3621,7 @@ meta_frame_style_draw (MetaFrameStyle *style,
|
|||||||
GdkPixbuf *mini_icon,
|
GdkPixbuf *mini_icon,
|
||||||
GdkPixbuf *icon)
|
GdkPixbuf *icon)
|
||||||
{
|
{
|
||||||
int i;
|
int i, j;
|
||||||
GdkRectangle titlebar_rect;
|
GdkRectangle titlebar_rect;
|
||||||
GdkRectangle left_titlebar_edge;
|
GdkRectangle left_titlebar_edge;
|
||||||
GdkRectangle right_titlebar_edge;
|
GdkRectangle right_titlebar_edge;
|
||||||
@ -3786,17 +3786,14 @@ meta_frame_style_draw (MetaFrameStyle *style,
|
|||||||
rect.x, rect.y, rect.width, rect.height);
|
rect.x, rect.y, rect.width, rect.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
++i;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Now we draw buttons */
|
/* Draw buttons just before overlay */
|
||||||
i = 0;
|
if ((i + 1) == META_FRAME_PIECE_OVERLAY)
|
||||||
while (i < META_BUTTON_TYPE_LAST)
|
|
||||||
{
|
{
|
||||||
GdkRectangle rect;
|
j = 0;
|
||||||
GdkRectangle combined_clip;
|
while (j < META_BUTTON_TYPE_LAST)
|
||||||
|
{
|
||||||
button_rect (i, fgeom, &rect);
|
button_rect (j, fgeom, &rect);
|
||||||
|
|
||||||
rect.x += x_offset;
|
rect.x += x_offset;
|
||||||
rect.y += y_offset;
|
rect.y += y_offset;
|
||||||
@ -3812,7 +3809,7 @@ meta_frame_style_draw (MetaFrameStyle *style,
|
|||||||
{
|
{
|
||||||
MetaDrawOpList *op_list;
|
MetaDrawOpList *op_list;
|
||||||
|
|
||||||
op_list = get_button (style, i, button_states[i]);
|
op_list = get_button (style, j, button_states[j]);
|
||||||
|
|
||||||
if (op_list)
|
if (op_list)
|
||||||
meta_draw_op_list_draw (op_list,
|
meta_draw_op_list_draw (op_list,
|
||||||
@ -3823,6 +3820,10 @@ meta_frame_style_draw (MetaFrameStyle *style,
|
|||||||
rect.x, rect.y, rect.width, rect.height);
|
rect.x, rect.y, rect.width, rect.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
++j;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user