diff options
author | Gerald Combs <gerald@wireshark.org> | 2007-11-20 18:35:41 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2007-11-20 18:35:41 +0000 |
commit | dfb104544f3eba323167b74a8fbe058455cc2a70 (patch) | |
tree | 21d6af3d6c0084f57dd12c90a7e32993219ba300 /gtk/dlg_utils.c | |
parent | 06f0070947a21f5f261210d134f0182b19fe1734 (diff) | |
download | wireshark-dfb104544f3eba323167b74a8fbe058455cc2a70.tar.gz wireshark-dfb104544f3eba323167b74a8fbe058455cc2a70.tar.bz2 wireshark-dfb104544f3eba323167b74a8fbe058455cc2a70.zip |
Add relative start time, duration, and average data rate (bps) columns
to the conversation lists. Move the "copy" button down to the button bar
in order to free up some real estate. Add an nstime_cmp() function. Clean
up code in a few places.
svn path=/trunk/; revision=23516
Diffstat (limited to 'gtk/dlg_utils.c')
-rw-r--r-- | gtk/dlg_utils.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/gtk/dlg_utils.c b/gtk/dlg_utils.c index bb6d137fde..d2455c030e 100644 --- a/gtk/dlg_utils.c +++ b/gtk/dlg_utils.c @@ -106,25 +106,26 @@ dlg_button_row_new(const gchar *stock_id_first, ...) GtkWidget *help_hbox; GtkWidget *button; - const gchar *ok = NULL; const gchar *apply = NULL; - const gchar *save = NULL; - const gchar *dont_save = NULL; const gchar *cancel = NULL; - const gchar *close = NULL; - const gchar *clear = NULL; const gchar *cap_start = NULL; const gchar *cap_stop = NULL; - const gchar *stop = NULL; + const gchar *clear = NULL; + const gchar *close = NULL; + const gchar *copy = NULL; const gchar *create_stat = NULL; - const gchar *help = NULL; - const gchar *print = NULL; + const gchar *delete = NULL; + const gchar *dont_save = NULL; + const gchar *filter_stream= NULL; const gchar *find = NULL; + const gchar *help = NULL; const gchar *jump = NULL; - const gchar *yes = NULL; const gchar *no = NULL; - const gchar *filter_stream= NULL; - const gchar *delete = NULL; + const gchar *ok = NULL; + const gchar *print = NULL; + const gchar *save = NULL; + const gchar *stop = NULL; + const gchar *yes = NULL; va_start(stock_id_list, stock_id_first); @@ -171,6 +172,8 @@ dlg_button_row_new(const gchar *stock_id_first, ...) filter_stream = stock_id; } else if (strcmp(stock_id, GTK_STOCK_DELETE) == 0) { delete = stock_id; + } else if (strcmp(stock_id, GTK_STOCK_COPY) == 0) { + copy = stock_id; } else { /* we don't know that button! */ g_assert_not_reached(); @@ -336,6 +339,7 @@ dlg_button_row_new(const gchar *stock_id_first, ...) if (jump != NULL) dlg_button_new(hbox, button_hbox, jump); if (find != NULL) dlg_button_new(hbox, button_hbox, find); if (print != NULL) dlg_button_new(hbox, button_hbox, print); + if (copy != NULL) dlg_button_new(hbox, button_hbox, copy); if (create_stat != NULL) dlg_button_new(hbox, button_hbox, create_stat); if (apply != NULL) dlg_button_new(hbox, button_hbox, apply); if (yes != NULL) dlg_button_new(hbox, button_hbox, yes); |