| 3987 | } |
| 3988 | |
| 3989 | gboolean |
| 3990 | ghb_question_dialog_run (GtkWindow *parent, GhbActionStyle accept_style, |
| 3991 | const char *accept_button, const char *cancel_button, |
| 3992 | const char *title, const char *format, ...) |
| 3993 | { |
| 3994 | va_list args; |
| 3995 | GtkMessageDialog *dialog; |
| 3996 | GtkResponseType response; |
| 3997 | |
| 3998 | va_start(args, format); |
| 3999 | dialog = question_dialog_va(parent, accept_style, accept_button, |
| 4000 | cancel_button, title, format, args); |
| 4001 | va_end(args); |
| 4002 | |
| 4003 | response = ghb_dialog_run(GTK_DIALOG(dialog)); |
| 4004 | gtk_window_destroy(GTK_WINDOW(dialog)); |
| 4005 | if (response == GTK_RESPONSE_ACCEPT) |
| 4006 | { |
| 4007 | return TRUE; |
| 4008 | } |
| 4009 | return FALSE; |
| 4010 | } |
| 4011 | |
| 4012 | void |
| 4013 | message_dialog_destroy (GtkDialog *dialog, int response, gpointer user_data) |
no test coverage detected