[Gtk-sharp-list] Socket.id on mac

De Santis Luca farolfo at hotmail.com
Mon Aug 22 06:42:28 EDT 2011


I'm developing a crossplatform frontend for mplayer. To embed the video into a GTK I've use socket widget. To do this I pass to Mplayer the -wid option with the handle where video wiil be render. I used the following code:


	private void OnVideoWidgetRealized (object sender, EventArgs args)
		{				
			Gdk.Color backColor = new Gdk.Color(0, 0, 0);
			this.socket.GdkWindow.Background= backColor;
			this.xid = (int)socket.Id;
		}


On Windows and Linux this code works well but on the Mac the socket returns always id = 0. I'm doing something wrong ?
Regards
Luca 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20110822/13a80187/attachment-0001.html 


More information about the Gtk-sharp-list mailing list