Fix setting of new time format.
svn path=/trunk/; revision=29212
This commit is contained in:
parent
2a80b47ce4
commit
e464a9bef9
7
file.h
7
file.h
|
@ -285,6 +285,13 @@ cf_read_status_t cf_retap_packets(capture_file *cf);
|
||||||
*/
|
*/
|
||||||
void cf_change_time_formats(capture_file *cf);
|
void cf_change_time_formats(capture_file *cf);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adjust timestamp precision if auto is selected.
|
||||||
|
*
|
||||||
|
* @param cf the capture file
|
||||||
|
*/
|
||||||
|
void cf_timestamp_auto_precision(capture_file *cf);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Print the capture file.
|
* Print the capture file.
|
||||||
*
|
*
|
||||||
|
|
|
@ -2017,7 +2017,13 @@ timestamp_format_cb(GtkWidget *w _U_, gpointer d _U_, gint action)
|
||||||
if (recent.gui_time_format != action) {
|
if (recent.gui_time_format != action) {
|
||||||
timestamp_set_type(action);
|
timestamp_set_type(action);
|
||||||
recent.gui_time_format = action;
|
recent.gui_time_format = action;
|
||||||
|
#ifdef NEW_PACKET_LIST
|
||||||
|
cf_timestamp_auto_precision(&cfile);
|
||||||
|
/* XXX Width should be adjusted */
|
||||||
|
new_packet_list_queue_draw();
|
||||||
|
#else
|
||||||
cf_change_time_formats(&cfile);
|
cf_change_time_formats(&cfile);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -435,4 +435,10 @@ new_packet_list_enable_color(gboolean enable)
|
||||||
gtk_widget_queue_draw (packetlist->view);
|
gtk_widget_queue_draw (packetlist->view);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
new_packet_list_queue_draw(void)
|
||||||
|
{
|
||||||
|
gtk_widget_queue_draw (packetlist->view);
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* NEW_PACKET_LIST */
|
#endif /* NEW_PACKET_LIST */
|
||||||
|
|
|
@ -67,6 +67,7 @@ void new_packet_list_prev(void);
|
||||||
guint new_packet_list_append(column_info *cinfo, frame_data *fdata);
|
guint new_packet_list_append(column_info *cinfo, frame_data *fdata);
|
||||||
frame_data * new_packet_list_get_row_data(gint row);
|
frame_data * new_packet_list_get_row_data(gint row);
|
||||||
void new_packet_list_enable_color(gboolean enable);
|
void new_packet_list_enable_color(gboolean enable);
|
||||||
|
void new_packet_list_queue_draw(void);
|
||||||
void new_packet_list_select_first_row(void);
|
void new_packet_list_select_first_row(void);
|
||||||
void new_packet_list_select_last_row(void);
|
void new_packet_list_select_last_row(void);
|
||||||
gint new_packet_list_find_row_from_data(gpointer data, gboolean select);
|
gint new_packet_list_find_row_from_data(gpointer data, gboolean select);
|
||||||
|
|
Loading…
Reference in New Issue