diff options
Diffstat (limited to 'gtk/io_stat.c')
-rw-r--r-- | gtk/io_stat.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gtk/io_stat.c b/gtk/io_stat.c index 342d767644..0ce3abbeb0 100644 --- a/gtk/io_stat.c +++ b/gtk/io_stat.c @@ -1,7 +1,7 @@ /* io_stat.c * io_stat 2002 Ronnie Sahlberg * - * $Id: io_stat.c,v 1.58 2004/01/21 03:54:30 ulfl Exp $ + * $Id: io_stat.c,v 1.59 2004/01/31 03:22:41 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -546,7 +546,7 @@ io_stat_draw(io_stat_t *io) num_time_intervals+=1; /* XXX move this check to _packet() */ if(num_time_intervals>NUM_IO_ITEMS){ - simple_dialog(ESD_TYPE_WARN, NULL, "IO-Stat error. There are too many entries, bailing out"); + simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "IO-Stat error. There are too many entries, bailing out"); return; } @@ -1397,7 +1397,7 @@ filter_callback(GtkWidget *widget _U_, io_stat_graph_t *gio) field=(char *)gtk_entry_get_text(GTK_ENTRY(gio->calc_field)); /* warn and bail out if there was no field specified */ if(field==NULL || field[0]==0){ - simple_dialog(ESD_TYPE_WARN, NULL, "You did not specify a field name."); + simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, "You did not specify a field name."); disable_graph(gio); io_stat_redraw(gio->io); return 0; @@ -1405,7 +1405,7 @@ filter_callback(GtkWidget *widget _U_, io_stat_graph_t *gio) /* warn and bail out if the field could not be found */ hfi=proto_registrar_get_byname(field); if(hfi==NULL){ - simple_dialog(ESD_TYPE_WARN, NULL, "'%s' is not a valid field name.", field); + simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, "'%s' is not a valid field name.", field); disable_graph(gio); io_stat_redraw(gio->io); return 0; @@ -1424,7 +1424,7 @@ filter_callback(GtkWidget *widget _U_, io_stat_graph_t *gio) /* these values support all calculations except LOAD */ switch(gio->calc_type){ case CALC_TYPE_LOAD: - simple_dialog(ESD_TYPE_WARN, NULL, + simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, "LOAD(*) is only supported for relative-time fields."); disable_graph(gio); io_stat_redraw(gio->io); @@ -1442,7 +1442,7 @@ filter_callback(GtkWidget *widget _U_, io_stat_graph_t *gio) case CALC_TYPE_LOAD: break; default: - simple_dialog(ESD_TYPE_WARN, NULL, + simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, "%s is a relative-time field, so %s calculations are not supported on it.", field, calc_type_names[gio->calc_type]); @@ -1458,7 +1458,7 @@ filter_callback(GtkWidget *widget _U_, io_stat_graph_t *gio) * available? */ if(gio->calc_type!=CALC_TYPE_COUNT){ - simple_dialog(ESD_TYPE_WARN, NULL, + simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, "%s is a 64-bit integer, so %s calculations are not supported on it.", field, calc_type_names[gio->calc_type]); @@ -1473,7 +1473,7 @@ filter_callback(GtkWidget *widget _U_, io_stat_graph_t *gio) * numbers? */ if(gio->calc_type!=CALC_TYPE_COUNT){ - simple_dialog(ESD_TYPE_WARN, NULL, + simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, "%s doesn't have integral values, so %s calculations are not supported on it.", field, calc_type_names[gio->calc_type]); @@ -1488,7 +1488,7 @@ filter_callback(GtkWidget *widget _U_, io_stat_graph_t *gio) /* first check if the filter string is valid. */ filter=(char *)gtk_entry_get_text(GTK_ENTRY(gio->filter_field)); if(!dfilter_compile(filter, &dfilter)) { - simple_dialog(ESD_TYPE_WARN, NULL, + simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK, "Filter \"%s\" is invalid - %s", filter, dfilter_error_msg); disable_graph(gio); io_stat_redraw(gio->io); |