diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-04-16 08:47:12 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-04-16 08:47:12 +0000 |
commit | ceeb905b9a6ef9fe65ae19491f1f3bc0012a9028 (patch) | |
tree | be686b64d6a0c3cc1001bfa56ddb26357ea3ad99 /gtk/dlg_utils.c | |
parent | 3c8f700f6c1e0b0fc10ba71d38b96e85e0306c49 (diff) |
add "Save As" and "Save All" buttons to the dialog / stock_icons utils
use them in the export object dialog
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25072 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/dlg_utils.c')
-rw-r--r-- | gtk/dlg_utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/dlg_utils.c b/gtk/dlg_utils.c index 93a9efe370..2514f343fe 100644 --- a/gtk/dlg_utils.c +++ b/gtk/dlg_utils.c @@ -125,6 +125,8 @@ dlg_button_row_new(const gchar *stock_id_first, ...) const gchar *ok = NULL; const gchar *print = NULL; const gchar *save = NULL; + const gchar *save_as = NULL; + const gchar *save_all = NULL; const gchar *stop = NULL; const gchar *yes = NULL; @@ -141,6 +143,10 @@ dlg_button_row_new(const gchar *stock_id_first, ...) apply = stock_id; } else if (strcmp(stock_id, GTK_STOCK_SAVE) == 0) { save = stock_id; + } else if (strcmp(stock_id, GTK_STOCK_SAVE_AS) == 0) { + save_as = stock_id; + } else if (strcmp(stock_id, WIRESHARK_STOCK_SAVE_ALL) == 0) { + save_all = stock_id; } else if (strcmp(stock_id, WIRESHARK_STOCK_DONT_SAVE) == 0) { dont_save = stock_id; } else if (strcmp(stock_id, GTK_STOCK_CANCEL) == 0) { @@ -356,6 +362,8 @@ dlg_button_row_new(const gchar *stock_id_first, ...) if (yes != NULL) dlg_button_new(hbox, button_hbox, yes); if (no != NULL) dlg_button_new(hbox, button_hbox, no); if (save != NULL) dlg_button_new(hbox, button_hbox, save); + if (save_as != NULL) dlg_button_new(hbox, button_hbox, save_as); + if (save_all != NULL) dlg_button_new(hbox, button_hbox, save_all); if (dont_save != NULL) dlg_button_new(hbox, button_hbox, dont_save); if (cap_start != NULL) dlg_button_new(hbox, button_hbox, cap_start); if (cap_stop != NULL) dlg_button_new(hbox, button_hbox, cap_stop); |