diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-04-19 21:02:01 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-04-19 21:02:01 +0000 |
commit | 9b5d52aab65358c11e5344e61e8c9a039a850e90 (patch) | |
tree | 7b05236b0d52029ec646e97ec527a0db9c123077 /gtk/dlg_utils.c | |
parent | 2078bfc8b4cbc3239df7629df6c393aaf3ee50a5 (diff) |
ask for unsaved file when using the new start capture feature,
ask for unsaved file when really starting the capture, not already when showing the options dialog,
use the start capture icon in the capture options dialog (instead of simply Ok)
svn path=/trunk/; revision=14142
Diffstat (limited to 'gtk/dlg_utils.c')
-rw-r--r-- | gtk/dlg_utils.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/dlg_utils.c b/gtk/dlg_utils.c index dbf36f2ee7..444ba93176 100644 --- a/gtk/dlg_utils.c +++ b/gtk/dlg_utils.c @@ -104,6 +104,7 @@ dlg_button_row_new(gchar *stock_id_first, ...) gchar *cancel = NULL; gchar *close = NULL; gchar *clear = NULL; + gchar *start = NULL; gchar *stop = NULL; gchar *create_stat = NULL; gchar *help = NULL; @@ -134,6 +135,8 @@ dlg_button_row_new(gchar *stock_id_first, ...) close = stock_id; } else if (strcmp(stock_id, GTK_STOCK_CLEAR) == 0) { clear = stock_id; + } else if (strcmp(stock_id, ETHEREAL_STOCK_CAPTURE_START) == 0) { + start = stock_id; } else if (strcmp(stock_id, GTK_STOCK_STOP) == 0) { stop = stock_id; } else if (strcmp(stock_id, GTK_STOCK_HELP) == 0) { @@ -239,6 +242,11 @@ dlg_button_row_new(gchar *stock_id_first, ...) dlg_button_new(hbox, button_hbox, create_stat); return hbox; } + if (start && cancel) { + dlg_button_new(hbox, button_hbox, cancel); + dlg_button_new(hbox, button_hbox, start); + return hbox; + } } if (buttons == 3) { if (ok && save && close) { @@ -301,6 +309,7 @@ dlg_button_row_new(gchar *stock_id_first, ...) if (no != NULL) dlg_button_new(hbox, button_hbox, no); if (save != NULL) dlg_button_new(hbox, button_hbox, save); if (dont_save != NULL) dlg_button_new(hbox, button_hbox, dont_save); + if (start != NULL) dlg_button_new(hbox, button_hbox, start); if (stop != NULL) dlg_button_new(hbox, button_hbox, stop); if (close != NULL) dlg_button_new(hbox, button_hbox, close); if (clear != NULL) dlg_button_new(hbox, button_hbox, clear); |