mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 04:58:14 +00:00
Fix compiation. Backward compatibility with gtk<2.24
This commit is contained in:
parent
8d45f23dfd
commit
60c5f9dbbc
1 changed files with 7 additions and 1 deletions
|
|
@ -53,6 +53,7 @@ static unsigned long get_native_handle(GdkWindow *gdkw) {
|
|||
|
||||
static GtkWidget *create_video_window(LinphoneCall *call) {
|
||||
GtkWidget *video_window;
|
||||
GdkDisplay *display;
|
||||
GdkColor color;
|
||||
MSVideoSize vsize = MS_VIDEO_SIZE_CIF;
|
||||
|
||||
|
|
@ -62,7 +63,12 @@ static GtkWidget *create_video_window(LinphoneCall *call) {
|
|||
gtk_widget_modify_bg(video_window, GTK_STATE_NORMAL, &color);
|
||||
gtk_widget_show(video_window);
|
||||
g_object_set_data(G_OBJECT(video_window), "call", call);
|
||||
gdk_display_flush(gdk_window_get_display(gtk_widget_get_window(video_window)));
|
||||
#if GTK_CHECK_VERSION(2,24,0)
|
||||
display = gdk_window_get_display(gtk_widget_get_window(video_window));
|
||||
#else // backward compatibility with Debian 6 and Centos 6
|
||||
display = gdk_drawable_get_display(gtk_widget_get_window(video_window));
|
||||
#endif
|
||||
gdk_display_flush(display);
|
||||
return video_window;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue