diff options
author | Lucas Almeida Rocha <lucasr@src.gnome.org> | 2005-06-28 04:43:10 +0000 |
---|---|---|
committer | Lucas Almeida Rocha <lucasr@src.gnome.org> | 2005-06-28 04:43:10 +0000 |
commit | cc3fc2be3ea3f322ca53b13b82dc9e73a44e58b2 (patch) | |
tree | 7f9c2ad39f52d890530219376443d75a3feffe0b /src | |
parent | Updated Slovak translation. (diff) | |
download | zenity-cc3fc2be3ea3f322ca53b13b82dc9e73a44e58b2.tar.gz zenity-cc3fc2be3ea3f322ca53b13b82dc9e73a44e58b2.tar.bz2 zenity-cc3fc2be3ea3f322ca53b13b82dc9e73a44e58b2.zip |
Error handling when trying to use checklist and radiolist in the same List dialog
Diffstat (limited to 'src')
-rw-r--r-- | src/tree.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -308,6 +308,12 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data) return; } + if (tree_data->checkbox && tree_data->radiobox) { + g_printerr (_("You should use only one List dialog type.\n")); + data->exit_code = zenity_util_return_exit_code (ZENITY_ERROR); + return; + } + glade_xml_signal_autoconnect (glade_dialog); dialog = glade_xml_get_widget (glade_dialog, "zenity_tree_dialog"); |