linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Bug for Linphone windows build?


From: Simon Morlat
Subject: Re: [Linphone-developers] Bug for Linphone windows build?
Date: Thu, 19 Mar 2009 14:55:55 +0100
User-agent: KMail/1.9.9

I think it is just a warning (I have it too).
It perhaps can be solved by changing to 
w=gdk_window_foreign_new((HANDLE)id);

Taking &id would not work.

Simon


Le Thursday 19 March 2009 06:19:37 3g 2sip, vous avez écrit :
> Hello,everyone,
> I built Linphone 3.1.0 for windows platform, when building
> gtk-glade/linphone.dev, here has one compile error in the following
> function, it shows the id should be one pointer.
>
> static gboolean linphone_gtk_iterate(LinphoneCore *lc){
>  unsigned long id;
>  static unsigned long previd=0;
>  linphone_core_iterate(lc);
>  id=linphone_core_get_native_video_window_id(lc);
>  if (id!=previd){
>   ms_message("Updating window decorations");
>   GdkWindow *w;
>   previd=id;
>   if (id!=0){
> *   w=gdk_window_foreign_new(id);    // build error at here*
>    if (w) {
>     set_video_window_decorations(w);
>     g_object_unref(G_OBJECT(w));
>    }
>    else ms_error("gdk_window_foreign_new() failed");
>   }
>  }
>  return TRUE;
> }
> After changed the bold part from *   w=gdk_window_foreign_new(id);*  to   *
> w=gdk_window_foreign_new(&id);* , the build passes.
>
> My concern is: the change is right? or here has another solution?
>
> Thanks
> Mark






reply via email to

[Prev in Thread] Current Thread [Next in Thread]