Make the code clearer. (#155239, Murray Cumming)

2004-10-20  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_new): Make
	the code clearer.  (#155239, Murray Cumming)
This commit is contained in:
Matthias Clasen 2004-10-21 02:51:50 +00:00 committed by Matthias Clasen
parent ad772ec9e4
commit bfb64fa04f
5 changed files with 16 additions and 5 deletions

View File

@ -1,5 +1,8 @@
2004-10-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_new): Make
the code clearer. (#155239, Murray Cumming)
* gtk/gtkicontheme.c: Small fixes.
* gtk/gtkrc.c: Include gtkmodules.h. (#155885, Kazuki IWAMOTO)

View File

@ -1,5 +1,8 @@
2004-10-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_new): Make
the code clearer. (#155239, Murray Cumming)
* gtk/gtkicontheme.c: Small fixes.
* gtk/gtkrc.c: Include gtkmodules.h. (#155885, Kazuki IWAMOTO)

View File

@ -1,5 +1,8 @@
2004-10-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_new): Make
the code clearer. (#155239, Murray Cumming)
* gtk/gtkicontheme.c: Small fixes.
* gtk/gtkrc.c: Include gtkmodules.h. (#155885, Kazuki IWAMOTO)

View File

@ -1,5 +1,8 @@
2004-10-20 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_new): Make
the code clearer. (#155239, Murray Cumming)
* gtk/gtkicontheme.c: Small fixes.
* gtk/gtkrc.c: Include gtkmodules.h. (#155885, Kazuki IWAMOTO)

View File

@ -2417,11 +2417,10 @@ gtk_tree_model_filter_new (GtkTreeModel *child_model,
g_return_val_if_fail (GTK_IS_TREE_MODEL (child_model), NULL);
retval = GTK_TREE_MODEL (g_object_new (gtk_tree_model_filter_get_type (), NULL));
gtk_tree_model_filter_set_model (GTK_TREE_MODEL_FILTER (retval),
child_model);
gtk_tree_model_filter_set_root (GTK_TREE_MODEL_FILTER (retval), root);
retval = GTK_TREE_MODEL (g_object_new (GTK_TYPE_TREE_MODEL_FILTER,
"child_model", child_model,
"virtual_root", root,
NULL));
return retval;
}