Diff of /trunk/src/info.c

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

revision 51 by harbaum, Wed Jan 21 20:01:18 2009 UTC revision 52 by harbaum, Fri Feb 6 08:14:09 2009 UTC
# Line 419  void info_dialog(GtkWidget *parent, appd Line 419  void info_dialog(GtkWidget *parent, appd
419        work_copy = osm_tags_copy(appdata->map->selected.node->tag, FALSE);        work_copy = osm_tags_copy(appdata->map->selected.node->tag, FALSE);
420        stime = appdata->map->selected.node->time;        stime = appdata->map->selected.node->time;
421        context->type = NODE;        context->type = NODE;
422          context->presets_type = PRESETS_TYPE_NODE;
423        break;        break;
424      case MAP_TYPE_WAY:      case MAP_TYPE_WAY:
425        str = g_strdup_printf(_("Way #%ld"), appdata->map->selected.way->id);        str = g_strdup_printf(_("Way #%ld"), appdata->map->selected.way->id);
# Line 426  void info_dialog(GtkWidget *parent, appd Line 427  void info_dialog(GtkWidget *parent, appd
427        work_copy = osm_tags_copy(appdata->map->selected.way->tag, FALSE);        work_copy = osm_tags_copy(appdata->map->selected.way->tag, FALSE);
428        stime = appdata->map->selected.way->time;        stime = appdata->map->selected.way->time;
429        context->type = WAY;        context->type = WAY;
430          context->presets_type = PRESETS_TYPE_WAY;
431    
432          if(osm_way_get_last_node(appdata->map->selected.way) ==
433             osm_way_get_first_node(appdata->map->selected.way))
434            context->presets_type |= PRESETS_TYPE_CLOSEDWAY;
435    
436        break;        break;
437      default:      default:
438        g_assert((appdata->map->selected.type == MAP_TYPE_NODE) ||        g_assert((appdata->map->selected.type == MAP_TYPE_NODE) ||
# Line 438  void info_dialog(GtkWidget *parent, appd Line 445  void info_dialog(GtkWidget *parent, appd
445      work_copy = osm_tags_copy(relation->tag, FALSE);      work_copy = osm_tags_copy(relation->tag, FALSE);
446      stime = relation->time;      stime = relation->time;
447      context->type = RELATION;      context->type = RELATION;
448        context->presets_type = PRESETS_TYPE_RELATION;
449    }    }
450    
451    context->dialog = gtk_dialog_new_with_buttons(str,    context->dialog = gtk_dialog_new_with_buttons(str,

Legend:
Removed from v.51  
changed lines
  Added in v.52