summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesystemmodel.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2009-08-26 19:10:51 -0500
committerBenjamin Otte <otte@gnome.org>2009-10-15 22:06:14 +0200
commitd5d960185208e331f8182aa471d54b44ccef1007 (patch)
tree756c437eb87da3b7cdf60f31b8f30c215b95661c /gtk/gtkfilesystemmodel.c
parent86c32c2502438e840f88060d80f01fc796aa2be0 (diff)
downloadgtk+-d5d960185208e331f8182aa471d54b44ccef1007.tar.gz
Fix and tighten an assertion
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Diffstat (limited to 'gtk/gtkfilesystemmodel.c')
-rw-r--r--gtk/gtkfilesystemmodel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c
index a8755f6793..ca967f9c7c 100644
--- a/gtk/gtkfilesystemmodel.c
+++ b/gtk/gtkfilesystemmodel.c
@@ -1122,8 +1122,7 @@ gtk_file_system_model_set_directory (GtkFileSystemModel *model,
GFile * dir,
const gchar * attributes)
{
- g_return_if_fail (GTK_IS_FILE_SYSTEM_MODEL (model));
- g_return_if_fail (dir == NULL || G_IS_FILE (dir));
+ g_assert (G_IS_FILE (dir));
model->dir = g_object_ref (dir);
model->attributes = g_strdup (attributes);