MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / destination_response_cb

Function destination_response_cb

gtk/src/callbacks.c:2089–2108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2087}
2088
2089static void
2090destination_response_cb(GtkFileChooser *chooser,
2091 GtkResponseType response, signal_user_data_t *ud)
2092{
2093 GtkEditable *entry;
2094 g_autofree char *basename = NULL;
2095
2096 if (response == GTK_RESPONSE_ACCEPT)
2097 {
2098 g_autoptr(GFile) file = gtk_file_chooser_get_file(chooser);
2099 const char *filename = g_file_peek_path(file);
2100 g_autofree char *dirname = g_path_get_dirname(filename);
2101 basename = g_path_get_basename(filename);
2102 entry = GTK_EDITABLE(ghb_builder_widget("dest_file"));
2103 gtk_editable_set_text(entry, basename);
2104 GhbFileButton *dest_chooser = GHB_FILE_BUTTON(ghb_builder_widget("dest_dir"));
2105 ghb_file_button_set_filename(dest_chooser, dirname);
2106 }
2107 ghb_file_chooser_destroy(chooser);
2108}
2109
2110G_MODULE_EXPORT void
2111destination_action_cb(GSimpleAction *action, GVariant *param,

Callers

nothing calls this directly

Calls 3

ghb_builder_widgetFunction · 0.85
ghb_file_chooser_destroyFunction · 0.85

Tested by

no test coverage detected