Clip narrow columns in rtl-oriented tree views (#128089,
Tue Feb 3 01:38:06 2004 Matthias Clasen <maclas@gmx.de> Clip narrow columns in rtl-oriented tree views (#128089, chinen@jp.ibm.com): * gtk/gtkstyle.c (gtk_default_draw_option): * gtk/gtkstyle.c (gtk_default_draw_check): Clip to the given area. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): Use the right clip area when calling gtk_cell_renderer_render(). * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_cell_draw_focus): Use the right clip area when calling gtk_paint_focus(). * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render): Use the right clip area when calling gtk_paint_toggle() or gtk_paint_check(). * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_render): Clip to the expose_area when drawing the background rectangle.
This commit is contained in:

committed by
Matthias Clasen

parent
01440e457e
commit
6c935950b2
@ -359,7 +359,7 @@ gtk_cell_renderer_toggle_render (GtkCellRenderer *cell,
|
||||
gtk_paint_option (widget->style,
|
||||
window,
|
||||
state, shadow,
|
||||
cell_area, widget, "cellradio",
|
||||
expose_area, widget, "cellradio",
|
||||
cell_area->x + x_offset + cell->xpad,
|
||||
cell_area->y + y_offset + cell->ypad,
|
||||
width - 1, height - 1);
|
||||
@ -369,7 +369,7 @@ gtk_cell_renderer_toggle_render (GtkCellRenderer *cell,
|
||||
gtk_paint_check (widget->style,
|
||||
window,
|
||||
state, shadow,
|
||||
cell_area, widget, "cellcheck",
|
||||
expose_area, widget, "cellcheck",
|
||||
cell_area->x + x_offset + cell->xpad,
|
||||
cell_area->y + y_offset + cell->ypad,
|
||||
width - 1, height - 1);
|
||||
|
Reference in New Issue
Block a user