| 1997 | } |
| 1998 | |
| 1999 | void |
| 2000 | ghb_mix_opts_set(GtkComboBox *combo) |
| 2001 | { |
| 2002 | GtkTreeIter iter; |
| 2003 | GtkListStore *store; |
| 2004 | gchar *str; |
| 2005 | |
| 2006 | store = GTK_LIST_STORE(gtk_combo_box_get_model (combo)); |
| 2007 | gtk_list_store_clear(store); |
| 2008 | |
| 2009 | const hb_mixdown_t *mix; |
| 2010 | for (mix = hb_mixdown_get_next(NULL); mix != NULL; |
| 2011 | mix = hb_mixdown_get_next(mix)) |
| 2012 | { |
| 2013 | gtk_list_store_append(store, &iter); |
| 2014 | str = g_strdup_printf("<small>%s</small>", mix->name); |
| 2015 | gtk_list_store_set(store, &iter, |
| 2016 | 0, str, |
| 2017 | 1, TRUE, |
| 2018 | 2, mix->short_name, |
| 2019 | 3, (gdouble)mix->amixdown, |
| 2020 | -1); |
| 2021 | g_free(str); |
| 2022 | } |
| 2023 | } |
| 2024 | |
| 2025 | const hb_mixdown_t* |
| 2026 | ghb_lookup_mixdown(const char *name) |
no test coverage detected