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

Function video_file_drop_init

gtk/src/application.c:661–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

659}
660
661static void
662video_file_drop_init (signal_user_data_t *ud)
663{
664 GtkWidget *window = ghb_builder_widget("hb_window");
665 GType types[] = {
666 GDK_TYPE_FILE_LIST,
667 G_TYPE_FILE,
668 G_TYPE_URI,
669 };
670 GtkDropTarget *target = gtk_drop_target_new(G_TYPE_INVALID, GDK_ACTION_COPY);
671 gtk_drop_target_set_gtypes(target, types, G_N_ELEMENTS(types));
672 gtk_widget_add_controller(GTK_WIDGET(window), GTK_EVENT_CONTROLLER(target));
673 g_signal_connect(target, "drop", G_CALLBACK(video_file_drop_received), ud);
674}
675
676const char *
677ghb_application_get_app_dir (GhbApplication *self)

Callers 1

ghb_application_activateFunction · 0.85

Calls 1

ghb_builder_widgetFunction · 0.85

Tested by

no test coverage detected