diff options
author | Jonathan Blandford <jrb@webwynk.net> | 2001-03-20 20:01:27 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2001-03-20 20:01:27 +0000 |
commit | 70c0fa3a833788c66360b17915a41eee40396f64 (patch) | |
tree | 4ddff18c36daef04d4256447ada98625719a70cf /gtk/gtkcellrenderertoggle.c | |
parent | 73e9d113a797c28a08a9a9a4ebefaaefb29e098d (diff) | |
download | gtk+-70c0fa3a833788c66360b17915a41eee40396f64.tar.gz |
Fix buglet in meeting.
Tue Mar 20 15:00:43 2001 Jonathan Blandford <jrb@webwynk.net>
* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
Fix buglet in meeting.
Diffstat (limited to 'gtk/gtkcellrenderertoggle.c')
-rw-r--r-- | gtk/gtkcellrenderertoggle.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkcellrenderertoggle.c b/gtk/gtkcellrenderertoggle.c index 1649021574..205b064472 100644 --- a/gtk/gtkcellrenderertoggle.c +++ b/gtk/gtkcellrenderertoggle.c @@ -236,7 +236,8 @@ gtk_cell_renderer_toggle_get_size (GtkCellRenderer *cell, if (height) *height = calc_height; - + if (width && height) + g_print ("Checking width/height %d %d\n", *width, *height); if (cell_area) { if (x_offset) @@ -267,12 +268,11 @@ gtk_cell_renderer_toggle_render (GtkCellRenderer *cell, GtkShadowType shadow; GtkStateType state; - width = MIN (TOGGLE_WIDTH, cell_area->width - cell->xpad * 2); - height = MIN (TOGGLE_WIDTH, cell_area->height - cell->ypad * 2); - gtk_cell_renderer_toggle_get_size (cell, widget, cell_area, &x_offset, &y_offset, &width, &height); + width -= cell->xpad*2; + height -= cell->ypad*2; if (width <= 0 || height <= 0) return; |