Commit 60c5f9db authored by François Grisez's avatar François Grisez
Browse files

Fix compiation. Backward compatibility with gtk<2.24

parent 8d45f23d
......@@ -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);
g_object_set_data(G_OBJECT(video_window), "call", call);
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));
return video_window;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment