diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-02-16 04:10:06 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-02-16 04:10:06 +0000 |
commit | 09e81f90b9e9a875a8d6ed127b2dbf852a9c91f9 (patch) | |
tree | 7904716d49cf2532b8df301cc5e0764dbda76e61 /gtk/uat_gui.c | |
parent | 52bc53b8dae8c4aa2bffa9a9d830e2295afb78d2 (diff) |
Add an additional "title" attribute for UAT fields; that's what's
displayed to the user.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27462 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/uat_gui.c')
-rw-r--r-- | gtk/uat_gui.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/uat_gui.c b/gtk/uat_gui.c index 05f34be6fe..98e9fcf441 100644 --- a/gtk/uat_gui.c +++ b/gtk/uat_gui.c @@ -291,7 +291,7 @@ static gboolean uat_dlg_cb(GtkWidget *win _U_, gpointer user_data) { text = (void*) unhexbytes(text, strlen(text), &len, &err); if (err) { - err = ep_strdup_printf("error in field '%s': %s",f[colnum].name,err); + err = ep_strdup_printf("error in field '%s': %s",f[colnum].title,err); goto on_failure; } @@ -311,7 +311,7 @@ static gboolean uat_dlg_cb(GtkWidget *win _U_, gpointer user_data) { if (f[colnum].cb.chk) { if (! f[colnum].cb.chk(dd->rec, text, len, f[colnum].cbdata.chk, f[colnum].fld_data, &err)) { - err = ep_strdup_printf("error in field '%s': %s",f[colnum].name,err); + err = ep_strdup_printf("error in column '%s': %s",f[colnum].title,err); goto on_failure; } } @@ -435,7 +435,7 @@ static void uat_edit_dialog(uat_t* uat, gint row) { event_box = gtk_event_box_new(); - label = gtk_label_new(f[colnum].name); + label = gtk_label_new(f[colnum].title); if (f[colnum].desc != NULL) gtk_tooltips_set_tip(tooltips, event_box, f[colnum].desc, NULL); @@ -576,7 +576,7 @@ static void uat_del_dlg(uat_t* uat, int idx) { GtkWidget *label; char* text = fld_tostr(rec,&(f[colnum])); - label = gtk_label_new(f[colnum].name); + label = gtk_label_new(f[colnum].title); gtk_misc_set_alignment(GTK_MISC(label), 1.0, 0.5); gtk_table_attach_defaults(GTK_TABLE(main_tb), label, 0, 1, colnum+1, colnum + 2); @@ -856,7 +856,7 @@ static GtkWidget* uat_window(void* u) { gtk_box_pack_start(GTK_BOX(hbox), rep->scrolledwindow, TRUE, TRUE, 0); for ( colnum = 0; colnum < uat->ncols; colnum++ ) { - gtk_clist_set_column_title(GTK_CLIST(rep->clist), colnum, f[colnum].name); + gtk_clist_set_column_title(GTK_CLIST(rep->clist), colnum, f[colnum].title); gtk_clist_set_column_auto_resize(GTK_CLIST(rep->clist), colnum, TRUE); } |