Bill Skaggs <weskaggs@primate.ucdavis.edu>

* libgimpwidgets/gimpcellrenderertoggle.c: reduce horizontal
	space around buttons.

svn path=/branches/weskaggs/; revision=25015
This commit is contained in:
William Skaggs 2008-03-03 22:50:11 +00:00
parent 5f2bd66f20
commit 249ea51e64
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-03-03 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimpwidgets/gimpcellrenderertoggle.c: reduce horizontal
space around buttons.
2008-03-03 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/display/gimpdisplayshell.[ch]: when we have a scratch

View File

@ -242,8 +242,9 @@ gimp_cell_renderer_toggle_get_size (GtkCellRenderer *cell,
pixbuf_width = gdk_pixbuf_get_width (toggle->pixbuf);
pixbuf_height = gdk_pixbuf_get_height (toggle->pixbuf);
calc_width = (pixbuf_width +
(gint) cell->xpad * 2 + widget->style->xthickness * 2);
/* calc_width = (pixbuf_width + */
/* (gint) cell->xpad * 2 + widget->style->xthickness * 2); */
calc_width = pixbuf_width;
calc_height = (pixbuf_height +
(gint) cell->ypad * 2 + widget->style->ythickness * 2);
@ -419,6 +420,7 @@ gimp_cell_renderer_toggle_new (const gchar *stock_id)
{
return g_object_new (GIMP_TYPE_CELL_RENDERER_TOGGLE,
"stock_id", stock_id,
"xpad", 0,
NULL);
}