| 2108 | } |
| 2109 | |
| 2110 | G_MODULE_EXPORT void |
| 2111 | destination_action_cb(GSimpleAction *action, GVariant *param, |
| 2112 | signal_user_data_t *ud) |
| 2113 | { |
| 2114 | GtkFileChooser *chooser; |
| 2115 | GtkWindow *hb_window; |
| 2116 | const gchar *destname; |
| 2117 | |
| 2118 | hb_window = GTK_WINDOW(ghb_builder_widget("hb_window")); |
| 2119 | destname = ghb_dict_get_string(ud->settings, "destination"); |
| 2120 | chooser = ghb_file_chooser_new("Choose Destination", |
| 2121 | hb_window, |
| 2122 | GTK_FILE_CHOOSER_ACTION_SAVE, |
| 2123 | _("_Save"), |
| 2124 | _("_Cancel")); |
| 2125 | ghb_file_chooser_set_initial_file(chooser, destname); |
| 2126 | ghb_file_chooser_set_modal(chooser, TRUE); |
| 2127 | g_signal_connect(chooser, "response", G_CALLBACK(destination_response_cb), ud); |
| 2128 | ghb_file_chooser_show(chooser); |
| 2129 | } |
| 2130 | |
| 2131 | G_MODULE_EXPORT gboolean |
| 2132 | window_close_request_cb(GtkWidget *widget, gpointer data) |
nothing calls this directly
no test coverage detected