Commit bfb64fa0 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent ad772ec9
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)
......
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)
......
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)
......
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)
......
......@@ -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;
}
......
Markdown is supported
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