diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-02-03 00:40:56 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-02-03 00:40:56 +0000 |
commit | 6c935950b2ca743f59bc99a0ae43a45b6ec2e303 (patch) | |
tree | 1e15ca112078b860f928c8191dee83ba1f2c1587 /gtk/gtkcellrenderertoggle.c | |
parent | 01440e457e1048196a412d786b4cce4f238002a2 (diff) | |
download | gtk+-6c935950b2ca743f59bc99a0ae43a45b6ec2e303.tar.gz |
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.
Diffstat (limited to 'gtk/gtkcellrenderertoggle.c')
-rw-r--r-- | gtk/gtkcellrenderertoggle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkcellrenderertoggle.c b/gtk/gtkcellrenderertoggle.c index 4db089e992..efce7708be 100644 --- a/gtk/gtkcellrenderertoggle.c +++ b/gtk/gtkcellrenderertoggle.c @@ -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); |