Author: Saleem Abdulrasool <compnerd@compnerd.org>
Reason: fix for API removal in latest GTK+:3.0
Upstream: no
-- 
--- gst-plugins-bad-0.10.20/tests/examples/camerabin/gst-camera.c.orig	2010-12-19 09:16:05.867000067 -0800
+++ gst-plugins-bad-0.10.20/tests/examples/camerabin/gst-camera.c	2010-12-19 09:24:15.624000130 -0800
@@ -276,7 +276,11 @@
 
   /* FIXME: make sure to get XID in main thread */
   gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (message->src),
+#if GTK_CHECK_VERSION (2, 91, 6)
+        GDK_WINDOW_XID (gtk_widget_get_window (ui_drawing)));
+#else
       GDK_WINDOW_XWINDOW (gtk_widget_get_window (ui_drawing)));
+#endif
 
   gst_message_unref (message);
   return GST_BUS_DROP;
@@ -1156,6 +1160,10 @@
 
     for (j = 0; j < num_framerates; j++) {
       GstCaps *video_caps;
+#if GTK_CHECK_VERSION (2, 91, 6)
+      GtkListStore *store;
+      GtkTreeIter iter;
+#endif
 
       if (framerate_list) {
         const GValue *item = gst_value_list_get_value (framerate_list, j);
@@ -1166,7 +1174,14 @@
       g_string_append_printf (item_str, " (%" GST_FOURCC_FORMAT ")",
           GST_FOURCC_ARGS (fourcc));
       g_string_append_printf (item_str, ", %dx%d at %d/%d", w, h, n, d);
+
+#if GTK_CHECK_VERSION (2, 91, 6)
+      store = GTK_LIST_STORE (gtk_combo_box_get_model (ui_cbbox_resolution));
+      gtk_list_store_append (store, &iter);
+      gtk_list_store_set (store, &iter, 0, item_str->str, -1);
+#else
       gtk_combo_box_append_text (ui_cbbox_resolution, item_str->str);
+#endif
 
       video_caps =
           gst_caps_new_simple (structure_name, "format", GST_TYPE_FOURCC,
