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.
This commit is contained in:
Chun-wei Fan 2013-10-07 12:00:30 +08:00
parent 9be38e67e3
commit d47eac5ba5

View File

@ -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;
}