257 |
gint calc_height = (gint) gdk_pixbuf_get_height(pixbuf); |
gint calc_height = (gint) gdk_pixbuf_get_height(pixbuf); |
258 |
|
|
259 |
/* do the text */ |
/* do the text */ |
260 |
PangoLayout *layout = new_layout(widget, size_str[cellsize->size]); |
PangoLayout *layout = new_layout(widget, _(size_str[cellsize->size])); |
261 |
|
|
262 |
PangoRectangle rect; |
PangoRectangle rect; |
263 |
pango_layout_get_pixel_extents(layout, NULL, &rect); |
pango_layout_get_pixel_extents(layout, NULL, &rect); |
327 |
return; |
return; |
328 |
|
|
329 |
/* do the text */ |
/* do the text */ |
330 |
PangoLayout *layout = new_layout(widget, size_str[cellsize->size]); |
PangoLayout *layout = new_layout(widget, _(size_str[cellsize->size])); |
331 |
PangoRectangle rect; |
PangoRectangle rect; |
332 |
pango_layout_get_pixel_extents(layout, NULL, &rect); |
pango_layout_get_pixel_extents(layout, NULL, &rect); |
333 |
// printf("cell width = %d, text width = %d\n", all_rect.width, rect.width); |
// printf("cell width = %d, text width = %d\n", all_rect.width, rect.width); |