Diff of /trunk/src/cache.c

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

revision 177 by harbaum, Wed Nov 11 20:21:55 2009 UTC revision 178 by harbaum, Thu Nov 12 19:58:26 2009 UTC
# Line 19  Line 19 
19    
20  #include "gpxview.h"  #include "gpxview.h"
21  #include <math.h>  #include <math.h>
22    #include <string.h>
23    
24  static GtkWidget *cache_description(appdata_t *appdata, cache_t *cache) {  static GtkWidget *cache_description(appdata_t *appdata, cache_t *cache) {
25    return html_view(appdata, cache->long_description,    return html_view(appdata, cache->long_description,
# Line 512  static GtkWidget *cache_tbs(appdata_t *a Line 513  static GtkWidget *cache_tbs(appdata_t *a
513      static const char *tb_type = "track/details.aspx";      static const char *tb_type = "track/details.aspx";
514    
515      /* --------------------- icon/ref/name -------------------------*/      /* --------------------- icon/ref/name -------------------------*/
516      gtk_table_attach_defaults(GTK_TABLE(table), icon_get_widget(ICON_TB, 0),      GtkWidget *icon = NULL;
517                                0, 1, tb_row+0, tb_row+1);      if(strcasestr(tb->name, "coin") != 0)
518          icon = icon_get_widget(ICON_TB, 1);   /* coin icon */
519        else
520          icon = icon_get_widget(ICON_TB, 0);   /* tb icon */
521    
522        gtk_table_attach_defaults(GTK_TABLE(table), icon,
523                                  0, 1, tb_row+0, tb_row+1);
524    
525      if(tb->ref) {      if(tb->ref) {
526        GtkWidget *ref = link_button_by_id(appdata, tb->ref, tb_type, tb->id);        GtkWidget *ref = link_button_by_id(appdata, tb->ref, tb_type, tb->id);

Legend:
Removed from v.177  
changed lines
  Added in v.178