~bcurtiswx/ubuntu/precise/empathy/3.4.2.1-0ubuntu1

« back to all changes in this revision

Viewing changes to libempathy-gtk/empathy-video-widget.c

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville
  • Date: 2009-11-16 23:40:52 UTC
  • mfrom: (1.1.39 upstream)
  • mto: (6.3.7 experimental)
  • mto: This revision was merged to the branch mainline in revision 80.
  • Revision ID: james.westby@ubuntu.com-20091116234052-7hhwrpeln4mwdyw7
Tags: upstream-2.29.2
ImportĀ upstreamĀ versionĀ 2.29.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
}
101
101
 
102
102
static void
 
103
empathy_video_widget_realized (GtkWidget *widget, gpointer user_data)
 
104
{
 
105
  /* requesting the XID forces the GdkWindow to be native in GTK+ 2.18
 
106
   * onwards, requesting the native window in a thread causes a BadWindowID,
 
107
   * so we need to request it now. We could call gdk_window_ensure_native(),
 
108
   * but that would mean we require GTK+ 2.18, so instead we call this */
 
109
  GDK_WINDOW_XID (gtk_widget_get_window (GTK_WIDGET (widget)));
 
110
}
 
111
 
 
112
static void
103
113
empathy_video_widget_constructed (GObject *object)
104
114
{
105
115
  EmpathyVideoWidgetPriv *priv = GET_PRIV (object);
106
116
  GstElement *colorspace, *videoscale, *sink;
107
117
  GstPad *pad;
108
118
 
 
119
  g_signal_connect (object, "realize",
 
120
      G_CALLBACK (empathy_video_widget_realized), NULL);
 
121
 
109
122
  priv->videosink = gst_bin_new (NULL);
110
123
 
111
124
  gst_object_ref (priv->videosink);