Is there any way to use a predefined response (e.g., GTK_RESPONSE_OK
) in a GtkDialog
, without hard-coding the ID? Glade generates XML with "0" there by default, and gives me a numeric entry. While I suppose I could enter -5, that seems to defeat the point of having a constant.
The Glade XML looks like this:
<action-widgets>
<action-widget response="0">cancel-button</action-widget>
<action-widget response="0">connect-button</action-widget>
</action-widgets>
Even the example in the docs:
<action-widgets>
<action-widget response="3">button_ok</action-widget>
<action-widget response="-5">button_cancel</action-widget>
</action-widgets>
(Which is a bit hilarious, given that they're using -5 (GTK_RESPONSE_OK
) for "button_cancel
"…)