Diff of /trunk/src/custom_type_renderer.c

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

revision 175 by harbaum, Sat Sep 19 19:19:42 2009 UTC revision 176 by harbaum, Wed Nov 11 20:21:55 2009 UTC
# Line 225  custom_cell_renderer_type_get_size (GtkC Line 225  custom_cell_renderer_type_get_size (GtkC
225     GtkWidget *widget, GdkRectangle *cell_area, gint *x_offset,     GtkWidget *widget, GdkRectangle *cell_area, gint *x_offset,
226     gint *y_offset, gint *width, gint *height) {     gint *y_offset, gint *width, gint *height) {
227    CustomCellRendererType *celltype = CUSTOM_CELL_RENDERER_TYPE (cell);    CustomCellRendererType *celltype = CUSTOM_CELL_RENDERER_TYPE (cell);
228    #if defined(USE_MAEMO) && (MAEMO_VERSION_MAJOR >= 5)
229      GdkPixbuf *pixbuf = icon_get(ICON_CACHE_TYPE_1_5X, celltype->type>>8);
230    #else
231    GdkPixbuf *pixbuf = icon_get(ICON_CACHE_TYPE, celltype->type>>8);    GdkPixbuf *pixbuf = icon_get(ICON_CACHE_TYPE, celltype->type>>8);
232    #endif
233    
234    if(!pixbuf) return;    if(!pixbuf) return;
235    
# Line 264  custom_cell_renderer_type_render (GtkCel Line 268  custom_cell_renderer_type_render (GtkCel
268                                        guint            flags)                                        guint            flags)
269  {  {
270    CustomCellRendererType *celltype = CUSTOM_CELL_RENDERER_TYPE (cell);    CustomCellRendererType *celltype = CUSTOM_CELL_RENDERER_TYPE (cell);
271    #if defined(USE_MAEMO) && (MAEMO_VERSION_MAJOR >= 5)
272      GdkPixbuf *pixbuf = icon_get(ICON_CACHE_TYPE_1_5X, celltype->type>>8);
273    #else
274    GdkPixbuf *pixbuf = icon_get(ICON_CACHE_TYPE, celltype->type>>8);    GdkPixbuf *pixbuf = icon_get(ICON_CACHE_TYPE, celltype->type>>8);
275    #endif
276    GdkRectangle all_rect;    GdkRectangle all_rect;
277    GdkRectangle draw_rect;    GdkRectangle draw_rect;
278    

Legend:
Removed from v.175  
changed lines
  Added in v.176