398 |
|
|
399 |
/* edit tags of currently selected node or way or of the relation */ |
/* edit tags of currently selected node or way or of the relation */ |
400 |
/* given */ |
/* given */ |
401 |
void info_dialog(GtkWidget *parent, appdata_t *appdata, relation_t *relation) { |
gboolean info_dialog(GtkWidget *parent, appdata_t *appdata, relation_t *relation) { |
402 |
if(!relation) |
if(!relation) |
403 |
g_assert(appdata->map->selected.type != MAP_TYPE_ILLEGAL); |
g_assert(appdata->map->selected.type != MAP_TYPE_ILLEGAL); |
404 |
|
|
559 |
/* ----------------------------------- */ |
/* ----------------------------------- */ |
560 |
|
|
561 |
gtk_widget_show_all(context->dialog); |
gtk_widget_show_all(context->dialog); |
562 |
|
gboolean ok = FALSE; |
563 |
|
|
564 |
if(gtk_dialog_run(GTK_DIALOG(context->dialog)) == GTK_RESPONSE_ACCEPT) { |
if(gtk_dialog_run(GTK_DIALOG(context->dialog)) == GTK_RESPONSE_ACCEPT) { |
565 |
|
ok = TRUE; |
566 |
|
|
567 |
gtk_widget_destroy(context->dialog); |
gtk_widget_destroy(context->dialog); |
568 |
|
|
569 |
if(!relation) { |
if(!relation) { |
599 |
} |
} |
600 |
|
|
601 |
g_free(context); |
g_free(context); |
602 |
|
return ok; |
603 |
} |
} |