void xplayer_fullscreen_set_fullscreen (XplayerFullscreen *fs, gboolean fullscreen) { g_return_if_fail (XPLAYER_IS_FULLSCREEN (fs)); xplayer_fullscreen_force_popup_hide (fs); bacon_video_widget_set_fullscreen (fs->priv->bvw, fullscreen); xplayer_fullscreen_set_cursor (fs, !fullscreen); fs->priv->is_fullscreen = fullscreen; if (fullscreen == FALSE) gd_fullscreen_filter_stop (fs->priv->filter); else gd_fullscreen_filter_start (fs->priv->filter); }
void idol_fullscreen_set_fullscreen (IdolFullscreen *fs, gboolean fullscreen) { g_return_if_fail (IDOL_IS_FULLSCREEN (fs)); idol_fullscreen_force_popup_hide (fs); bacon_video_widget_set_fullscreen (fs->priv->bvw, fullscreen); idol_fullscreen_set_cursor (fs, !fullscreen); fs->is_fullscreen = fullscreen; if (fullscreen == FALSE && fs->priv->motion_handler_id != 0) { g_signal_handler_disconnect (G_OBJECT (fs->priv->bvw), fs->priv->motion_handler_id); fs->priv->motion_handler_id = 0; } else if (fullscreen != FALSE && fs->priv->motion_handler_id == 0 && fs->priv->bvw != NULL) { fs->priv->motion_handler_id = g_signal_connect (G_OBJECT (fs->priv->bvw), "motion-notify-event", G_CALLBACK (idol_fullscreen_motion_notify), fs); } }