Diff of /trunk/src/cache.c

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

revision 174 by harbaum, Tue Nov 10 20:27:30 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 178  static GtkWidget *cache_overview(cache_c Line 179  static GtkWidget *cache_overview(cache_c
179    
180    if(cache->type != CACHE_TYPE_UNKNOWN) {    if(cache->type != CACHE_TYPE_UNKNOWN) {
181      gtk_table_attach(GTK_TABLE(table),      gtk_table_attach(GTK_TABLE(table),
182               tip = icon_get_widget(ICON_CACHE_TYPE_2X, cache->type), 0,1,0,1,  #if defined(USE_MAEMO) && (MAEMO_VERSION_MAJOR >= 5)
183               GTK_FILL, 0, GTK_FILL, 0);               tip = icon_get_widget(ICON_CACHE_TYPE_2X, cache->type),
184    #else
185                 tip = icon_get_widget(ICON_CACHE_TYPE_1_5X, cache->type),
186    #endif
187                         0,1,0,1, GTK_FILL, 0, GTK_FILL, 0);
188  #ifndef USE_MAEMO  #ifndef USE_MAEMO
189      gtk_tooltips_set_tip(tips, tip, _(cache_type_tip[cache->type]), NULL);      gtk_tooltips_set_tip(tips, tip, _(cache_type_tip[cache->type]), NULL);
190  #endif  #endif
# Line 508  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.174  
changed lines
  Added in v.178