[gtk+] Use g_return_val_if_fail instead of g_return_if_fail
- From: Vincent Untz <vuntz src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] Use g_return_val_if_fail instead of g_return_if_fail
- Date: Tue, 16 Jun 2009 12:40:30 -0400 (EDT)
commit d50cfd192b98ccb0c9f2421f87acb7659f0805cb
Author: Vincent Untz <vuntz gnome org>
Date: Tue Jun 16 17:34:10 2009 +0200
Use g_return_val_if_fail instead of g_return_if_fail
gtk/gtkinfobar.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c
index 6bdba66..c96bd84 100644
--- a/gtk/gtkinfobar.c
+++ b/gtk/gtkinfobar.c
@@ -752,7 +752,7 @@ gtk_info_bar_add_action_widget (GtkInfoBar *info_bar,
GtkWidget*
gtk_info_bar_get_action_area (GtkInfoBar *info_bar)
{
- g_return_if_fail (GTK_IS_INFO_BAR (info_bar));
+ g_return_val_if_fail (GTK_IS_INFO_BAR (info_bar), NULL);
return info_bar->priv->action_area;
}
@@ -770,7 +770,7 @@ gtk_info_bar_get_action_area (GtkInfoBar *info_bar)
GtkWidget*
gtk_info_bar_get_content_area (GtkInfoBar *info_bar)
{
- g_return_if_fail (GTK_IS_INFO_BAR (info_bar));
+ g_return_val_if_fail (GTK_IS_INFO_BAR (info_bar), NULL);
return info_bar->priv->content_area;
}
@@ -1251,7 +1251,7 @@ gtk_info_bar_get_message_type (GtkInfoBar *info_bar)
{
GtkInfoBarPrivate *priv;
- g_return_if_fail (GTK_IS_INFO_BAR (info_bar));
+ g_return_val_if_fail (GTK_IS_INFO_BAR (info_bar), GTK_MESSAGE_OTHER);
priv = GTK_INFO_BAR_GET_PRIVATE (info_bar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]