- xml = glade_xml_new("obconf.glade", NULL, NULL);
- glade_xml_signal_autoconnect(xml);
-
- obconf_win = GTK_WINDOW(glade_xml_get_widget(xml, "mainwindow"));
- gtk_window_set_role(obconf_win, "main");
- obconf_about = GTK_WINDOW(glade_xml_get_widget(xml, "aboutdialog"));
- gtk_window_set_role(obconf_about, "about");
- gtk_window_set_transient_for(obconf_about, obconf_win);
- obconf_sections = GTK_TREE_VIEW(glade_xml_get_widget(xml, "sectiontree"));
- obconf_options = GTK_NOTEBOOK(glade_xml_get_widget(xml,"optionsnotebook"));
-
- obconf_sections_store = gtk_list_store_new(1, G_TYPE_STRING);
- gtk_tree_view_set_model(obconf_sections,
- GTK_TREE_MODEL(obconf_sections_store));
- obconf_sections_renderer = gtk_cell_renderer_text_new();
- obconf_sections_column = gtk_tree_view_column_new_with_attributes
- ("Section", obconf_sections_renderer, "text", 0, NULL);
- gtk_tree_view_append_column (obconf_sections, obconf_sections_column);
-
- parse_load_rc(&doc, &root);