Commit d47eac5b authored by Chun-wei Fan's avatar Chun-wei Fan

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.
parent 9be38e67
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment