[gtk+] [gtkaccessible] Use the correct guards in gtk_accessible_set_widget()
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] [gtkaccessible] Use the correct guards in gtk_accessible_set_widget()
- Date: Tue, 22 Jun 2010 19:13:11 +0000 (UTC)
commit 3c46d9acbc2cc745422cba2ceae36660e3afe69a
Author: Javier Jardón <jjardon gnome org>
Date: Tue Jun 22 21:10:23 2010 +0200
[gtkaccessible] Use the correct guards in gtk_accessible_set_widget()
Also, allow the widget variable to be NULL
gtk/gtkaccessible.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkaccessible.c b/gtk/gtkaccessible.c
index a80e98e..8e85b31 100644
--- a/gtk/gtkaccessible.c
+++ b/gtk/gtkaccessible.c
@@ -60,8 +60,7 @@ void
gtk_accessible_set_widget (GtkAccessible *accessible,
GtkWidget *widget)
{
- g_return_val_if_fail (GTK_IS_ACCESSIBLE (accessible), NULL);
- g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
+ g_return_if_fail (GTK_IS_ACCESSIBLE (accessible));
accessible->widget = widget;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]