Added a way to (re-)open the video window

This commit is contained in:
Pierre Pronchery 2014-09-27 01:17:57 +03:00
parent 146ae3916a
commit 19b117762e

View File

@ -82,6 +82,7 @@ typedef struct _PhonePlugin
/* plug-in */
static VideoPhonePlugin * _video_init(PhonePluginHelper * helper);
static void _video_destroy(VideoPhonePlugin * video);
static void _video_settings(VideoPhonePlugin * video);
/* useful */
static int _video_ioctl(VideoPhonePlugin * video, unsigned long request,
@ -112,7 +113,7 @@ PhonePluginDefinition plugin =
_video_init,
_video_destroy,
NULL,
NULL
_video_settings
};
@ -209,6 +210,14 @@ static void _video_destroy(VideoPhonePlugin * video)
}
/* video_settings */
static void _video_settings(VideoPhonePlugin * video)
{
gtk_window_present(GTK_WINDOW(video->window));
_video_start(video);
}
/* useful */
/* video_ioctl */
static int _video_ioctl(VideoPhonePlugin * video, unsigned long request,