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

Function container_opts_set

gtk/src/hb-backend.c:2076–2104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2074}
2075
2076static void
2077container_opts_set(signal_user_data_t *ud, const gchar *name,
2078 void *opts, const void* data)
2079{
2080 (void)opts; // Silence "unused variable" warning
2081 (void)data; // Silence "unused variable" warning
2082 GtkTreeIter iter;
2083 GtkListStore *store;
2084 gchar *str;
2085
2086 GtkComboBox *combo = GTK_COMBO_BOX(ghb_builder_widget(name));
2087 store = GTK_LIST_STORE(gtk_combo_box_get_model (combo));
2088 gtk_list_store_clear(store);
2089
2090 const hb_container_t *mux;
2091 for (mux = hb_container_get_next(NULL); mux != NULL;
2092 mux = hb_container_get_next(mux))
2093 {
2094 gtk_list_store_append(store, &iter);
2095 str = g_strdup_printf("<small>%s</small>", mux->name);
2096 gtk_list_store_set(store, &iter,
2097 0, str,
2098 1, TRUE,
2099 2, mux->short_name,
2100 3, (gdouble)mux->format,
2101 -1);
2102 g_free(str);
2103 }
2104}
2105
2106static void
2107preset_category_opts_set(signal_user_data_t *ud, const char *opt_name,

Callers

nothing calls this directly

Calls 2

ghb_builder_widgetFunction · 0.85
hb_container_get_nextFunction · 0.85

Tested by

no test coverage detected