Diff of /trunk/src/info.c

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

revision 72 by harbaum, Fri Feb 6 08:14:09 2009 UTC revision 73 by harbaum, Thu Feb 12 14:27:52 2009 UTC
# Line 398  static GtkWidget *tag_widget(tag_context Line 398  static GtkWidget *tag_widget(tag_context
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    
# Line 559  void info_dialog(GtkWidget *parent, appd Line 559  void info_dialog(GtkWidget *parent, appd
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) {
# Line 595  void info_dialog(GtkWidget *parent, appd Line 599  void info_dialog(GtkWidget *parent, appd
599    }    }
600    
601    g_free(context);    g_free(context);
602      return ok;
603  }  }

Legend:
Removed from v.72  
changed lines
  Added in v.73