| 3789 | } |
| 3790 | |
| 3791 | G_MODULE_EXPORT gboolean |
| 3792 | prefs_response_cb (GtkWindow *dialog, gpointer data) |
| 3793 | { |
| 3794 | ghb_prefs_store(); |
| 3795 | gtk_widget_set_visible(GTK_WIDGET(dialog), FALSE); |
| 3796 | |
| 3797 | if (prefs_require_restart) |
| 3798 | { |
| 3799 | GtkWindow *hb_window = GTK_WINDOW(ghb_builder_widget("hb_window")); |
| 3800 | |
| 3801 | // Toss up a warning dialog |
| 3802 | ghb_question_dialog_run(hb_window, GHB_ACTION_NORMAL, _("_Quit"), NULL, |
| 3803 | _("Settings Changed"), |
| 3804 | _("You must restart HandBrake now.")); |
| 3805 | application_quit(); |
| 3806 | } |
| 3807 | return TRUE; |
| 3808 | } |
| 3809 | |
| 3810 | typedef struct |
| 3811 | { |
nothing calls this directly
no test coverage detected