[gtk+/filesystemmodel] Fix and tighten an assertion
- From: Federico Mena Quintero <federico src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/filesystemmodel] Fix and tighten an assertion
- Date: Thu, 27 Aug 2009 01:04:03 +0000 (UTC)
commit e5f16d59fc0f28f70f3d289a0ab51a722f7516fe
Author: Federico Mena Quintero <federico novell com>
Date: Wed Aug 26 19:10:51 2009 -0500
Fix and tighten an assertion
Signed-off-by: Federico Mena Quintero <federico novell com>
gtk/gtkfilesystemmodel.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c
index a8755f6..ca967f9 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]