forked from AuroraMiddleware/gtk
Fix and tighten an assertion
Signed-off-by: Federico Mena Quintero <federico@novell.com>
This commit is contained in:
parent
86c32c2502
commit
d5d9601852
@ -1122,8 +1122,7 @@ gtk_file_system_model_set_directory (GtkFileSystemModel *model,
|
|||||||
GFile * dir,
|
GFile * dir,
|
||||||
const gchar * attributes)
|
const gchar * attributes)
|
||||||
{
|
{
|
||||||
g_return_if_fail (GTK_IS_FILE_SYSTEM_MODEL (model));
|
g_assert (G_IS_FILE (dir));
|
||||||
g_return_if_fail (dir == NULL || G_IS_FILE (dir));
|
|
||||||
|
|
||||||
model->dir = g_object_ref (dir);
|
model->dir = g_object_ref (dir);
|
||||||
model->attributes = g_strdup (attributes);
|
model->attributes = g_strdup (attributes);
|
||||||
|
Loading…
Reference in New Issue
Block a user