/** * rb_source_set_hidden_when_empty: * @source: a #RBSource * @hidden: if TRUE, automatically hide the source * * Enables or disables automatic hiding of the source when * there are no entries in it. */ void rb_source_set_hidden_when_empty (RBSource *source, gboolean hidden) { g_return_if_fail (RB_IS_SOURCE (source)); if (source->priv->hidden_when_empty != hidden) { source->priv->hidden_when_empty = hidden; queue_update_visibility (source); } }
/** * rb_source_set_hidden_when_empty: * @source: a #RBSource * @hidden: if TRUE, the source should not be displayed in * the source list when there are no entries in it */ void rb_source_set_hidden_when_empty (RBSource *source, gboolean hidden) { RBSourcePrivate *priv = RB_SOURCE_GET_PRIVATE (source); g_return_if_fail (RB_IS_SOURCE (source)); if (priv->hidden_when_empty != hidden) { priv->hidden_when_empty = hidden; queue_update_visibility (source); } }