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

Function open_queue_file

gtk/src/queuehandler.c:1460–1481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1458}
1459
1460static void open_queue_file (signal_user_data_t *ud)
1461{
1462 GtkFileChooser *chooser;
1463 GtkWindow *hb_window;
1464
1465 hb_window = GTK_WINDOW(ghb_builder_widget("hb_window"));
1466 chooser = ghb_file_chooser_new(_("Import Queue"),
1467 hb_window,
1468 GTK_FILE_CHOOSER_ACTION_OPEN,
1469 _("_Open"),
1470 _("_Cancel"));
1471
1472 // Add filters
1473 ghb_add_file_filter(chooser, _("All Files"), "FilterAll");
1474 ghb_add_file_filter(chooser, g_content_type_get_description("application/json"), "FilterJSON");
1475 ghb_file_chooser_set_initial_file(chooser,
1476 ghb_dict_get_string(ud->prefs, "ExportDirectory"));
1477
1478 ghb_file_chooser_set_modal(chooser, TRUE);
1479 g_signal_connect(chooser, "response", G_CALLBACK(open_queue_file_cb), ud);
1480 ghb_file_chooser_show(chooser);
1481}
1482
1483static gint64 dest_free_space (GhbValue *settings)
1484{

Callers 2

queue_import_action_cbFunction · 0.85
queue_open_clicked_cbFunction · 0.85

Calls 7

ghb_builder_widgetFunction · 0.85
ghb_file_chooser_newFunction · 0.85
ghb_add_file_filterFunction · 0.85
ghb_dict_get_stringFunction · 0.85
ghb_file_chooser_showFunction · 0.85

Tested by

no test coverage detected