forked from AuroraMiddleware/gtk
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:
parent
9be38e67e3
commit
d47eac5ba5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user