[gtk+/native-layout: 43/59] [gtkaccessible] Use the correct guards in gtk_accessible_set_widget()
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/native-layout: 43/59] [gtkaccessible] Use the correct guards in gtk_accessible_set_widget()
- Date: Thu, 24 Jun 2010 23:24:45 +0000 (UTC)
commit 380120bda9cffb24ad597b65c78757e6168ad072
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]