Say I create a dialog with
dialog = gtk_message_dialog_new(_, _, _, GTK_BUTTONS_YES_NO, _)
and that I want to process the response differently depending on whether the user pressed "No" or "Yes".
I know I can link the "response" signal to a callback with
g_signal_connect_swapped (dialog, "response", G_CALLBACK (callback_function, NULL);
but how do I check whether the "Yes" button was pressed? Thank you very much for the help.