- // This is awful, because it assumes the Yes button is first in the
- // children (and for that matter, it assumes there are no intermediate
- // containers.) But searching for "Yes" in the widget text would
- // cause localization problems.
- // TODO: Rewrite to use Dialog instead of MessageDialog?
- var yes_button = action_area.get_children().first().data;
- yes_button.grab_default();
- yes_button.grab_focus();
+ //!! dialog.get_widget_for_response is not available on Centos 6
+ // Button yes_button = (Button) dialog.get_widget_for_response(ResponseType.YES);
+ // yes_button.grab_default();
+ // yes_button.grab_focus();