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

Function queue_open_dest_action_cb

gtk/src/queuehandler.c:2170–2195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2168}
2169
2170G_MODULE_EXPORT void
2171queue_open_dest_action_cb (GSimpleAction *action, GVariant *param,
2172 signal_user_data_t *ud)
2173{
2174 GtkListBox * lb;
2175 GtkListBoxRow * row;
2176 gint index;
2177 GhbValue * queueDict, * uiDict;
2178 const char * path;
2179
2180 lb = GTK_LIST_BOX(ghb_builder_widget("queue_list"));
2181 row = gtk_list_box_get_selected_row(lb);
2182 if (row != NULL)
2183 {
2184 index = gtk_list_box_row_get_index(row);
2185 if (index < 0 || index >= ghb_array_len(ud->queue))
2186 {
2187 return;
2188 }
2189 queueDict = ghb_array_get(ud->queue, index);
2190 uiDict = ghb_dict_get(queueDict, "uiSettings");
2191 path = ghb_dict_get_string(uiDict, "destination");
2192 g_autoptr(GFile) file = g_file_new_for_path(path);
2193 ghb_file_open_containing_folder(file);
2194 }
2195}
2196
2197G_MODULE_EXPORT void
2198queue_open_log_action_cb (GSimpleAction *action, GVariant *param,

Callers

nothing calls this directly

Calls 3

ghb_builder_widgetFunction · 0.85
ghb_dict_get_stringFunction · 0.85

Tested by

no test coverage detected