Diff of /trunk/src/custom_size_renderer.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1 by harbaum, Sat Jun 20 11:08:47 2009 UTC revision 185 by harbaum, Sat Nov 14 16:55:33 2009 UTC
# Line 257  custom_cell_renderer_size_get_size (GtkC Line 257  custom_cell_renderer_size_get_size (GtkC
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);
# Line 327  custom_cell_renderer_size_render (GtkCel Line 327  custom_cell_renderer_size_render (GtkCel
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);

Legend:
Removed from v.1  
changed lines
  Added in v.185