Commit c636a085 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

minor cleanup.

2004-05-11  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcontainertreeview.c: minor cleanup.
parent 7b038417
2004-05-11 Sven Neumann <sven@gimp.org>
* app/widgets/gimpcontainertreeview.c: minor cleanup.
2004-05-11 Michael Schumacher <schumaml@cvs.gnome.org>
* libgimp/gimp.def
......
......@@ -218,11 +218,14 @@ gimp_container_tree_view_constructor (GType type,
tree_view->model_columns);
tree_view->model = GTK_TREE_MODEL (list);
tree_view->view =
GTK_TREE_VIEW (gtk_tree_view_new_with_model (tree_view->model));
tree_view->view = g_object_new (GTK_TYPE_TREE_VIEW,
"model", list,
"search_column", COLUMN_NAME,
"enable_search", TRUE,
"headers_visible", FALSE,
NULL);
g_object_unref (list);
gtk_tree_view_set_headers_visible (tree_view->view, FALSE);
gtk_container_add (GTK_CONTAINER (box->scrolled_win),
GTK_WIDGET (tree_view->view));
gtk_widget_show (GTK_WIDGET (tree_view->view));
......@@ -273,9 +276,6 @@ gimp_container_tree_view_constructor (GType type,
G_CALLBACK (gimp_container_tree_view_drag_drop),
tree_view);
gtk_tree_view_set_search_column (tree_view->view, COLUMN_NAME);
gtk_tree_view_set_enable_search (tree_view->view, TRUE);
return object;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment