mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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
|
||||||
|
71
src/theme.c
71
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,43 +3786,44 @@ 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;
|
|
||||||
GdkRectangle combined_clip;
|
|
||||||
|
|
||||||
button_rect (i, fgeom, &rect);
|
|
||||||
|
|
||||||
rect.x += x_offset;
|
|
||||||
rect.y += y_offset;
|
|
||||||
|
|
||||||
if (clip == NULL)
|
|
||||||
combined_clip = rect;
|
|
||||||
else
|
|
||||||
gdk_rectangle_intersect ((GdkRectangle*) clip, /* const cast */
|
|
||||||
&rect,
|
|
||||||
&combined_clip);
|
|
||||||
|
|
||||||
if (combined_clip.width > 0 && combined_clip.height > 0)
|
|
||||||
{
|
{
|
||||||
MetaDrawOpList *op_list;
|
j = 0;
|
||||||
|
while (j < META_BUTTON_TYPE_LAST)
|
||||||
op_list = get_button (style, i, button_states[i]);
|
{
|
||||||
|
button_rect (j, fgeom, &rect);
|
||||||
if (op_list)
|
|
||||||
meta_draw_op_list_draw (op_list,
|
rect.x += x_offset;
|
||||||
widget,
|
rect.y += y_offset;
|
||||||
drawable,
|
|
||||||
&combined_clip,
|
if (clip == NULL)
|
||||||
&draw_info,
|
combined_clip = rect;
|
||||||
rect.x, rect.y, rect.width, rect.height);
|
else
|
||||||
|
gdk_rectangle_intersect ((GdkRectangle*) clip, /* const cast */
|
||||||
|
&rect,
|
||||||
|
&combined_clip);
|
||||||
|
|
||||||
|
if (combined_clip.width > 0 && combined_clip.height > 0)
|
||||||
|
{
|
||||||
|
MetaDrawOpList *op_list;
|
||||||
|
|
||||||
|
op_list = get_button (style, j, button_states[j]);
|
||||||
|
|
||||||
|
if (op_list)
|
||||||
|
meta_draw_op_list_draw (op_list,
|
||||||
|
widget,
|
||||||
|
drawable,
|
||||||
|
&combined_clip,
|
||||||
|
&draw_info,
|
||||||
|
rect.x, rect.y, rect.width, rect.height);
|
||||||
|
}
|
||||||
|
|
||||||
|
++j;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user