[gtk+] gtk/gtkflowbox: Fix build warning/error



commit d47eac5ba5c16e7bf1671159d65a2273a1b19695
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Oct 7 12:00:30 2013 +0800

    gtk/gtkflowbox: Fix build warning/error
    
    The newly-added gtk_flow_box_child_is_selected() needed to return a
    gboolean, so use g_return_val_if_fail() to return FALSE when an invalid
    GtkFlowBoxChild* is passed in.

 gtk/gtkflowbox.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 34a99a3..96d57f2 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -680,7 +680,7 @@ gtk_flow_box_child_get_index (GtkFlowBoxChild *child)
 gboolean
 gtk_flow_box_child_is_selected (GtkFlowBoxChild *child)
 {
-  g_return_if_fail (GTK_IS_FLOW_BOX_CHILD (child));
+  g_return_val_if_fail (GTK_IS_FLOW_BOX_CHILD (child), FALSE);
 
   return CHILD_PRIV (child)->selected;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]