mirror of https://github.com/GNOME/gimp.git
minor cleanup.
2004-05-11 Sven Neumann <sven@gimp.org> * app/widgets/gimpcontainertreeview.c: minor cleanup.
This commit is contained in:
parent
7b03841716
commit
c636a085fe
|
@ -1,3 +1,7 @@
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue