Fix check/radio indicator drawing mess (bug #452225):
2007-07-27 Michael Natterer <mitch@imendio.com> Fix check/radio indicator drawing mess (bug #452225): * gtk/gtkstyle.c (gtk_default_draw_check): really decrease the indicator size by one to ensure odd size (don't say -= -1). * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): removed -1 adjustment from calls to gtk_paint_option(). Theme engines now get the actually configured size passed, not one pixel less. * gtk/gtkcellrenderertoggle.c * gtk/gtkcheckmenuitem.c: changed default indicator size from 12 to 13 so all widgets which draw check/option indicators have the same default size now (and render the same size after above changes). * README.in: mention above changes in the release notes. svn path=/trunk/; revision=18547
This commit is contained in:
committed by
Michael Natterer
parent
c919e2183d
commit
3c9a4ac633
@ -71,7 +71,7 @@ enum {
|
||||
PROP_INDICATOR_SIZE
|
||||
};
|
||||
|
||||
#define TOGGLE_WIDTH 12
|
||||
#define TOGGLE_WIDTH 13
|
||||
|
||||
static guint toggle_cell_signals[LAST_SIGNAL] = { 0 };
|
||||
|
||||
@ -376,7 +376,7 @@ gtk_cell_renderer_toggle_render (GtkCellRenderer *cell,
|
||||
expose_area, widget, "cellradio",
|
||||
cell_area->x + x_offset + cell->xpad,
|
||||
cell_area->y + y_offset + cell->ypad,
|
||||
width - 1, height - 1);
|
||||
width, height);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -386,7 +386,7 @@ gtk_cell_renderer_toggle_render (GtkCellRenderer *cell,
|
||||
expose_area, widget, "cellcheck",
|
||||
cell_area->x + x_offset + cell->xpad,
|
||||
cell_area->y + y_offset + cell->ypad,
|
||||
width - 1, height - 1);
|
||||
width, height);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user