[gtk+] gtk: return 0 not NULL from functions returning gint
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk: return 0 not NULL from functions returning gint
- Date: Fri, 22 Oct 2010 14:55:22 +0000 (UTC)
commit 6d2e4c26bd74ea2a79b3f2372d937d12236ef5fa
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 22 16:49:11 2010 +0200
gtk: return 0 not NULL from functions returning gint
gtk/gtkscrollable.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkscrollable.c b/gtk/gtkscrollable.c
index 3374445..12e7379 100644
--- a/gtk/gtkscrollable.c
+++ b/gtk/gtkscrollable.c
@@ -256,7 +256,7 @@ gtk_scrollable_get_min_display_width (GtkScrollable *scrollable)
{
gint width;
- g_return_val_if_fail (GTK_IS_SCROLLABLE (scrollable), NULL);
+ g_return_val_if_fail (GTK_IS_SCROLLABLE (scrollable), 0);
g_object_get (scrollable, "min-display-width", &width, NULL);
@@ -299,7 +299,7 @@ gtk_scrollable_get_min_display_height (GtkScrollable *scrollable)
{
gint height;
- g_return_val_if_fail (GTK_IS_SCROLLABLE (scrollable), NULL);
+ g_return_val_if_fail (GTK_IS_SCROLLABLE (scrollable), 0);
g_object_get (scrollable, "min-display-height", &height, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]