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

Function destination_action_cb

gtk/src/callbacks.c:2110–2129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2108}
2109
2110G_MODULE_EXPORT void
2111destination_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
2131G_MODULE_EXPORT gboolean
2132window_close_request_cb(GtkWidget *widget, gpointer data)

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected