| 2074 | } |
| 2075 | |
| 2076 | static void |
| 2077 | container_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 | |
| 2106 | static void |
| 2107 | preset_category_opts_set(signal_user_data_t *ud, const char *opt_name, |
nothing calls this directly
no test coverage detected