Error handling when trying to use checklist and radiolist in the same List dialog
This commit is contained in:
parent
2505e039c0
commit
cc3fc2be3e
@ -1,3 +1,9 @@
|
|||||||
|
2005-06-28 Lucas Rocha <lucasr@cvs.gnome.org>
|
||||||
|
|
||||||
|
* src/tree.c: error handling when trying to
|
||||||
|
use checklist and radiolist at the same List
|
||||||
|
dialog.
|
||||||
|
|
||||||
2005-06-27 Lucas Rocha <lucasr@cvs.gnome.org>
|
2005-06-27 Lucas Rocha <lucasr@cvs.gnome.org>
|
||||||
|
|
||||||
* src/tree.c, src/about.c: add double-clicking on
|
* src/tree.c, src/about.c: add double-clicking on
|
||||||
|
@ -308,6 +308,12 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data)
|
|||||||
return;
|
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);
|
glade_xml_signal_autoconnect (glade_dialog);
|
||||||
|
|
||||||
dialog = glade_xml_get_widget (glade_dialog, "zenity_tree_dialog");
|
dialog = glade_xml_get_widget (glade_dialog, "zenity_tree_dialog");
|
||||||
|
Reference in New Issue
Block a user