<object class="GtkListStore" id="interpreters">
<columns>
<!-- column-name Format -->
- <column type="guint"/>
+ <column type="gchararray"/>
<!-- column-name Interpreter -->
- <column type="guint"/>
+ <column type="gchararray"/>
</columns>
</object>
<object class="GtkDialog" id="prefswindow">
<property name="headers_visible">False</property>
<property name="headers_clickable">False</property>
<property name="rules_hint">True</property>
+ <child>
+ <object class="GtkTreeViewColumn" id="format_column">
+ <property name="title">Format</property>
+ <child>
+ <object class="GtkCellRendererText" id="format_renderer"/>
+ <attributes>
+ <attribute name="text">0</attribute>
+ </attributes>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkTreeViewColumn" id="interpreter_column">
+ <property name="title">Interpreter</property>
+ <child>
+ <object class="GtkCellRendererText" id="interpreter_renderer"/>
+ <attributes>
+ <attribute name="text">1</attribute>
+ </attributes>
+ </child>
+ </object>
+ </child>
</object>
</child>
</object>
gtk_file_chooser_set_filename(blorb_chooser, filename);
g_free(filename);
}
+
+ /* Initialize the list of preferred interpreters */
+ GtkListStore *interp_list = GTK_LIST_STORE( load_object("interpreters") );
+ GVariantIter *iter;
+ char *format, *plugin;
+ g_settings_get(prefs_settings, "preferred-interpreters", "a{ss}", &iter);
+ while(g_variant_iter_loop(iter, "{ss}", &format, &plugin)) {
+ GtkTreeIter tree_iter;
+ gtk_list_store_append(interp_list, &tree_iter);
+ gtk_list_store_set(interp_list, &tree_iter, 0, format, 1, plugin, -1);
+ }
+ g_variant_iter_free(iter);
}
static void