changeset 19804:c229bf90b6a4

Minor fix
author Gabriel Schulhof <nix@go-nix.ca>
date Tue, 24 Jul 2007 20:26:06 +0000
parents 5b6bd360f9d9
children d6a308e375b9
files pidgin/gtkutils.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkutils.c	Tue Jul 24 19:59:47 2007 +0000
+++ b/pidgin/gtkutils.c	Tue Jul 24 20:26:06 2007 +0000
@@ -82,8 +82,8 @@
 void
 pidgin_set_toplevel(GtkWindow *new_toplevel)
 {
-	g_return_if_fail(toplevel != NULL);
-	g_return_if_fail(GTK_IS_WINDOW(toplevel));
+	/* If new_toplevel is not NULL, then it better be a GtkWindow */
+	g_return_if_fail(!(new_toplevel && !GTK_IS_WINDOW(new_toplevel)));
 
 	if (toplevel) {
 		g_object_weak_unref(G_OBJECT(toplevel), (GWeakNotify)toplevel_weak_notify, NULL);