summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2009-12-22 19:28:45 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2009-12-22 19:28:45 +0100
commit567af94dae76f62f2294ac2ba99819d324815b76 (patch)
treed73ddf34fcf3d16db24edb860fd999293ad3e099
parent4e9cdd282beb1c6dcbcca148745f5665b561c403 (diff)
Removed commented code and unused variables in window_main.c.
-rw-r--r--window_main.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/window_main.c b/window_main.c
index 978b88a..d198258 100644
--- a/window_main.c
+++ b/window_main.c
@@ -7,32 +7,8 @@
inline static void filetree_create_model(GtkTreeView *filetree) {
GtkTreeModel *tree_model;
- GtkTreeIter toplevel, child;
- GArray *array;
- struct directory_t *dir;
- //treestore = gtk_tree_store_new(4, G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT);
+
tree_model = GTK_TREE_MODEL(walls_model_new());
-
- /*array = NULL;
- if(db_get_top_level_directories(&array)) {
- for(int i = 0; ; i++) {
- dir = &g_array_index(array, struct directory_t, i);
- if(!dir->name) break;
-
- gtk_tree_store_append(treestore, &toplevel, NULL);
- g_printf("%s: %d\n", dir->name, dir->dirid);
- gtk_tree_store_set(treestore, &toplevel, 0, dir->name, 1, dir->dirid, -1);
-
- gtk_tree_store_append(treestore, &child, &toplevel);
- gtk_tree_store_set(treestore, &child, 0, "_walls_temp_", -1);
- }
- for(int i = 0; ; i++) {
- dir = &g_array_index(array, struct directory_t, i);
- if(!dir->name) break;
- g_free(dir->name);
- }
- g_array_free(array, TRUE);
- }*/
gtk_tree_view_set_model(filetree, GTK_TREE_MODEL(tree_model));
}
@@ -125,7 +101,6 @@ int gui_main(int argc, char **argv) {
gtk_init(&argc, &argv);
builder = gtk_builder_new();
- //if(!gtk_builder_add_from_file(builder, "walls.ui", &error)) {
if(!gtk_builder_add_from_string(builder, ui_string, -1, &error)) {
g_warning("%s", error->message);
g_free(error);