--- cheese-44.1-origin/libcheese/cheese-flash.c
+++ cheese-44.1/libcheese/cheese-flash.c
@@ -132,7 +132,7 @@
       GObject *parent;
       parent = g_value_get_object (value);
       if (object != NULL)
-        priv->parent = g_object_ref (parent);
+        priv->parent = GTK_WIDGET (g_object_ref (parent));
       else
         priv->parent = NULL;
     }
